wx.lib.ogl.composit.Constraint¶
The Constraint
class helps specify how child shapes are laid out
with respect to siblings and parents.
Class Hierarchy¶
Known Subclasses¶
wx.core.deprecated.<locals>.DeprecatedClassProxy
Methods Summary¶
Default class constructor. |
|
Return True if a and b are approximately equal (for the purposes |
|
Evaluate this constraint and return True if anything changed. |
|
Sets the horizontal and vertical spacing for the constraint. |
Class API¶
- class Constraint(object)¶
The
Constraint
class helps specify how child shapes are laid out with respect to siblings and parents.
Methods¶
- __init__(self, type, constraining, constrained)¶
Default class constructor.
- Parameters:
type – see
ConstraintType
for valid typesconstraining – the constraining
Shape
constrained – the constrained
Shape
- Equals(self, a, b)¶
Return True if a and b are approximately equal (for the purposes of evaluating the constraint).
- Parameters:
a – ???
b – ???
- Evaluate(self)¶
Evaluate this constraint and return True if anything changed.
- SetSpacing(self, x, y)¶
Sets the horizontal and vertical spacing for the constraint.
- Parameters:
x – the x position
y – the y position