1 \section{\class{wxLayoutConstraints
}}\label{wxlayoutconstraints
}
3 Objects of this class can be associated with a window to define its
4 layout constraints, with respect to siblings or its parent.
6 The class consists of the following eight constraints of class wxIndividualLayoutConstraint,
7 some or all of which should be accessed directly to set the appropriate
10 \begin{itemize
}\itemsep=
0pt
11 \item {\bf left:
} represents the left hand edge of the window
12 \item {\bf right:
} represents the right hand edge of the window
13 \item {\bf top:
} represents the top edge of the window
14 \item {\bf bottom:
} represents the bottom edge of the window
15 \item {\bf width:
} represents the width of the window
16 \item {\bf height:
} represents the height of the window
17 \item {\bf centreX:
} represents the horizontal centre point of the window
18 \item {\bf centreY:
} represents the vertical centre point of the window
21 Most constraints are initially set to have the relationship wxUnconstrained,
22 which means that their values should be calculated by looking at known constraints.
23 The exceptions are
{\it width
} and
{\it height
}, which are set to wxAsIs to
24 ensure that if the user does not specify a constraint, the existing
25 width and height will be used, to be compatible with panel items which often
26 have take a default size. If the constraint is wxAsIs, the dimension will
29 \wxheading{Derived from
}
31 \helpref{wxObject
}{wxobject
}
33 \wxheading{Include files
}
39 \helpref{Overview and examples
}{constraintsoverview
},
\rtfsp
40 \helpref{wxIndividualLayoutConstraint
}{wxindividuallayoutconstraint
},
\helpref{wxWindow::SetConstraints
}{wxwindowsetconstraints
}
42 \latexignore{\rtfignore{\wxheading{Members
}}}
44 \membersection{wxLayoutConstraints::wxLayoutConstraints
}
46 \func{}{wxLayoutConstraints
}{\void}
50 \membersection{wxLayoutConstraints::bottom
}
52 \member{wxIndividualLayoutConstraint
}{bottom
}
54 Constraint for the bottom edge.
56 \membersection{wxLayoutConstraints::centreX
}
58 \member{wxIndividualLayoutConstraint
}{centreX
}
60 Constraint for the horizontal centre point.
62 \membersection{wxLayoutConstraints::centreY
}
64 \member{wxIndividualLayoutConstraint
}{centreY
}
66 Constraint for the vertical centre point.
68 \membersection{wxLayoutConstraints::height
}
70 \member{wxIndividualLayoutConstraint
}{height
}
72 Constraint for the height.
74 \membersection{wxLayoutConstraints::left
}
76 \member{wxIndividualLayoutConstraint
}{left
}
78 Constraint for the left-hand edge.
80 \membersection{wxLayoutConstraints::right
}
82 \member{wxIndividualLayoutConstraint
}{right
}
84 Constraint for the right-hand edge.
86 \membersection{wxLayoutConstraints::top
}
88 \member{wxIndividualLayoutConstraint
}{top
}
90 Constraint for the top edge.
92 \membersection{wxLayoutConstraints::width
}
94 \member{wxIndividualLayoutConstraint
}{width
}
96 Constraint for the width.