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