Deprecated helper class that helps building a BGridLayout. More...
Public Member Functions | |
| BGridLayoutBuilder (BGridLayout *layout) | |
| Create a new layout builder that operates on a layout. | |
| BGridLayoutBuilder (BGridView *view) | |
| Create a new layout builder that operates on a view. | |
| BGridLayoutBuilder (float horizontal=B_USE_DEFAULT_SPACING, float vertical=B_USE_DEFAULT_SPACING) | |
| Create a new layout builder with a new underlying BGridLayout. | |
| BGridLayoutBuilder & | Add (BLayoutItem *item, int32 column, int32 row, int32 columnCount=1, int32 rowCount=1) |
| Add a BLayoutItem to the underlying BGridLayout. | |
| BGridLayoutBuilder & | Add (BView *view, int32 column, int32 row, int32 columnCount=1, int32 rowCount=1) |
| Add a view to the underlying BGridLayout. | |
| BGridLayoutBuilder & | GetGridLayout (BGridLayout **_layout) |
| Get a reference to the underlying BGridLayout. | |
| BGridLayoutBuilder & | GetView (BView **_view) |
| Get a reference to the owning BView. | |
| BGridLayout * | GridLayout () const |
| Get a reference to the underlying BGridLayout. | |
| operator BGridLayout * () | |
| Casts the builder to the underlying BGridLayout. | |
| BGridLayoutBuilder & | SetColumnWeight (int32 column, float weight) |
| Set the weight for column to weight. | |
| BGridLayoutBuilder & | SetInsets (float left, float top, float right, float bottom) |
| Set the insets for the layout. | |
| BGridLayoutBuilder & | SetRowWeight (int32 row, float weight) |
| Set the weight of row to weight. | |
| BView * | View () const |
| Get a reference to the owning BView. | |
Deprecated helper class that helps building a BGridLayout.
The modern builder can be found in BLayoutBuilder::Grid<>.
| BGridLayoutBuilder::BGridLayoutBuilder | ( | float | horizontal = B_USE_DEFAULT_SPACING, |
| float | vertical = B_USE_DEFAULT_SPACING |
||
| ) |
Create a new layout builder with a new underlying BGridLayout.
| horizontal | Horizontal spacing. |
| vertical | Vertical Spacing |
| BGridLayoutBuilder::BGridLayoutBuilder | ( | BGridLayout * | layout | ) |
Create a new layout builder that operates on a layout.
| layout | The existing layout you want the builder to alter. |
| BGridLayoutBuilder::BGridLayoutBuilder | ( | BGridView * | view | ) |
Create a new layout builder that operates on a view.
| view | The existing grid view you want the builder to alter. |
| BGridLayoutBuilder & BGridLayoutBuilder::Add | ( | BLayoutItem * | item, |
| int32 | column, | ||
| int32 | row, | ||
| int32 | columnCount = 1, |
||
| int32 | rowCount = 1 |
||
| ) |
Add a BLayoutItem to the underlying BGridLayout.
| item | The BLayoutItem to add. |
| column | The column number (zero-index) to use. |
| row | The row number (zero-index) to use. |
| columnCount | The number of columns to span over. |
| rowCount | The number of rows to span over. |
| BGridLayoutBuilder & BGridLayoutBuilder::Add | ( | BView * | view, |
| int32 | column, | ||
| int32 | row, | ||
| int32 | columnCount = 1, |
||
| int32 | rowCount = 1 |
||
| ) |
Add a view to the underlying BGridLayout.
| view | The BView to add. |
| column | The column number (zero-based) to use. |
| row | The row number (zero-based) to use. |
| columnCount | The number of columns to span over. |
| rowCount | The number of rows to span over. |
| BGridLayoutBuilder & BGridLayoutBuilder::GetGridLayout | ( | BGridLayout ** | _layout | ) |
Get a reference to the underlying BGridLayout.
| [out] | _layout | The variable to store a borrowed pointer to the underlying layout. |
| BGridLayoutBuilder & BGridLayoutBuilder::GetView | ( | BView ** | _view | ) |
| BGridLayout * BGridLayoutBuilder::GridLayout | ( | ) | const |
Get a reference to the underlying BGridLayout.
| BGridLayoutBuilder::operator BGridLayout * | ( | ) |
Casts the builder to the underlying BGridLayout.
Convenience method for the GridLayout() method.
| BGridLayoutBuilder & BGridLayoutBuilder::SetColumnWeight | ( | int32 | column, |
| float | weight | ||
| ) |
Set the weight for column to weight.
| column | The column to set. |
| weight | The weight to set. |
| BGridLayoutBuilder & BGridLayoutBuilder::SetInsets | ( | float | left, |
| float | top, | ||
| float | right, | ||
| float | bottom | ||
| ) |
Set the insets for the layout.
| left | The left inset as a float. |
| top | The top inset as a float. |
| right | The right inset as a float. |
| bottom | The bottom inset as a float. |
| BGridLayoutBuilder & BGridLayoutBuilder::SetRowWeight | ( | int32 | row, |
| float | weight | ||
| ) |
Set the weight of row to weight.
| row | The row number. |
| weight | The weight to set. |
| BView * BGridLayoutBuilder::View | ( | ) | const |
Get a reference to the owning BView.
Returns the same BView* as BLayout::Owner(), this method is inherited from BLayoutItem.