UILayoutBuilders: {
    Column: UIColumnBuilder;
    Row: UIRowBuilder;
} = ...

Collection of UIElementBuilders for Layouts. These allow positioning multiple UIElements relative to each other.

Type declaration

  • Column: UIColumnBuilder

    UIElement for column layout, added UIElements will be layed out after one another vertically. Has a Background.

    By default, Background is hidden (style = emptyFill). To show it you must give it a style with: UIColumn.setFillStyle

    Example usage:

    // Create a Column
    Chart.addUIElement(UILayouts.Column)
    // Create a Column with specified Background
    Chart.addUIElement(UILayouts.Column.setBackground(UIBackgrounds.Circle))
  • Row: UIRowBuilder

    UIElement for row layout, added UIElements will be layed out after one another horizontally. Has a Background.

    By default, Background is hidden (style = emptyFill). To show it you must give it a style with: UIRow.setFillStyle

    Example usage:

    // Create a Row
    Chart.addUIElement(UILayouts.Row)
    // Create a Row with specified Background
    Chart.addUIElement(*UILayouts.Row.setBackground(UIBackgrounds.Circle))