[haiku-commits] haiku: hrev47301 - docs/user/interface

  • From: jscipione@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 3 Jun 2014 02:13:54 +0200 (CEST)

hrev47301 adds 1 changeset to branch 'master'
old head: 9cd7c6a4338747b8ef15b38a06df188134248495
new head: b4c773d32ee7c1c08932cfc0829f468f9b9d299c
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=b4c773d+%5E9cd7c6a

----------------------------------------------------------------------------

b4c773d: modified layout intro docsZ
  
  Signed-off-by: John Scipione <jscipione@xxxxxxxxx>

                                    [ Andrew Lindesay <apl@xxxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev47301
Commit:      b4c773d32ee7c1c08932cfc0829f468f9b9d299c
URL:         http://cgit.haiku-os.org/haiku/commit/?id=b4c773d
Author:      Andrew Lindesay <apl@xxxxxxxxxxxxxx>
Date:        Tue Apr  9 10:11:49 2013 UTC
Committer:   John Scipione <jscipione@xxxxxxxxx>
Commit-Date: Tue Jun  3 00:13:16 2014 UTC

----------------------------------------------------------------------------

1 file changed, 16 insertions(+)
docs/user/interface/_layout_intro.dox | 16 ++++++++++++++++

----------------------------------------------------------------------------

diff --git a/docs/user/interface/_layout_intro.dox 
b/docs/user/interface/_layout_intro.dox
index 802a77a..30fd41a 100644
--- a/docs/user/interface/_layout_intro.dox
+++ b/docs/user/interface/_layout_intro.dox
@@ -156,4 +156,20 @@ BLayoutBuilder::Group<>(window, B_VERTICAL)
        This is only one way that you could build this layout, but it is 
probably
        the most succinct. Functionally, this is equivalent to all the previous
        code in this introduction.
+
+\par Special Handling for BBox
+       BBox is a "container" view that can contain other views.
+       The use of the layout manager within an
+       instance of BBox is a special case.  Code such as is shown below is
+       necessary to automatically layout views within a BBox.
+
+\code
+BBox *box = new BBox("box-example");
+BGroupLayout *boxLayout = BLayoutBuilder::Group<>(B_HORIZONTAL)
+       .Add(button1)
+       .Add(button2);
+
+box->AddChild(boxLayout->View());
+\endcode
+
 */


Other related posts:

  • » [haiku-commits] haiku: hrev47301 - docs/user/interface - jscipione