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