This is an object with a list of child objects, and a list of size and positioning constraints between the children.
__init__ | |
AddChild | Adds a child shape to the composite. |
AddConstraint | Adds a constraint to the composite. |
AddSimpleConstraint | Add a constraint of the given type to the composite. |
CalculateSize | Calculates the size and position of the composite based on |
Constrain | |
ContainsDivision | Returns TRUE if division is a descendant of this container. |
Delete | Fully disconnect this shape from parents, children, the |
DeleteConstraint | Deletes constraint from composite. |
DeleteConstraintsInvolvingChild | This function deletes constraints which mention the given child. |
FindConstraint | Finds the constraint with the given id. |
FindContainerImage | Finds the image used to visualize a container. This is any child of |
GetConstraints | Return the list of constraints. |
GetDivisions | Return the list of divisions. |
MakeContainer | Makes this composite into a container by creating one child |
OnBeginDragLeft | |
OnCreateDivision | |
OnDragLeft | |
OnDraw | |
OnDrawContents | |
OnEndDragLeft | |
OnErase | |
OnMovePre | |
OnRightClick | |
Recompute | Recomputes any constraints associated with the object. If FALSE is |
RemoveChild | Removes the child from the composite and any constraint |
RemoveChildFromConstraints | |
SetSize |
This is an object with a list of child objects, and a list of size and positioning constraints between the children.
Adds a child shape to the composite.
If addAfter is not None, the shape will be added after this shape.
Adds a constraint to the composite.
Add a constraint of the given type to the composite.
constraining is the shape doing the constraining constrained is a list of shapes being constrained
Calculates the size and position of the composite based on child sizes and positions.
Returns TRUE if division is a descendant of this container.
Fully disconnect this shape from parents, children, the canvas, etc.
Deletes constraint from composite.
This function deletes constraints which mention the given child.
Used when deleting a child from the composite.
Finds the constraint with the given id.
Returns a tuple of the constraint and the actual composite the constraint was in, in case that composite was a descendant of this composit.
Returns None if not found.
Finds the image used to visualize a container. This is any child of the composite that is not in the divisions list.
Return the list of constraints.
Return the list of divisions.
Makes this composite into a container by creating one child DivisionShape.
Recomputes any constraints associated with the object. If FALSE is returned, the constraints could not be satisfied (there was an inconsistency).
Removes the child from the composite and any constraint relationships, but does not delete the child.