]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/ilayout.tex
enable verbose messages by default in debug builds
[wxWidgets.git] / docs / latex / wx / ilayout.tex
CommitLineData
a660d684
KB
1\section{\class{wxIndividualLayoutConstraint}}\label{wxindividuallayoutconstraint}
2
3Objects of this class are stored in the wxIndividualLayoutConstraint class
4as one of eight possible constraints that a window can be involved in.
5
6Constraints are initially set to have the relationship wxUnconstrained,
7which means that their values should be calculated by looking at known constraints.
8
9\wxheading{Derived from}
10
11\helpref{wxObject}{wxobject}
12
13\wxheading{See also}
14
15\helpref{Overview and examples}{constraintsoverview},\rtfsp
16\helpref{wxLayoutConstraints}{wxlayoutconstraints}, \helpref{wxWindow::SetConstraints}{wxwindowsetconstraints}.
17
18\latexignore{\rtfignore{\wxheading{Members}}}
19
20\subsection{Edges and relationships}
21
a660d684
KB
22The {\it wxEdge}\index{wxEdge} enumerated type specifies the type of edge or dimension of a window.
23
24\begin{twocollist}\itemsep=0pt
25\twocolitem{wxLeft}{The left edge.}
26\twocolitem{wxTop}{The top edge.}
27\twocolitem{wxRight}{The right edge.}
28\twocolitem{wxBottom}{The bottom edge.}
29\twocolitem{wxCentreX}{The x-coordinate of the centre of the window.}
30\twocolitem{wxCentreY}{The y-coordinate of the centre of the window.}
31\end{twocollist}
32
33The {\it wxRelationship}\index{wxRelationship} enumerated type specifies the relationship that
34this edge or dimension has with another specified edge or dimension. Normally, the user
35doesn't use these directly because functions such as {\it Below} and {\it RightOf} are a convenience
36for using the more general {\it Set} function.
37
38\begin{twocollist}\itemsep=0pt
39\twocolitem{wxUnconstrained}{The edge or dimension is unconstrained (the default for edges.}
40\twocolitem{wxAsIs}{The edge or dimension is to be taken from the current window position or size (the
41default for dimensions.}
42\twocolitem{wxAbove}{The edge should be above another edge.}
43\twocolitem{wxBelow}{The edge should be below another edge.}
44\twocolitem{wxLeftOf}{The edge should be to the left of another edge.}
45\twocolitem{wxRightOf}{The edge should be to the right of another edge.}
46\twocolitem{wxSameAs}{The edge or dimension should be the same as another edge or dimension.}
47\twocolitem{wxPercentOf}{The edge or dimension should be a percentage of another edge or dimension.}
48\twocolitem{wxAbsolute}{The edge or dimension should be a given absolute value.}
49\end{twocollist}
50
51\membersection{wxIndividualLayoutConstraint::wxIndividualLayoutConstraint}
52
53\func{void}{wxIndividualLayoutConstraint}{\void}
54
55Constructor. Not used by the end-user.
56
57\membersection{wxIndividualLayoutConstraint::Above}
58
59\func{void}{Above}{\param{wxWindow *}{otherWin}, \param{int}{ margin = 0}}
60
61Constrains this edge to be above the given window, with an
62optional margin. Implicitly, this is relative to the top edge of the other window.
63
64\membersection{wxIndividualLayoutConstraint::Absolute}
65
66\func{void}{Absolute}{\param{int}{ value}}
67
68Constrains this edge or dimension to be the given absolute value.
69
70\membersection{wxIndividualLayoutConstraint::AsIs}
71
72\func{void}{AsIs}{\void}
73
74Sets this edge or constraint to be whatever the window's value is
75at the moment. If either of the width and height constraints
76are {\it as is}, the window will not be resized, but moved instead.
77This is important when considering panel items which are intended
78to have a default size, such as a button, which may take its size
79from the size of the button label.
80
81\membersection{wxIndividualLayoutConstraint::Below}
82
83\func{void}{Below}{\param{wxWindow *}{otherWin}, \param{int}{ margin = 0}}
84
85Constrains this edge to be below the given window, with an
86optional margin. Implicitly, this is relative to the bottom edge of the other window.
87
88\membersection{wxIndividualLayoutConstraint::Unconstrained}
89
90\func{void}{Unconstrained}{\void}
91
92Sets this edge or dimension to be unconstrained, that is, dependent on
93other edges and dimensions from which this value can be deduced.
94
95\membersection{wxIndividualLayoutConstraint::LeftOf}
96
97\func{void}{LeftOf}{\param{wxWindow *}{otherWin}, \param{int}{ margin = 0}}
98
99Constrains this edge to be to the left of the given window, with an
100optional margin. Implicitly, this is relative to the left edge of the other window.
101
102\membersection{wxIndividualLayoutConstraint::PercentOf}
103
104\func{void}{PercentOf}{\param{wxWindow *}{otherWin}, \param{wxEdge}{ edge}, \param{int}{ margin = 0}}
105
106Constrains this edge or dimension to be to a percentage of the given window, with an
107optional margin.
108
109\membersection{wxIndividualLayoutConstraint::RightOf}
110
111\func{void}{RightOf}{\param{wxWindow *}{otherWin}, \param{int}{ margin = 0}}
112
113Constrains this edge to be to the right of the given window, with an
114optional margin. Implicitly, this is relative to the right edge of the other window.
115
116\membersection{wxIndividualLayoutConstraint::SameAs}
117
118\func{void}{SameAs}{\param{wxWindow *}{otherWin}, \param{wxEdge}{ edge}, \param{int}{ margin = 0}}
119
120Constrains this edge or dimension to be to the same as the edge of the given window, with an
121optional margin.
122
123\membersection{wxIndividualLayoutConstraint::Set}
124
125\func{void}{Set}{\param{wxRelationship}{ rel}, \param{wxWindow *}{otherWin}, \param{wxEdge}{ otherEdge},
126 \param{int}{ value = 0}, \param{int}{ margin = 0}}
127
128Sets the properties of the constraint. Normally called by one of the convenience
129functions such as Above, RightOf, SameAs.
130
131