BLayoutBuilder::Base subclass for building BSplitViews. More...
Inherits BLayoutBuilder::Base< ParentBuilder >.
Public Types | |
typedef Cards< ThisBuilder > | CardBuilder |
typedef Grid< ThisBuilder > | GridBuilder |
typedef Group< ThisBuilder > | GroupBuilder |
typedef Split< ThisBuilder > | SplitBuilder |
typedef Split< ParentBuilder > | ThisBuilder |
Public Member Functions | |
Constructors | |
Split (orientation orientation=B_HORIZONTAL, float spacing=B_USE_DEFAULT_SPACING) | |
Creates a builder for a new BSplitView. | |
Split (BSplitView *view) | |
Creates a builder for an existing BSplitView. | |
Accessors | |
BSplitView * | View () const |
ThisBuilder & | GetView (BView **_view) |
ThisBuilder & | GetSplitView (BSplitView **_view) |
Get a pointer to the SplitBView this builder is attached to. | |
operator BSplitView * () | |
Cast this builder into the layout object it represents. | |
Adding BViews and BLayoutItems | |
ThisBuilder & | Add (BView *view) |
Add a view to the underlying BSplitView. | |
ThisBuilder & | Add (BView *view, float weight) |
Add a view with a weight to the underlying BSplitView. | |
ThisBuilder & | Add (BLayoutItem *item) |
Add a item to the underlying BSplitView. | |
ThisBuilder & | Add (BLayoutItem *item, float weight) |
Add an item with a weight to the underlying BSplitView. | |
Adding BLayouts and their BView Pairs | |
A set of methods that add a BLayout or BView subclass and return a BLayoutBuilder::Base subclass representing the newly added object. These methods push a new builder on top of the stack, you will not be using | |
GroupBuilder | AddGroup (orientation orientation, float spacing=B_USE_DEFAULT_SPACING, float weight=1.0f) |
GroupBuilder | AddGroup (BGroupView *groupView, float weight=1.0f) |
GroupBuilder | AddGroup (BGroupLayout *groupLayout, float weight=1.0f) |
GridBuilder | AddGrid (float horizontal=B_USE_DEFAULT_SPACING, float vertical=B_USE_DEFAULT_SPACING, float weight=1.0f) |
GridBuilder | AddGrid (BGridView *gridView, float weight=1.0f) |
GridBuilder | AddGrid (BGridLayout *gridLayout, float weight=1.0f) |
SplitBuilder | AddSplit (orientation orientation, float spacing=B_USE_DEFAULT_SPACING, float weight=1.0f) |
SplitBuilder | AddSplit (BSplitView *splitView, float weight=1.0f) |
CardBuilder | AddCards (float weight=1.0f) |
CardBuilder | AddCards (BCardLayout *cardLayout, float weight=1.0f) |
CardBuilder | AddCards (BCardView *cardView, float weight=1.0f) |
Collapsability of elements | |
ThisBuilder & | SetCollapsible (bool collapsible) |
ThisBuilder & | SetCollapsible (int32 index, bool collapsible) |
ThisBuilder & | SetCollapsible (int32 first, int32 last, bool collapsible) |
Insets | |
ThisBuilder & | SetInsets (float left, float top, float right, float bottom) |
ThisBuilder & | SetInsets (float horizontal, float vertical) |
ThisBuilder & | SetInsets (float insets) |
Public Member Functions inherited from BLayoutBuilder::Base< ParentBuilder > | |
ParentBuilder & | End () |
Returns this builder's parent. | |
void | SetParent (ParentBuilder *parent) |
Internal method for use by BLayoutBuilder::Base subclasses, this is essential to the builder stack semantics. | |
BLayoutBuilder::Base subclass for building BSplitViews.
A BSplitView consists of elements, for which in between there are dividers that the user can manipulate to alter the division of space between each of the element.s
For a detailed view on the properties, see the class description.
BLayoutBuilder::Split< ParentBuilder >::CardBuilder |
Shorthand for builders returned by this builder's AddCards() methods.
BLayoutBuilder::Split< ParentBuilder >::GridBuilder |
Shorthand for builders returned by this builder's AddGrid() methods.
BLayoutBuilder::Split< ParentBuilder >::GroupBuilder |
Shorthand for builders returned by this builder's AddGroup() methods.
BLayoutBuilder::Split< ParentBuilder >::SplitBuilder |
Shorthand for builders returned by this builder's AddSplit() methods.
BLayoutBuilder::Split< ParentBuilder >::ThisBuilder |
Shorthand representing the type of this
.
|
inline |
Creates a builder for a new BSplitView.
orientation | The orientation for the new BSplitView. |
spacing | The spacing for the new BSplitView. |
|
inline |
Creates a builder for an existing BSplitView.
view | The existing view to operate on. |
|
inline |
Add a item to the underlying BSplitView.
The layout item will be added to the right or the bottom of the existing elements.
item | The BLayoutItem to be added. The underlying BSplitView will take ownership of the object. |
|
inline |
Add an item with a weight to the underlying BSplitView.
The layout item will be added to the right or the bottom of the existing elements.
item | The BLayoutItem to be added. The underlying BSplitView will take ownership of the object. |
weight | The weight of the item. |
|
inline |
Add a view to the underlying BSplitView.
The view will be added to the right or the bottom of the existing elements.
view | The BView to be added. The underlying BSplitView will take ownership of the object. |
|
inline |
Add a view with a weight to the underlying BSplitView.
The view will be added to the right or the bottom of the existing elements.
view | The BView to be added. The underlying BSplitView will take ownership of the object. |
weight | The weight of the view. |
|
inline |
BLayoutBuilder::Group<ParentBuilder>::AddCards( BCardLayout* cardLayout, float weight)
cardLayout | The existing layout that will be added to the underlying BSplitView. |
weight | The weight of the BCardLayout in the BSplitView this builder represents. |
References BLayoutBuilder::Base< ParentBuilder >::SetParent(), and BLayoutBuilder::Cards< ParentBuilder >::View().
|
inline |
BLayoutBuilder::Group<ParentBuilder>::AddCards( BCardView* cardView, float weight)
cardView | The existing view that will be added to the underlying BSplitView. |
weight | The weight of the BCardLayout in the BSplitView this builder represents. |
References BLayoutBuilder::Base< ParentBuilder >::SetParent(), and BLayoutBuilder::Cards< ParentBuilder >::View().
|
inline |
BLayoutBuilder::Group<ParentBuilder>::AddCards( float weight)
weight | The weight of the BCardLayout in the BSplitView this builder represents. |
References BLayoutBuilder::Base< ParentBuilder >::SetParent(), and BLayoutBuilder::Cards< ParentBuilder >::View().
|
inline |
BLayoutBuilder::Group<ParentBuilder>::AddGrid( BGridLayout* gridLayout, float weight)
gridLayout | The BGridLayout to be added and used to construct the returned GridBuilder. |
weight | The weight for gridLayout in the BSplitView this builder represents. |
References BLayoutBuilder::Grid< ParentBuilder >::Layout(), and BLayoutBuilder::Base< ParentBuilder >::SetParent().
|
inline |
BLayoutBuilder::Group<ParentBuilder>::AddGrid( BGridView* gridView, float weight)
gridView | The BGridView to be added and used to construct the returned GridBuilder. |
weight | The weight for gridView in the BSplitView this builder represents. |
References BLayoutBuilder::Grid< ParentBuilder >::Layout(), and BLayoutBuilder::Base< ParentBuilder >::SetParent().
|
inline |
Shorthand for builders returned by this builder's AddGrid() methods.
horizontalSpacing | The horizontal spacing for the new BGridLayout. |
verticalSpacing | The vertical spacing for the new BGridLayout. |
weight | The weight for the new BGridLayout in the BSplitView this builder represents. |
References BLayoutBuilder::Grid< ParentBuilder >::Layout(), and BLayoutBuilder::Base< ParentBuilder >::SetParent().
|
inline |
BLayoutBuilder::Group<ParentBuilder>::AddGroup( BGroupLayout* groupLayout, float weight)
groupLayout | The BGroupLayout to be added. |
weight | The weight for groupLayout in the BGroupLayout this builder represents. |
References BLayoutBuilder::Group< ParentBuilder >::Layout(), and BLayoutBuilder::Base< ParentBuilder >::SetParent().
|
inline |
BLayoutBuilder::Group<ParentBuilder>::AddGroup(BGroupView* groupView, float weight)
groupView | The BGroupView to be added. |
weight | The weight for groupView in the BGroupLayout this builder represents. |
References BLayoutBuilder::Group< ParentBuilder >::Layout(), and BLayoutBuilder::Base< ParentBuilder >::SetParent().
|
inline |
orientation | The orientation to use for the new BGroupLayout. |
spacing | The spacing to use for the new BGroupLayout. |
weight | The weight for the new BGroupLayout in the BGroupLayout this builder represents. |
References BLayoutBuilder::Group< ParentBuilder >::Layout(), and BLayoutBuilder::Base< ParentBuilder >::SetParent().
|
inline |
BLayoutBuilder::Group<ParentBuilder>::AddSplit( BSplitView* splitView, float weight)
splitView | The BSplitView to be added. |
weight | The weight of the BSplitView in the BSplitView this builder represents. |
|
inline |
orientation | The orientation of the new BSplitView. |
spacing | The spacing of the new BSplitView. |
weight | The weight, in this BSplitView for the new BSplitView. |
References BLayoutBuilder::Base< ParentBuilder >::SetParent(), and BLayoutBuilder::Split< ParentBuilder >::View().
|
inline |
Get a pointer to the SplitBView this builder is attached to.
[out] | _view | The BSplitView this builder' is attached to. |
|
inline |
|
inline |
Cast this builder into the layout object it represents.
|
inline |
Set the whether all the layout items in this view are collapsible.
collapsible | true if all items in this layout are collapsible, false if they are not. |
References BLayoutBuilder::Split< ParentBuilder >::SetCollapsible().
Referenced by BLayoutBuilder::Split< ParentBuilder >::SetCollapsible().
|
inline |
Set whether the items from first to last are collapsible.
first | The index of the first item that you want the setting to apply to (zero-based). |
last | The index of the last item that you want the setting to apply to (zero-based). |
collapsible | true if the user may collaps the item, false if they may not. |
References BLayoutBuilder::Split< ParentBuilder >::SetCollapsible().
|
inline |
Set whether the item at index is collapsible.
index | The index of the item (zero-based). |
collapsible | true if the user may collaps the item, false if they may not. |
References BLayoutBuilder::Split< ParentBuilder >::SetCollapsible().
|
inline |
Set the insets between the bounds of the view and the inner elements.
horizontal | The left and right inset. |
vertical | The top and bottom inset. |
References BLayoutBuilder::Split< ParentBuilder >::SetInsets().
|
inline |
Set the insets between the bounds of the view and the inner elements.
insets | The value for the left, top, right and bottom inset. |
References BLayoutBuilder::Split< ParentBuilder >::SetInsets().
|
inline |
Set the insets between the bounds of the view and the inner elements.
left | The left inset. |
top | The top inset. |
right | The right inset. |
bottom | The bottom inset. |
References BLayoutBuilder::Split< ParentBuilder >::SetInsets().
Referenced by BLayoutBuilder::Split< ParentBuilder >::SetInsets().
|
inline |
Get a pointer to the BView this builder's layout is attached to.
Referenced by BLayoutBuilder::Grid< ParentBuilder >::AddSplit(), BLayoutBuilder::Cards< ParentBuilder >::AddSplit(), BLayoutBuilder::Group< ParentBuilder >::AddSplit(), and BLayoutBuilder::Split< ParentBuilder >::AddSplit().