BLayoutBuilder::Base subclass for building BCardLayouts. More...
Inherits BLayoutBuilder::Base< ParentBuilder >.
Public Types | |
| typedef Cards< ThisBuilder > | CardBuilder |
| typedef Grid< ThisBuilder > | GridBuilder |
| typedef Group< ThisBuilder > | GroupBuilder |
| typedef Split< ThisBuilder > | SplitBuilder |
| typedef Cards< ParentBuilder > | ThisBuilder |
Public Member Functions | |
Constructors | |
| Cards () | |
| Creates a builder for BCardLayout. | |
| Cards (BWindow *window) | |
| Creates a new builder for BCardLayout, and attaches it to a window. | |
| Cards (BView *view) | |
| Creates a new builder for BCardLayout, and attaches it to a view. | |
| Cards (BCardLayout *layout) | |
| Creates a builder targeting an existing BCardLayout. | |
| Cards (BCardView *view) | |
| Creates a builder targeting an existing BCardView. | |
Accessors | |
| BCardLayout * | Layout () const |
| BView * | View () const |
| ThisBuilder & | GetLayout (BCardLayout **_layout) |
| ThisBuilder & | GetView (BView **_view) |
| operator BCardLayout * () | |
| Cast this builder into the layout object it represents. | |
Adding BViews and BLayoutItems | |
| ThisBuilder & | Add (BView *view) |
| Add a view to the underlying BCardLayout. | |
| ThisBuilder & | Add (BLayoutItem *item) |
| Add a item to the underlying BCardLayout. | |
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) |
| GroupBuilder | AddGroup (BGroupView *groupView) |
| GroupBuilder | AddGroup (BGroupLayout *groupLayout) |
| GridBuilder | AddGrid (float horizontal=B_USE_DEFAULT_SPACING, float vertical=B_USE_DEFAULT_SPACING) |
| GridBuilder | AddGrid (BGridLayout *gridLayout) |
| GridBuilder | AddGrid (BGridView *gridView) |
| SplitBuilder | AddSplit (orientation orientation, float spacing=B_USE_DEFAULT_SPACING) |
| SplitBuilder | AddSplit (BSplitView *splitView) |
| CardBuilder | AddCards () |
| CardBuilder | AddCards (BCardLayout *cardLayout) |
| CardBuilder | AddCards (BCardView *cardView) |
Explicit Sizes and Alignment | |
| ThisBuilder & | SetExplicitMinSize (BSize size) |
| ThisBuilder & | SetExplicitMaxSize (BSize size) |
| ThisBuilder & | SetExplicitPreferredSize (BSize size) |
| ThisBuilder & | SetExplicitAlignment (BAlignment alignment) |
Visible Item | |
| ThisBuilder & | SetVisibleItem (int32 index) |
| Set the current visible item to the item at index. | |
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 BCardLayouts.
The BCardLayout class is a simple BLayout subclass that arranges the items as a stack of cards with only one card being on top and visible to the user.
For a detailed view on the properties, see the class description.
| BLayoutBuilder::Cards< ParentBuilder >::CardBuilder |
Shorthand for builders returned by this builder's AddCards() methods.
| BLayoutBuilder::Cards< ParentBuilder >::GridBuilder |
Shorthand for builders returned by this builder's AddGrid() methods.
| BLayoutBuilder::Cards< ParentBuilder >::GroupBuilder |
Shorthand for builders returned by this builder's AddGroup() methods.
| BLayoutBuilder::Cards< ParentBuilder >::SplitBuilder |
Shorthand for builders returned by this builder's AddSplit() methods.
| BLayoutBuilder::Cards< ParentBuilder >::ThisBuilder |
Shorthand representing the type of this.
|
inline |
Creates a builder for BCardLayout.
|
inline |
Creates a new builder for BCardLayout, and attaches it to a window.
References B_PANEL_BACKGROUND_COLOR, BLayout::Owner(), BWindow::SetLayout(), and BView::SetViewColor().
|
inline |
Creates a new builder for BCardLayout, and attaches it to a view.
References B_PANEL_BACKGROUND_COLOR, BView::SetLayout(), and BView::SetViewColor().
|
inline |
Creates a builder targeting an existing BCardLayout.
|
inline |
Creates a builder targeting an existing BCardView.
|
inline |
Add a item to the underlying BCardLayout.
The layout item will be added as a card at the end of the stack.
| item | The BLayoutItem to be added. The underlying BCardLayout will take ownership of the object. |
|
inline |
Add a view to the underlying BCardLayout.
The layout item will be added as a card at the end of the stack.
| view | The BView to be added. The underlying BCardLayout will take ownership of the object. |
|
inline |
BLayoutBuilder::Group<ParentBuilder>::AddCards( float weight)
References BLayoutBuilder::Base< ParentBuilder >::SetParent(), and BLayoutBuilder::Cards< ParentBuilder >::View().
|
inline |
BLayoutBuilder::Group<ParentBuilder>::AddCards( BCardLayout* cardLayout, float weight)
| cardLayout | The existing layout that will be added to the underlying BSplitView. |
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. |
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. |
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. |
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. |
References BLayoutBuilder::Grid< ParentBuilder >::Layout(), and BLayoutBuilder::Base< ParentBuilder >::SetParent().
|
inline |
BLayoutBuilder::Group<ParentBuilder>::AddGroup(BGroupView* groupView, float weight)
| groupLayout | The BGroupLayout to be added. |
References BLayoutBuilder::Group< ParentBuilder >::Layout(), and BLayoutBuilder::Base< ParentBuilder >::SetParent().
|
inline |
BLayoutBuilder::Group<ParentBuilder>::AddGroup( BGroupLayout* groupLayout, float weight)
| groupView | The BGroupView to be added. |
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. |
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. |
References BLayoutBuilder::Base< ParentBuilder >::SetParent(), and BLayoutBuilder::Split< ParentBuilder >::View().
|
inline |
| orientation | The orientation of the new BSplitView. |
| spacing | The spacing of the new BSplitView. |
References BLayoutBuilder::Base< ParentBuilder >::SetParent(), and BLayoutBuilder::Split< ParentBuilder >::View().
|
inline |
Get the layout this builder represents.
| [out] | _layout | The layout this builder represents. |
|
inline |
|
inline |
Get a pointer to the layout this builder represents.
|
inline |
Cast this builder into the layout object it represents.
|
inline |
Set the explicit alignment of the underlying layout.
References BLayoutBuilder::Cards< ParentBuilder >::SetExplicitAlignment().
Referenced by BLayoutBuilder::Cards< ParentBuilder >::SetExplicitAlignment().
|
inline |
Set the explicit maximum size of the underlying layout.
References BLayoutBuilder::Cards< ParentBuilder >::SetExplicitMaxSize().
Referenced by BLayoutBuilder::Cards< ParentBuilder >::SetExplicitMaxSize().
|
inline |
Set the explicit minimum size of the underlying layout.
References BLayoutBuilder::Cards< ParentBuilder >::SetExplicitMinSize().
Referenced by BLayoutBuilder::Cards< ParentBuilder >::SetExplicitMinSize().
|
inline |
Set the explicit preferred size of the underlying layout.
References BLayoutBuilder::Cards< ParentBuilder >::SetExplicitPreferredSize().
Referenced by BLayoutBuilder::Cards< ParentBuilder >::SetExplicitPreferredSize().
|
inline |
Set the current visible item to the item at index.
References BLayoutBuilder::Cards< ParentBuilder >::SetVisibleItem().
Referenced by BLayoutBuilder::Cards< ParentBuilder >::SetVisibleItem().
|
inline |
Get a pointer to the BView this builder's layout is attached to.
Referenced by BLayoutBuilder::Cards< ParentBuilder >::AddCards(), BLayoutBuilder::Group< ParentBuilder >::AddCards(), BLayoutBuilder::Split< ParentBuilder >::AddCards(), and BLayoutBuilder::Grid< ParentBuilder >::AddCards().