Deprecated helper class that helps building a BGroupLayout. More...
Public Member Functions | |
| BGroupLayoutBuilder (BGroupLayout *layout) | |
| Create a new layout builder that operates on layout. | |
| BGroupLayoutBuilder (BGroupView *view) | |
| Create a new layout builder that operates on view. | |
| BGroupLayoutBuilder (orientation orientation=B_HORIZONTAL, float spacing=B_USE_DEFAULT_SPACING) | |
| Create a new layout builder with a new underlying BGroupLayout. | |
| BGroupLayoutBuilder & | Add (BLayoutItem *item) |
| Add a BLayoutItem to the underlying BGroupLayout. | |
| BGroupLayoutBuilder & | Add (BLayoutItem *item, float weight) |
| Add a BLayoutItem to the underlying BGroupLayout. | |
| BGroupLayoutBuilder & | Add (BView *view) |
| Add a view to the underlying BGroupLayout. | |
| BGroupLayoutBuilder & | Add (BView *view, float weight) |
| Add a view to the underlying BGroupLayout. | |
| BGroupLayoutBuilder & | AddGlue (float weight=1.0f) |
| Set the glue for the top level group. | |
| BGroupLayoutBuilder & | AddGroup (orientation orientation, float spacing=B_USE_DEFAULT_SPACING, float weight=1.0f) |
| Add a subgroup to this layout, and return a reference to a builder that works on that subgroup. | |
| BGroupLayoutBuilder & | AddStrut (float size) |
| Add a strut to the current group. | |
| BGroupLayoutBuilder & | End () |
| Get a reference to a builder of the parent of the current subgroup. | |
| BGroupLayoutBuilder & | GetTopLayout (BGroupLayout **_layout) |
| Get a reference to the highest underlying BGroupLayout. | |
| BGroupLayoutBuilder & | GetTopView (BView **_view) |
| Get a reference to the owning BView. | |
| operator BGroupLayout * () | |
| Cast the builder to the underlying BGroupLayout. | |
| BGroupLayout * | RootLayout () const |
| Get a reference to the closest underlying BGroupLayout. | |
| BGroupLayoutBuilder & | SetInsets (float left, float top, float right, float bottom) |
| Set the insets of the top level group. | |
| BGroupLayout * | TopLayout () const |
| Get a reference to the highest underlying BGroupLayout. | |
| BView * | TopView () const |
| Get a reference to the owning BView. | |
Deprecated helper class that helps building a BGroupLayout.
The modern builder can be found in BLayoutBuilder::Group<>.
This builder supports nested group layouts. See AddGroup() and End().
| BGroupLayoutBuilder::BGroupLayoutBuilder | ( | orientation | orientation = B_HORIZONTAL, |
| float | spacing = B_USE_DEFAULT_SPACING |
||
| ) |
Create a new layout builder with a new underlying BGroupLayout.
| orientation | The orientation of the group. |
| spacing | The spacing between items. |
| BGroupLayoutBuilder::BGroupLayoutBuilder | ( | BGroupLayout * | layout | ) |
Create a new layout builder that operates on layout.
| layout | The existing layout you want the builder to alter. |
| BGroupLayoutBuilder::BGroupLayoutBuilder | ( | BGroupView * | view | ) |
Create a new layout builder that operates on view.
| view | The existing group view you want the builder to alter. |
| BGroupLayoutBuilder & BGroupLayoutBuilder::Add | ( | BLayoutItem * | item | ) |
Add a BLayoutItem to the underlying BGroupLayout.
| item | The BLayoutItem to add. |
| BGroupLayoutBuilder & BGroupLayoutBuilder::Add | ( | BLayoutItem * | item, |
| float | weight | ||
| ) |
Add a BLayoutItem to the underlying BGroupLayout.
| item | The BLayoutItem to add. |
| weight | The weight of this view within the group. |
| BGroupLayoutBuilder & BGroupLayoutBuilder::Add | ( | BView * | view | ) |
Add a view to the underlying BGroupLayout.
| view | The BView to add. |
| BGroupLayoutBuilder & BGroupLayoutBuilder::Add | ( | BView * | view, |
| float | weight | ||
| ) |
Add a view to the underlying BGroupLayout.
| view | The BView to add. |
| weight | The weight of this view within the group. |
| BGroupLayoutBuilder & BGroupLayoutBuilder::AddGlue | ( | float | weight = 1.0f | ) |
Set the glue for the top level group.
| weight | The weight of the glue. |
| BGroupLayoutBuilder & BGroupLayoutBuilder::AddGroup | ( | orientation | orientation, |
| float | spacing = B_USE_DEFAULT_SPACING, |
||
| float | weight = 1.0f |
||
| ) |
Add a subgroup to this layout, and return a reference to a builder that works on that subgroup.
| orientation | The orientation of the subgroup. |
| spacing | The spacing between elements of the subgroup. |
| weight | The weight of the subgroup in the current group. |
| BGroupLayoutBuilder & BGroupLayoutBuilder::AddStrut | ( | float | size | ) |
Add a strut to the current group.
| size | The size of the strut. |
| BGroupLayoutBuilder & BGroupLayoutBuilder::End | ( | ) |
Get a reference to a builder of the parent of the current subgroup.
When you are currently in a subgroup, you may use this method to go back to the higher level layout.
| BGroupLayoutBuilder & BGroupLayoutBuilder::GetTopLayout | ( | BGroupLayout ** | _layout | ) |
Get a reference to the highest underlying BGroupLayout.
| [out] | _layout | The variable to store a borrowed pointer to the highest underlying layout. |
| BGroupLayoutBuilder & BGroupLayoutBuilder::GetTopView | ( | BView ** | _view | ) |
| BGroupLayoutBuilder::operator BGroupLayout * | ( | ) |
Cast the builder to the underlying BGroupLayout.
Convenience method for the RootLayout() method.
| BGroupLayout * BGroupLayoutBuilder::RootLayout | ( | ) | const |
Get a reference to the closest underlying BGroupLayout.
| BGroupLayoutBuilder & BGroupLayoutBuilder::SetInsets | ( | float | left, |
| float | top, | ||
| float | right, | ||
| float | bottom | ||
| ) |
Set the insets of the top level group.
| left | The left inset. |
| top | The top inset. |
| right | The right inset. |
| bottom | The bottom inset. |
| BGroupLayout * BGroupLayoutBuilder::TopLayout | ( | ) | const |
Get a reference to the highest underlying BGroupLayout.
| BView * BGroupLayoutBuilder::TopView | ( | ) | const |
Get a reference to the owning BView.
Returns the same BView* as BLayout::Owner(), this method is inherited from BLayoutItem.