]> git.saurik.com Git - wxWidgets.git/blame - interface/wrapsizer.h
several g++ 4 warning fixes
[wxWidgets.git] / interface / wrapsizer.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: wrapsizer.h
e54c96f1 3// Purpose: interface of wxWrapSizer
23324ae1
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9/**
10 @class wxWrapSizer
11 @wxheader{wrapsizer.h}
7c913512
FM
12
13 A wrap sizer lays out its items in a single line, like a box sizer -- as long
14 as there is space available in that direction. Once all available space in
23324ae1
FM
15 the primary direction has been used, a new line is added and items are added
16 there.
7c913512 17
23324ae1 18 So a wrap sizer has a primary orientation for adding items, and adds lines
7c913512
FM
19 as needed in the secondary direction.
20
23324ae1
FM
21 @library{wxcore}
22 @category{winlayout}
7c913512 23
e54c96f1 24 @see wxBoxSizer, wxSizer, @ref overview_sizeroverview "Sizer overview"
23324ae1
FM
25*/
26class wxWrapSizer : public wxBoxSizer
27{
28public:
29 /**
4cc4bfaf 30 Constructor for a wxWrapSizer. @a orient determines the primary direction of
23324ae1
FM
31 the sizer (the most common case being @c wxHORIZONTAL). The flags
32 parameter may have the value @c wxEXTEND_LAST_ON_EACH_LINE which will
33 cause the last item on each line to use any remaining space on that line.
34 */
35 wxWrapSizer(int orient, int flags);
36
37 /**
7c913512 38 Not used by an application. This is the mechanism by which sizers can inform
23324ae1 39 sub-items of the first determined size component. The sub-item can then better
7c913512 40 determine its size requirements.
23324ae1
FM
41 Returns @true if the information was used (and the sub-item min size was
42 updated).
43 */
44 bool InformFirstDirection(int direction, int size,
45 int availableOtherDir);
46};
e54c96f1 47