]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/wrapsizer.tex
Ensure AutoComp items with no type will set the item's image index to -1.
[wxWidgets.git] / docs / latex / wx / wrapsizer.tex
CommitLineData
15f7c305
RR
1\section{\class{wxWrapSizer}}\label{wxwrapsizer}
2
c8c49cae 3A wrap sizer lays out its items in a single line, like a box sizer -- as long
15f7c305 4as there is space available in that direction. Once all available space in
c8c49cae
VZ
5the primary direction has been used, a new line is added and items are added
6there.
15f7c305
RR
7
8So a wrap sizer has a primary orientation for adding items, and adds lines
9as 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
c8c49cae
VZ
37Constructor for a wxWrapSizer. \arg{orient} determines the primary direction of
38the sizer (the most common case being \texttt{wxHORIZONTAL}). The flags
39parameter may have the value \texttt{wxEXTEND\_LAST\_ON\_EACH\_LINE} which will
40cause the last item on each line to use any remaining space on that line.
41
15f7c305
RR
42
43\membersection{wxWrapSizer::InformFirstDirection}\label{wxwrapsizerinformfirstdirection}
44
45\func{bool}{InformFirstDirection}{\param{int }{direction}, \param{int }{size},
46\param{int }{availableOtherDir }}
47
48Not used by an application. This is the mechanism by which sizers can inform
49sub-items of the first determined size component. The sub-item can then better
50determine its size requirements.
51
52Returns true if the information was used (and the sub-item min size was updated).
53
54
55