GroupLayout

Special layout for widgets grouped by labels.

This widget resembles a box layout in that it arranges a set of widgets vertically. All widgets are indented on the horizontal axis except for Label widgets, which are not indented.

This creates a pleasing layout where a number of widgets are grouped under some high-level heading.

Constructors

this
this(int margin, int spacing, int groupSpacing, int groupIndent)

Creates a GroupLayout.

Members

Functions

groupIndent
int groupIndent()

The indent of widgets in a group (underneath a Label) of this GroupLayout.

groupIndent
void groupIndent(int groupIndent)

Sets the indent of widgets in a group (underneath a Label) of this GroupLayout.

groupSpacing
int groupSpacing()

The spacing between groups of this GroupLayout.

groupSpacing
void groupSpacing(int groupSpacing)

Sets the spacing between groups of this GroupLayout.

margin
int margin()

The margin of this GroupLayout.

margin
void margin(int margin)

Sets the margin of this GroupLayout.

performLayout
void performLayout(NVGContext nvg, Widget widget)

See Layout.performLayout.

preferredSize
Vector2i preferredSize(NVGContext nvg, Widget widget, Widget skipped)

Implementation of the layout interface See Layout.preferredSize.

spacing
int spacing()

The spacing between widgets of this GroupLayout.

spacing
void spacing(int spacing)

Sets the spacing between widgets of this GroupLayout.

Variables

mGroupIndent
int mGroupIndent;

The indent amount of a group under its defining Label of this GroupLayout.

mGroupSpacing
int mGroupSpacing;

The spacing between groups of this GroupLayout.

mMargin
int mMargin;

The margin of this GroupLayout.

mSpacing
int mSpacing;

The spacing between widgets of this GroupLayout.

Inherited Members

From Layout

performLayout
void performLayout(NVGContext nvg, Widget widget)

Performs any and all resizing applicable.

preferredSize
Vector2i preferredSize(NVGContext nvg, Widget widget, Widget skipped)

The preferred size for this layout.

Meta