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 an items are added there.
7 So a wrap sizer has a primary orientation for adding items, and adds lines
8 as needed in the secondary direction.
10 \wxheading{Derived from
}
12 \helpref{wxBoxSizer
}{wxboxsizer
}\\
13 \helpref{wxSizer
}{wxsizer
}\\
14 \helpref{wxObject
}{wxobject
}
16 \wxheading{Include files
}
22 \helpref{wxCore
}{librarieslist
}
26 \helpref{wxBoxSizer
}{wxboxsizer
},
\helpref{wxSizer
}{wxsizer
},
\helpref{Sizer overview
}{sizeroverview
}
30 \latexignore{\rtfignore{\wxheading{Members
}}}
32 \membersection{wxWrapSizer::wxWrapSizer
}\label{wxwrapsizerwxwrapsizer
}
34 \func{}{wxWrapSizer
}{\param{int
}{orient
},
\param{int
}{flags
}}
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.
41 \membersection{wxWrapSizer::InformFirstDirection
}\label{wxwrapsizerinformfirstdirection
}
43 \func{bool
}{InformFirstDirection
}{\param{int
}{direction
},
\param{int
}{size
},
44 \param{int
}{availableOtherDir
}}
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.
50 Returns true if the information was used (and the sub-item min size was updated).