]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/wrapsizer.tex
46d5e03bc32a359524977ab42be55499134890bd
[wxWidgets.git] / docs / latex / wx / wrapsizer.tex
1 \section{\class{wxWrapSizer}}\label{wxwrapsizer}
2
3 A wrap sizer lays out its items in a single line, like a box sizer - as long
4 as there is space available in that direction. Once all available space in
5 the primary direction has been used a new line is added an items are added there.
6
7 So a wrap sizer has a primary orientation for adding items, and adds lines
8 as needed in the secondary direction.
9
10 \wxheading{Derived from}
11
12 \helpref{wxBoxSizer}{wxboxsizer}\\
13 \helpref{wxSizer}{wxsizer}\\
14 \helpref{wxObject}{wxobject}
15
16 \wxheading{Include files}
17
18 <wx/wrapsizer.h>
19
20 \wxheading{Library}
21
22 \helpref{wxCore}{librarieslist}
23
24 \wxheading{See also}
25
26 \helpref{wxBoxSizer}{wxboxsizer}, \helpref{wxSizer}{wxsizer}, \helpref{Sizer overview}{sizeroverview}
27
28
29
30 \latexignore{\rtfignore{\wxheading{Members}}}
31
32 \membersection{wxWrapSizer::wxWrapSizer}\label{wxwrapsizerwxwrapsizer}
33
34 \func{}{wxWrapSizer}{\param{int }{orient}, \param{int }{flags}}
35
36 Constructor for a wxWrapSizer. {\it orient} determines the primary direction of
37 the sizer (the most common case being wxHORIZONTAL). The flags parameter may have
38 the value wxEXTEND_LAST_ON_EACH_LINE. This will cause the last item one each line
39 to use any remaining space on that line.
40
41 \membersection{wxWrapSizer::InformFirstDirection}\label{wxwrapsizerinformfirstdirection}
42
43 \func{bool}{InformFirstDirection}{\param{int }{direction}, \param{int }{size},
44 \param{int }{availableOtherDir }}
45
46 Not used by an application. This is the mechanism by which sizers can inform
47 sub-items of the first determined size component. The sub-item can then better
48 determine its size requirements.
49
50 Returns true if the information was used (and the sub-item min size was updated).
51
52
53