]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/sizer.tex
Added support for locales like de_AT.iso-8859-1
[wxWidgets.git] / docs / latex / wx / sizer.tex
CommitLineData
8fe05782
VZ
1\section{\class{wxSizer}}\label{wxsizer}
2
515da557
RR
3wxSizer is the abstract base class used for layouting subwindows in a window. You
4cannot use wxSizer directly; instead, you'll have to use \helpref{wxBoxSizer}{wxboxsizer}
5or \helpref{wxStaticBoxSizer}{wxstaticboxsizer}.
6
7The layouting algorithm used by sizers in wxWindows closely related to layouting
8in other GUI toolkits, such as Java's AWT, the GTK toolkit or the Qt toolkit. It is
9based upon the idea of the individual subwindows reporting their minimal required
10size and their ability to get stretched if the size of the parent window has changed.
11This will most often mean, that the programmer does not set the original size of
12the dialog in the beginning, rather the top-most sizer will get queried and it will
13then query its children. Its children can be normal windows or other sizers, so that
14a hierachy of sizer can be constructed. Note that sizer are not derived from wxWindows
15and thus do not interfere with tab ordering and require very little resources compared
16to a real window on screen.
17
18What makes sizers so well fitted for use in wxWindows, is the fact that every control
19reports its own minimal size and the algorithm can handle differences in font sizes
20or different window (dialog item) sizes on different platforms without problems. If e.g.
21the standard font as well as the overall design of Motif widgets requires more space than
22on Windows, the intial dialog size will automatically be bigger on Motif than on Windows.
8fe05782
VZ
23
24\wxheading{Derived from}
25
26\helpref{wxObject}{wxobject}
27
8fe05782
VZ
28\latexignore{\rtfignore{\wxheading{Members}}}
29
30
31\membersection{wxSizer::wxSizer}\label{wxsizerwxsizer}
32
33\func{}{wxSizer}{\void}
34
35
36\membersection{wxSizer::\destruct{wxSizer}}\label{wxsizerdtor}
37
38\func{}{\destruct{wxSizer}}{\void}
39
40
41\membersection{wxSizer::Add}\label{wxsizeradd}
42
43\func{void}{Add}{\param{wxWindow* }{window}, \param{int }{option = 0}, \param{int }{flag = 0}, \param{int }{border = 0}}
44
45
46\membersection{wxSizer::Add}\label{wxsizeradd}
47
48\func{void}{Add}{\param{wxSizer* }{sizer}, \param{int }{option = 0}, \param{int }{flag = 0}, \param{int }{border = 0}}
49
50
51\membersection{wxSizer::Add}\label{wxsizeradd}
52
53\func{void}{Add}{\param{int }{width}, \param{int }{height}, \param{int }{option = 0}, \param{int }{flag = 0}, \param{int }{border = 0}}
54
55
56\membersection{wxSizer::SetDimension}\label{wxsizersetdimension}
57
58\func{void}{SetDimension}{\param{int }{x}, \param{int }{y}, \param{int }{width}, \param{int }{height}}
59
60
61\membersection{wxSizer::GetSize}\label{wxsizergetsize}
62
63\func{wxSize}{GetSize}{\void}
64
65
66\membersection{wxSizer::GetPosition}\label{wxsizergetposition}
67
68\func{wxPoint}{GetPosition}{\void}
69
70
71\membersection{wxSizer::GetMinSize}\label{wxsizergetminsize}
72
73\func{wxSize}{GetMinSize}{\void}
74
75
76\membersection{wxSizer::RecalcSizes}\label{wxsizerrecalcsizes}
77
78\func{void}{RecalcSizes}{\void}
79
80
81\membersection{wxSizer::CalcMin}\label{wxsizercalcmin}
82
83\func{wxSize}{CalcMin}{\void}
84
85
86\membersection{wxSizer::Layout}\label{wxsizerlayout}
87
88\func{void}{Layout}{\void}
89
90
91\membersection{wxSizer::Fit}\label{wxsizerfit}
92
93\func{void}{Fit}{\param{wxWindow* }{window}}
94
95
96\membersection{wxSizer::SetSizeHints}\label{wxsizersetsizehints}
97
98\func{void}{SetSizeHints}{\param{wxWindow* }{window}}
99
100
101\membersection{wxSizer::GetMinWindowSize}\label{wxsizergetminwindowsize}
102
103\func{wxSize}{GetMinWindowSize}{\param{wxWindow* }{window}