]>
git.saurik.com Git - wxWidgets.git/blob - interface/wrapsizer.h
53ed82cfa74810651a486fe3772ff1b2658b3aa5
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: documentation for wxWrapSizer class
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
11 @wxheader{wrapsizer.h}
13 A wrap sizer lays out its items in a single line, like a box sizer -- as long
14 as there is space available in that direction. Once all available space in
15 the primary direction has been used, a new line is added and items are added
18 So a wrap sizer has a primary orientation for adding items, and adds lines
19 as needed in the secondary direction.
25 wxBoxSizer, wxSizer, @ref overview_sizeroverview "Sizer overview"
27 class wxWrapSizer
: public wxBoxSizer
31 Constructor for a wxWrapSizer. @a orient determines the primary direction of
32 the sizer (the most common case being @c wxHORIZONTAL). The flags
33 parameter may have the value @c wxEXTEND_LAST_ON_EACH_LINE which will
34 cause the last item on each line to use any remaining space on that line.
36 wxWrapSizer(int orient
, int flags
);
39 Not used by an application. This is the mechanism by which sizers can inform
40 sub-items of the first determined size component. The sub-item can then better
41 determine its size requirements.
42 Returns @true if the information was used (and the sub-item min size was
45 bool InformFirstDirection(int direction
, int size
,
46 int availableOtherDir
);