wxlayoutconstraintsnote: constraints are now deprecated and you should use sizers instead. objects of this class can be associated with a window to define its layout constraints, with respect to siblings or its parent. the class consists of the following eight constraints of class wxindividuallayoutconstraint, some or all of which should be accessed directly to set the appropriate constraints.
most constraints are initially set to have the relationship wxunconstrained, which means that their values should be calculated by looking at known constraints. the exceptions are width and height, which are set to wxasis to ensure that if the user does not specify a constraint, the existing width and height will be used, to be compatible with panel items which often have take a default size. if the constraint is wxasis, the dimension will not be changed. wxperl note: in wxperl the constraints are accessed as constraint = wx::layoutconstraints->new(); constraint->centrex->asis(); constraint->centrey->unconstrained(); derived from include files <wx/layout.h> see also overview and examples, wxindividuallayoutconstraint, wxwindow::setconstraints members
wxlayoutconstraints::wxlayoutconstraints
wxlayoutconstraints::wxlayoutconstraintswxlayoutconstraints() constructor.
wxlayoutconstraints::bottomwxindividuallayoutconstraint bottom constraint for the bottom edge.
wxlayoutconstraints::centrexwxindividuallayoutconstraint centrex constraint for the horizontal centre point.
wxlayoutconstraints::centreywxindividuallayoutconstraint centrey constraint for the vertical centre point.
wxlayoutconstraints::heightwxindividuallayoutconstraint height constraint for the height.
wxlayoutconstraints::leftwxindividuallayoutconstraint left constraint for the left-hand edge.
wxlayoutconstraints::rightwxindividuallayoutconstraint right constraint for the right-hand edge.
wxlayoutconstraints::topwxindividuallayoutconstraint top constraint for the top edge.
wxlayoutconstraints::widthwxindividuallayoutconstraint width constraint for the width.
|