Table Of Contents

Previous topic

CompositeShape

Next topic

ConstraintType

This Page

phoenix_title Constraint

A Constraint object helps specify how child shapes are laid out with respect to siblings and parents.

Derived from:
wxObject

class_hierarchy Inheritance Diagram

Inheritance diagram for class Constraint

Inheritance diagram of Constraint


sub_classes Known Subclasses

Constraint


method_summary Methods Summary

__init__  
Equals Return TRUE if x and y are approximately equal (for the purposes
Evaluate Evaluate this constraint and return TRUE if anything changed.
SetSpacing Sets the horizontal and vertical spacing for the constraint.

api Class API



class Constraint(object)

A Constraint object helps specify how child shapes are laid out with respect to siblings and parents.

Derived from:
wxObject

Methods



__init__(self, type, constraining, constrained)


Equals(self, a, b)

Return TRUE if x and y are approximately equal (for the purposes of evaluating the constraint).



Evaluate(self)

Evaluate this constraint and return TRUE if anything changed.



SetSpacing(self, x, y)

Sets the horizontal and vertical spacing for the constraint.