virtual void Invalidate() override
Resets the layout's rectangle then calls Update()
LayoutOrientation
This type is used to signify an object's orientation.
Definition: LayoutEnums.h:94
void SetRowStretch(int row, int stretch)
Sets the stretch factor for the given row.
The LayoutControl class is the abstract base class of all user interface elements for layout manager ...
Definition: LayoutControl.h:54
int GetRowStretch(int row) const
Returns the stretch factor for the given row.
int GetSpacing() const
Gets the spacing between items in the layout.
virtual LayoutOrientations GetExpandingOrientations() const
Returns whether this layout item can make use of more space than GetDesiredSize().
Definition: LayoutEnums.h:53
void GetItemPosition(int index, int *row, int *column, int *rowSpan, int *columnSpan)
Returns information about the item at a given index.
void SetColumnStretch(int column, int stretch)
Sets the stretch factor for the given column.
int GetRowCount() const
Returns the number of rows.
virtual void SetDirty() override
Resets the layout's rectangle then calls Update()
void SetVerticalSpacing(int spacing)
Sets the vertical spacing between rows in the layout.
int GetColumnMinimumWidth(int column) const
Returns the minimum width for the given column.
void AddLayout(LayoutManager *layout, int row, int column, LayoutAlignment alignment=Align_None)
Adds a child LayoutManager to the GridLayout Layout Manager.
The LayoutItem class provides an abstract item that a LayoutManager manipulates.
Definition: LayoutItem.h:52
LayoutFlags - Creates a "Flags" class out of an enum with constructors and operator overloading...
Definition: LayoutFlags.h:43
int GetColumnStretch(int column) const
Returns the stretch factor for the given column.
virtual int GetMinimumHeightForWidth(int width) const override
Returns the minimum height for this layout item, given the width.
The BRect class defines a rectangle using integer precision.
Definition: BRect.h:71
BRect GetCellRect(int row, int column) const
Retrieves the bounding rectangle of the cell specified by the given row index and column index...
int GetRowMinimumHeight(int row) const
Returns the minimum height for the given row.
virtual BSize GetDesiredSize() const override
Returns the desired size for this layout item.
wchar_t const * WCharCP
Definition: Bentley.h:224
The BSize class defines the size of a two - dimensional object using integer point precision...
Definition: BSize.h:38
#define NULL
Definition: Bentley.h:157
virtual LayoutItem * ItemAt(int index) const override
Retrieves the item at index in the layout and returns the item.
#define BEGIN_BENTLEY_UIFRAMEWORK_NAMESPACE
Definition: UIFramework.h:14
int GetVerticalSpacing() const
Returns the vertical spacing between rows in the layout.
LayoutItem * ItemAtPosition(int row, int column) const
Returns the LayoutItem associated with a given row and column.
virtual BSize GetMaximumSize() const override
Returns the maximum size for this layout item.
#define DLLEXPORT
Definition: basedefs.h:137
void SetColumnMinimumWidth(int column, int minWidth)
Sets the minimum width for the given column.
virtual size_t Count() const override
Returns the number of items in this layout.
virtual BSize GetMinimumSize() const override
Returns the minimum size for this layout item.
virtual void SetGeometry(const BRect &rect) override
Sets the geometry for this layout item to the given rectangle.
int GetHorizontalSpacing() const
Returns the horizontal spacing between items in the layout.
void SetRowMinimumHeight(int row, int minHeight)
Sets the minimum height for the given row.
virtual bool HasHeightForWidth() const override
Returns whether this layout's preferred height depends on its width.
void SetSpacing(int spacing)
Sets the horizontal and vertical spacing between items in the layout.
#define END_BENTLEY_UIFRAMEWORK_NAMESPACE
Definition: UIFramework.h:15
static GridLayout * Create(LayoutControl *parent=0)
Creates a GridLayout Layout Manager.
void SetDefaultPositioning(int n, LayoutOrientation orient)
void AddControl(LayoutControl *ctl, int row, int column, LayoutAlignment alignment=Align_None)
Adds a control to the GridLayout Layout Manager.
The LayoutManager class is the base class of the layout managers.
Definition: LayoutManager.h:46
int StatusInt
Definition: Bentley.h:222
StatusInt SetColumnSharedSizeGroup(int column, WCharCP groupName)
Sets the SharedSizeGroup name for the given column.
The GridLayout class lays out controls in a table or grid.
Definition: GridLayout.h:70
void SetHorizontalSpacing(int spacing)
Sets the horizontal spacing between items in the layout.
virtual LayoutItem * TakeAt(int index) override
Removes the item at index from the layout, and returns the item.
int GetColumnCount() const
Returns the number of columns.
virtual int GetHeightForWidth(int width) const override
Returns the preferred height for this layout item, given the width.