1 \section{\class{wxWrapSizer
}}\label{wxwrapsizer
}
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
8 So a wrap sizer has a primary orientation for adding items, and adds lines
9 as needed in the secondary direction.
11 \wxheading{Derived from
}
13 \helpref{wxBoxSizer
}{wxboxsizer
}\\
14 \helpref{wxSizer
}{wxsizer
}\\
15 \helpref{wxObject
}{wxobject
}
17 \wxheading{Include files
}
23 \helpref{wxCore
}{librarieslist
}
27 \helpref{wxBoxSizer
}{wxboxsizer
},
\helpref{wxSizer
}{wxsizer
},
\helpref{Sizer overview
}{sizeroverview
}
31 \latexignore{\rtfignore{\wxheading{Members
}}}
33 \membersection{wxWrapSizer::wxWrapSizer
}\label{wxwrapsizerwxwrapsizer
}
35 \func{}{wxWrapSizer
}{\param{int
}{orient
},
\param{int
}{flags
}}
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.
43 \membersection{wxWrapSizer::InformFirstDirection
}\label{wxwrapsizerinformfirstdirection
}
45 \func{bool
}{InformFirstDirection
}{\param{int
}{direction
},
\param{int
}{size
},
46 \param{int
}{availableOtherDir
}}
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.
52 Returns true if the information was used (and the sub-item min size was updated).