The LayoutControl class is the abstract base class of all user interface elements for layout manager ...
Definition: LayoutControl.h:54
int GetVerticalSpacing() const
Returns the vertical spacing between rows in the layout.
Definition: LayoutEnums.h:53
void AddSpacing(int spacing)
Adds a non-stretchable space item to the layout with a given width.
virtual void SetGeometry(const BRect &rect) override
Sets the geometry for this layout to the given rectangle.
int GetHorizontalSpacing() const
Returns the horizontal spacing between items in the layout.
virtual LayoutItem * ItemAt(int index) const override
Retrieves the item at index in the layout and returns the item.
void SetHorizontalSpacing(int spacing)
Sets the horizontal spacing between items in the layout.
virtual BSize GetMinimumSize() const override
Returns the minimum size for this layout.
LayoutFlags - Creates a "Flags" class out of an enum with constructors and operator overloading...
Definition: LayoutFlags.h:43
The LayoutItem class provides an abstract item that a LayoutManager manipulates.
Definition: LayoutItem.h:52
The BRect class defines a rectangle using integer precision.
Definition: BRect.h:71
virtual int GetHeightForWidth(int width) const override
Returns the preferred height for this layout item, given the width.
int GetLineHeight() const
Returns the current line height.
The BSize class defines the size of a two - dimensional object using integer point precision...
Definition: BSize.h:38
#define BEGIN_BENTLEY_UIFRAMEWORK_NAMESPACE
Definition: UIFramework.h:14
LayoutDirection
This type is used to determine the direction of a layout.
Definition: LayoutEnums.h:81
Definition: LayoutEnums.h:83
#define DLLEXPORT
Definition: basedefs.h:137
void AddLayout(LayoutManager *layout, LayoutAlignment alignment=Align_None)
Adds a nested child layout to the layout.
virtual LayoutOrientations GetExpandingOrientations() const override
Returns whether this layout item can make use of more space than GetDesiredSize().
virtual BSize GetDesiredSize() const override
Returns the desired size for this layout.
void SetVerticalSpacing(int spacing)
Sets the vertical spacing between rows in the layout.
#define END_BENTLEY_UIFRAMEWORK_NAMESPACE
Definition: UIFramework.h:15
virtual size_t Count() const override
Returns the number of items in this layout.
void AddControl(LayoutControl *ctl, LayoutAlignment alignment=Align_None)
Adds a control to the FlowLayout Layout Manager.
The LayoutManager class is the base class of the layout managers.
Definition: LayoutManager.h:46
virtual LayoutItem * TakeAt(int index) override
Removes the item at index from the layout, and returns the item.
static FlowLayout * Create(LayoutControl *parent, int hSpacing=-1, int vSpacing=-1, LayoutDirection layoutDirection=LD_LeftToRight)
Creates a FlowLayout Layout Manager.
virtual bool HasHeightForWidth() const override
Returns whether this layout's preferred height depends on its width.
The Flow Layout Manager arranges items from left to right and top to bottom.
Definition: FlowLayout.h:26