2011-08-10 01:46:13 +04:00
|
|
|
/*
|
2020-04-18 09:27:42 +03:00
|
|
|
* Copyright 2011, 2020 Haiku, Inc. All rights reserved.
|
2011-08-10 01:46:13 +04:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* John Scipione, jscipione@gmail.com
|
|
|
|
* Ingo Weinhold, bonefish@cs.tu-berlin.de
|
2020-04-18 09:27:42 +03:00
|
|
|
* Niels Sascha Reedijk, niels.reedijk@gmail.com
|
2017-01-28 21:22:53 +03:00
|
|
|
*
|
2011-08-10 01:46:13 +04:00
|
|
|
* Corresponds to:
|
2020-04-18 09:27:42 +03:00
|
|
|
* headers/os/interface/LayoutBuilder.h rev 49977
|
2011-08-10 01:46:13 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2010-10-23 06:33:08 +04:00
|
|
|
/*!
|
|
|
|
\class BLayoutBuilder::Group<>
|
|
|
|
\ingroup layout
|
2013-02-07 06:05:00 +04:00
|
|
|
\ingroup libbe
|
2010-10-23 06:33:08 +04:00
|
|
|
\brief BLayoutBuilder::Base subclass for building BGroupLayouts.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2020-04-18 09:27:42 +03:00
|
|
|
/*!
|
|
|
|
\typedef BLayoutBuilder::Group<ParentBuilder>::ThisBuilder
|
|
|
|
\brief Shorthand representing the type of \c this.
|
|
|
|
|
|
|
|
\since Haiku R1
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2010-10-23 06:33:08 +04:00
|
|
|
/*!
|
|
|
|
\typedef BLayoutBuilder::Group<ParentBuilder>::GroupBuilder
|
|
|
|
\brief Shorthand for builders returned by this builder's AddGroup() methods.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\typedef BLayoutBuilder::Group<ParentBuilder>::GridBuilder
|
|
|
|
\brief Shorthand for builders returned by this builder's AddGrid() methods.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\typedef BLayoutBuilder::Group<ParentBuilder>::SplitBuilder
|
|
|
|
\brief Shorthand for builders returned by this builder's AddSplit() methods.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
2020-04-18 09:27:42 +03:00
|
|
|
\typedef BLayoutBuilder::Group<ThisBuilder>::CardBuilder
|
|
|
|
\brief Shorthand for builders returned by this builder's AddCards()
|
|
|
|
methods.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\name Constructors
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2011-08-10 01:46:13 +04:00
|
|
|
//! @{
|
|
|
|
|
|
|
|
|
2010-10-23 06:33:08 +04:00
|
|
|
/*!
|
2011-08-10 01:46:13 +04:00
|
|
|
\fn BLayoutBuilder::Group<ParentBuilder>::Group(BWindow *window,
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation, float spacing)
|
2010-10-23 06:33:08 +04:00
|
|
|
\brief Creates a new BGroupLayout, and attaches it to a BWindow.
|
|
|
|
|
|
|
|
\note The top BView* in \a window has its ViewColor set to
|
2014-06-14 01:25:02 +04:00
|
|
|
\c B_PANEL_BACKGROUND_COLOR.
|
2020-04-18 09:27:42 +03:00
|
|
|
\param window The BWindow* to attach the newly created BGroupLayout to.
|
|
|
|
\param orientation The orientation for the new BGroupLayout.
|
|
|
|
\param spacing The spacing for the new BGroupLayout.
|
|
|
|
|
|
|
|
\since Haiku R1
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn BLayoutBuilder::Group<ParentBuilder>::Group(BView* view,
|
|
|
|
orientation orientation, float spacing)
|
|
|
|
\brief Creates a builder targeting an existing \a view.
|
|
|
|
|
|
|
|
\param view The BView* to attach the newly created BGroupLayout to.
|
2010-10-23 06:33:08 +04:00
|
|
|
\param orientation The orientation for the new BGroupLayout.
|
|
|
|
\param spacing The spacing for the new BGroupLayout.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn BLayoutBuilder::Group<ParentBuilder>::Group(BGroupLayout* layout)
|
|
|
|
\brief Creates a builder targeting a BGroupLayout.
|
|
|
|
|
|
|
|
Methods called on this builder will be directed to \a layout.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
2010-10-23 06:33:08 +04:00
|
|
|
\param layout The BGroupLayout to target with this builder.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn BLayoutBuilder::Group<ParentBuilder>::Group(BGroupView* view)
|
|
|
|
\brief Creates a builder targeting a BGroupView.
|
|
|
|
|
|
|
|
Methods called on this builder will be directed to
|
|
|
|
\c view->GroupLayout().
|
|
|
|
|
|
|
|
\param view The BGroupView this builder will target.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
2011-08-10 01:46:13 +04:00
|
|
|
\fn BLayoutBuilder::Group<ParentBuilder>::Group(
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation, float spacing)
|
2010-10-23 06:33:08 +04:00
|
|
|
\brief Creates a new BGroupView and targets it.
|
|
|
|
|
|
|
|
Methods called on this builder will be directed to the new BGroupView's
|
|
|
|
BGroupLayout.
|
|
|
|
|
|
|
|
\param orientation The orientation for the new BGroupView.
|
|
|
|
\param spacing The spacing for the new BGroupView.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2011-08-10 01:46:13 +04:00
|
|
|
//! @}
|
2010-10-23 06:33:08 +04:00
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\name Adding BViews and BLayoutItems
|
|
|
|
*/
|
|
|
|
|
2011-08-10 01:46:13 +04:00
|
|
|
|
|
|
|
//! @{
|
|
|
|
|
2020-03-29 11:26:50 +03:00
|
|
|
|
2010-10-23 06:33:08 +04:00
|
|
|
/*!
|
|
|
|
\fn ThisBuilder& BLayoutBuilder::Group<ParentBuilder>::Add(BView* view)
|
|
|
|
\brief Add a BView to the BGroupLayout this builder represents.
|
|
|
|
|
|
|
|
\param view The BView to be added.
|
|
|
|
\see BGroupLayout::AddView(BView*)
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn ThisBuilder& BLayoutBuilder::Group<ParentBuilder>::Add(BView* view,
|
|
|
|
float weight)
|
|
|
|
\brief Add BView to the BGroupLayout this builder represents.
|
|
|
|
|
|
|
|
\param view The BView to be added.
|
|
|
|
\param weight The weight to give \a view.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
2010-10-23 06:33:08 +04:00
|
|
|
\see BGroupLayout::AddView(BView* view, float weight)
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn ThisBuilder& BLayoutBuilder::Group<ParentBuilder>::Add(
|
|
|
|
BLayoutItem* item)
|
|
|
|
\brief Add a BLayoutItem to the BGroupLayout this builder represents.
|
|
|
|
|
|
|
|
\param item The BLayoutItem to be added.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
2010-10-23 06:33:08 +04:00
|
|
|
\see BGroupLayout::AddItem(BLayoutItem*)
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn ThisBuilder& BLayoutBuilder::Group<ParentBuilder>::Add(BLayoutItem*
|
|
|
|
item, float weight)
|
|
|
|
\brief Add a BLayoutItem the BGroupLayout this builder represents.
|
|
|
|
|
|
|
|
\param item The BLayoutItem to be added.
|
|
|
|
\param weight The weight to give \a item.
|
|
|
|
\see BGroupLayout::AddItem(BLayoutItem* item, float weight)
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2011-08-10 01:46:13 +04:00
|
|
|
//! @}
|
2010-10-23 06:33:08 +04:00
|
|
|
|
|
|
|
|
|
|
|
/*!
|
2014-06-14 01:25:02 +04:00
|
|
|
\name Adding BLayouts and their BView Pairs
|
|
|
|
|
|
|
|
A set of methods that add a BLayout or BView subclass and return a
|
2010-10-23 06:33:08 +04:00
|
|
|
BLayoutBuilder::Base subclass representing the newly added object. These
|
|
|
|
methods push a new builder on top of the stack, you will not be using
|
|
|
|
\c this builder again until you call End().
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2011-08-10 01:46:13 +04:00
|
|
|
//! @{
|
|
|
|
|
|
|
|
|
2010-10-23 06:33:08 +04:00
|
|
|
/*!
|
|
|
|
\fn GroupBuilder BLayoutBuilder::Group<ParentBuilder>::AddGroup(
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation, float spacing, float weight)
|
2020-04-18 09:27:42 +03:00
|
|
|
\brief Add a new viewless BGroupLayout as a child to the layout that this
|
|
|
|
builder represents and return a GroupBuilder representing the new
|
|
|
|
layout.
|
2010-10-23 06:33:08 +04:00
|
|
|
|
|
|
|
\param orientation The orientation to use for the new BGroupLayout.
|
|
|
|
\param spacing The spacing to use for the new BGroupLayout.
|
2020-04-18 09:27:42 +03:00
|
|
|
\param weight The weight for the new BGroupLayout in this group layout.
|
2011-08-10 01:46:13 +04:00
|
|
|
|
2010-10-23 06:33:08 +04:00
|
|
|
\returns A GroupBuilder representing the newly created BGroupLayout.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn GroupBuilder BLayoutBuilder::Group<ParentBuilder>::AddGroup(BGroupView*
|
|
|
|
groupView, float weight)
|
2020-04-18 09:27:42 +03:00
|
|
|
\brief Add an existing BGroupView as a child to the layout that this
|
|
|
|
builder represents and return a GroupBuilder representing the layout of
|
|
|
|
the added \a groupView.
|
2010-10-23 06:33:08 +04:00
|
|
|
|
|
|
|
\param groupView The BGroupView to be added.
|
2020-04-18 09:27:42 +03:00
|
|
|
\param weight The weight for \a groupView in this group layout.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
2020-04-18 09:27:42 +03:00
|
|
|
\returns A GroupBuilder representing the layout of the \a groupView.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn GroupBuilder BLayoutBuilder::Group<ParentBuilder>::AddGroup(
|
|
|
|
BGroupLayout* groupLayout, float weight)
|
2020-04-18 09:27:42 +03:00
|
|
|
\brief Add an existing BGroupLayout as a child to the layout that this
|
|
|
|
builder represents and return a GroupBuilder to the added layout.
|
2010-10-23 06:33:08 +04:00
|
|
|
|
|
|
|
\param groupLayout The BGroupLayout to be added.
|
2020-04-18 09:27:42 +03:00
|
|
|
\param weight The weight for \a groupLayout in this group layout.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
2020-04-18 09:27:42 +03:00
|
|
|
\returns A GroupBuilder representing the \a groupLayout.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
2020-04-18 09:27:42 +03:00
|
|
|
\fn GridBuilder BLayoutBuilder::Group<ParentBuilder>::AddGrid(
|
|
|
|
float horizontalSpacing, float verticalSpacing, float weight)
|
|
|
|
\brief Add a new viewless BGridLayout as a child to the layout that this
|
|
|
|
builder represents and return a GridBuilder representing the new
|
|
|
|
layout.
|
2010-10-23 06:33:08 +04:00
|
|
|
|
|
|
|
\param horizontalSpacing The horizontal spacing for the new BGridLayout.
|
|
|
|
\param verticalSpacing The vertical spacing for the new BGridLayout.
|
|
|
|
\param weight The weight for the new BGroupLayout in the BGroupLayout this
|
|
|
|
builder represents.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
2010-10-23 06:33:08 +04:00
|
|
|
\returns A GridBuilder representing the newly created BGridLayout.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn GridBuilder BLayoutBuilder::Group<ParentBuilder>::AddGrid(
|
2020-04-18 09:27:42 +03:00
|
|
|
BGridLayout* gridLayout, float weight)
|
|
|
|
\brief Add an existing BGridLayout as a child to the layout that this
|
|
|
|
builder represents and return a GridBuilder to the added layout.
|
2010-10-23 06:33:08 +04:00
|
|
|
|
2020-04-18 09:27:42 +03:00
|
|
|
\param gridLayout The BGridLayout to be added.
|
2020-03-29 11:26:50 +03:00
|
|
|
\param weight The weight for \a gridLayout in the BGroupLayout this builder
|
2010-10-23 06:33:08 +04:00
|
|
|
represents.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
2020-04-18 09:27:42 +03:00
|
|
|
\returns A GridBuilder representing \a gridLayout.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn GridBuilder BLayoutBuilder::Group<ParentBuilder>::AddGrid(
|
2020-04-18 09:27:42 +03:00
|
|
|
BGridView* gridView, float weight)
|
|
|
|
\brief Add an existing BGridView as a child to the layout this builder
|
|
|
|
represents and return a GridBuilder representing the layout of the
|
|
|
|
added \a gridView.
|
2010-10-23 06:33:08 +04:00
|
|
|
|
2020-04-18 09:27:42 +03:00
|
|
|
\param gridView The BGridView to be added.
|
|
|
|
\param weight The weight for \a gridView in this BGroupLayout.
|
2010-10-23 06:33:08 +04:00
|
|
|
|
2020-04-18 09:27:42 +03:00
|
|
|
\returns A GridBuilder representing the layout of the \a gridView.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn SplitBuilder BLayoutBuilder::Group<ParentBuilder>::AddSplit(
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation, float spacing, float weight)
|
2020-04-18 09:27:42 +03:00
|
|
|
\brief Add a new BSplitView as a child to the layout that this builder
|
|
|
|
represents and return a SplitBuilder representing the new BSplitView.
|
2010-10-23 06:33:08 +04:00
|
|
|
|
|
|
|
\param orientation The orientation of the new BSplitView.
|
|
|
|
\param spacing The spacing of the new BSplitView.
|
|
|
|
\param weight The weight, in this BGroupLayout for the new BSplitView.
|
|
|
|
|
2020-04-18 09:27:42 +03:00
|
|
|
\returns A SplitBuilder representing the new BSplitView.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn SplitBuilder BLayoutBuilder::Group<ParentBuilder>::AddSplit(
|
|
|
|
BSplitView* splitView, float weight = 1.0f)
|
2020-04-18 09:27:42 +03:00
|
|
|
\brief Add an existing BSplitView as a child to the layout this builder
|
|
|
|
represents and return a SplitBuilder representing the layout of the
|
|
|
|
added \a splitView.
|
2010-10-23 06:33:08 +04:00
|
|
|
|
|
|
|
\param splitView The BSplitView to be added.
|
|
|
|
\param weight The weight of the BSplitView in the BGroupLayout this builder
|
|
|
|
represents.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
2020-04-18 09:27:42 +03:00
|
|
|
\returns A SplitBuilder representing the \a splitView.
|
|
|
|
|
|
|
|
\since Haiku R1
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn CardBuilder BLayoutBuilder::Group<ParentBuilder>::AddCards(
|
|
|
|
float weight)
|
|
|
|
\brief Add a new viewless BCardLayout as a child to the layout that this
|
|
|
|
builder represents and return a CardBuilder representing the new layout.
|
|
|
|
|
|
|
|
\param weight The weight of this new layout within the current group layout.
|
|
|
|
|
|
|
|
\returns A CardBuilder representing the new BCardLayout.
|
|
|
|
|
|
|
|
\since Haiku R1
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn CardBuilder BLayoutBuilder::Group<ParentBuilder>::AddCards(
|
|
|
|
BCardLayout* cardLayout, float weight)
|
|
|
|
\brief Add an existing BCardLayout as a child to the layout that this builder
|
|
|
|
represents and return a CardBuilder representing the added layout.
|
|
|
|
|
|
|
|
\param cardLayout The existing layout to add to the current group layout.
|
|
|
|
\param weight The weight of this new layout within the current group
|
|
|
|
layout.
|
|
|
|
|
|
|
|
\returns A CardBuilder representing the \a cardLayout.
|
|
|
|
|
|
|
|
\since Haiku R1
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn CardBuilder BLayoutBuilder::Group<ParentBuilder>::AddCards(
|
|
|
|
BCardView* cardView, float weight)
|
|
|
|
\brief Add an existing BCardView as a child to the layout that this builder
|
|
|
|
represents and return a CardBuilder representing the layout of the
|
|
|
|
added BCardView.
|
|
|
|
|
|
|
|
\param cardView The existing BCardView to add to the current group layout.
|
|
|
|
\param weight The weight of this new layout within the current group layout.
|
|
|
|
|
|
|
|
\returns A CardBuilder representing the layout of the \a cardView.
|
|
|
|
|
2014-06-14 01:25:02 +04:00
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2011-08-10 01:46:13 +04:00
|
|
|
//! @}
|
2010-10-23 06:33:08 +04:00
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\name Adding BSpaceLayoutItems
|
2014-06-14 01:25:02 +04:00
|
|
|
|
2010-10-23 06:33:08 +04:00
|
|
|
Some convenience methods for adding special BSpaceLayoutItems.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2011-08-10 01:46:13 +04:00
|
|
|
//! @{
|
|
|
|
|
|
|
|
|
2010-10-23 06:33:08 +04:00
|
|
|
/*!
|
|
|
|
\fn ThisBuilder& BLayoutBuilder::Group<ParentBuilder>::AddGlue(
|
2020-04-18 09:27:42 +03:00
|
|
|
float weight)
|
2010-10-23 06:33:08 +04:00
|
|
|
\brief Add a BSpaceLayoutItem created by BSpaceLayoutItem::CreateGlue()
|
2020-04-18 09:27:42 +03:00
|
|
|
to the builder's layout.
|
2010-10-23 06:33:08 +04:00
|
|
|
|
|
|
|
\param weight The weight of the BSpaceLayoutItem in the BGroupLayout this
|
|
|
|
builder represents
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn ThisBuilder& BLayoutBuilder::Group<ParentBuilder>::AddStrut(float size)
|
|
|
|
\brief Add a BSpaceLayoutItem created by
|
2014-06-14 01:25:02 +04:00
|
|
|
BSpaceLayoutItem::CreateHorizontalStrut() or
|
|
|
|
BSpaceLayoutItem::CreateVerticalStrut() to the BGroupLayout
|
|
|
|
this builder represents.
|
2010-10-23 06:33:08 +04:00
|
|
|
|
|
|
|
\param size The width or height of the strut to be created (depending on
|
|
|
|
the orientation of the BGroupLayout this builder represents).
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
//!@}
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
2020-04-18 09:27:42 +03:00
|
|
|
\name Insets
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
//! @{
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn ThisBuilder& BLayoutBuilder::Group<ParentBuilder>::SetInsets(
|
|
|
|
float left, float top, float right, float bottom)
|
|
|
|
\copydoc BTwoDimensionalLayout::SetInsets(float, float, float, float)
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn ThisBuilder& BLayoutBuilder::Group<ParentBuilder>::SetInsets(
|
|
|
|
float horizontal, float vertical)
|
|
|
|
\copydoc BTwoDimensionalLayout::SetInsets(float, float)
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn ThisBuilder& BLayoutBuilder::Group<ParentBuilder>::SetInsets(
|
|
|
|
float insets)
|
|
|
|
\copydoc BTwoDimensionalLayout::SetInsets(float)
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
//! @}
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\name Explicit Sizes and Alignment
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
//! @{
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn ThisBuilder& BLayoutBuilder::Group<ParentBuilder>::SetExplicitMinSize(
|
|
|
|
BSize size)
|
|
|
|
\brief Set the explicit minimum size of the underlying layout.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2020-04-18 09:27:42 +03:00
|
|
|
/*!
|
|
|
|
\fn ThisBuilder& BLayoutBuilder::Group<ParentBuilder>::SetExplicitMaxSize(
|
|
|
|
BSize size)
|
|
|
|
\brief Set the explicit maximum size of the underlying layout.
|
|
|
|
|
|
|
|
\since Haiku R1
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn ThisBuilder& BLayoutBuilder::Group<ParentBuilder>::SetExplicitPreferredSize(
|
|
|
|
BSize size)
|
|
|
|
\brief Set the explicit preferred size of the underlying layout.
|
|
|
|
|
|
|
|
\since Haiku R1
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn ThisBuilder& BLayoutBuilder::Group<ParentBuilder>::SetExplicitAlignment(
|
|
|
|
BAlignment alignment)
|
|
|
|
\brief Set the explicit alignment of the underlying layout.
|
|
|
|
|
|
|
|
\since Haiku R1
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
//! @}
|
|
|
|
|
|
|
|
|
2010-10-23 06:33:08 +04:00
|
|
|
/*!
|
|
|
|
\name Accessors
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2011-08-10 01:46:13 +04:00
|
|
|
//! @{
|
|
|
|
|
|
|
|
|
2010-10-23 06:33:08 +04:00
|
|
|
/*!
|
|
|
|
\fn BGroupLayout* BLayoutBuilder::Group<ParentBuilder>::Layout() const
|
2020-04-18 09:27:42 +03:00
|
|
|
\brief Get a pointer to the layout this builder represents.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
2013-02-07 06:05:00 +04:00
|
|
|
\fn BView* BLayoutBuilder::Group<ParentBuilder>::View() const
|
2020-04-18 09:27:42 +03:00
|
|
|
\brief Get a pointer to the BView this builder's layout is attached to.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn ThisBuilder& BLayoutBuilder::Group<ParentBuilder>::GetLayout(
|
|
|
|
BGroupLayout** _layout)
|
2020-04-18 09:27:42 +03:00
|
|
|
\brief Get the layout this builder represents.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
2020-04-18 09:27:42 +03:00
|
|
|
\param[out] _layout The layout this builder represents.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
2013-02-07 06:05:00 +04:00
|
|
|
\fn ThisBuilder& BLayoutBuilder::Group<ParentBuilder>::GetView(
|
2014-06-14 01:25:02 +04:00
|
|
|
BView** _view)
|
2020-04-18 09:27:42 +03:00
|
|
|
\brief Get a pointer to the BView this builder's layout is attached to.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
2020-04-18 09:27:42 +03:00
|
|
|
\param[out] _view The BView this builder's layout is attached to.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn BLayoutBuilder::Group<ParentBuilder>::operator BGroupLayout*()
|
2020-04-18 09:27:42 +03:00
|
|
|
\brief Cast this builder into the layout object it represents.
|
2014-06-14 01:25:02 +04:00
|
|
|
|
|
|
|
\since Haiku R1
|
2010-10-23 06:33:08 +04:00
|
|
|
*/
|
|
|
|
|
2014-06-14 01:25:02 +04:00
|
|
|
|
2010-10-23 06:33:08 +04:00
|
|
|
//!@}
|