Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Package ogl :: Class CompositeShape |
|
object
--+ |ShapeEvtHandler
--+ |Shape
--+ |RectangleShape
--+ | CompositeShape
DivisionShape
This is an object with a list of child objects, and a list of size and positioning constraints between the children.
Method Summary | |
---|---|
__init__(self)
| |
Adds a child shape to the composite. | |
Adds a constraint to the composite. | |
Add a constraint of the given type to the composite. | |
Calculates the size and position of the composite based on child sizes and positions. | |
Constrain(self)
| |
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. | |
Finds the constraint with the given id. | |
Finds the image used to visualize a container. | |
Return the list of constraints. | |
Return the list of divisions. | |
Makes this composite into a container by creating one child DivisionShape. | |
OnBeginDragLeft(self,
x,
y,
keys,
attachment)
| |
OnCreateDivision(self)
| |
OnDragLeft(self,
draw,
x,
y,
keys,
attachment)
| |
OnDraw(self,
dc)
| |
OnDrawContents(self,
dc)
| |
OnEndDragLeft(self,
x,
y,
keys,
attachment)
| |
OnErase(self,
dc)
| |
OnMovePre(self,
dc,
x,
y,
old_x,
old_y,
display)
| |
OnRightClick(self,
x,
y,
keys,
attachment)
| |
Recomputes any constraints associated with the object. | |
Removes the child from the composite and any constraint relationships, but does not delete the child. | |
RemoveChildFromConstraints(self,
child)
| |
SetSize(self,
w,
h,
recursive)
|
Class Variable Summary |
---|
Method Details |
---|
AddChild(self, child, addAfter=None)Adds a child shape to the composite. If addAfter is not None, the shape will be added after this shape. |
AddConstraint(self, constraint)Adds a constraint to the composite. |
AddSimpleConstraint(self, type, constraining, constrained)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 |
CalculateSize(self)Calculates the size and position of the composite based on child sizes and positions. |
ContainsDivision(self, division)Returns TRUE if division is a descendant of this container. |
Delete(self)Fully disconnect this shape from parents, children, the canvas, etc.
|
DeleteConstraint(self, constraint)Deletes constraint from composite. |
DeleteConstraintsInvolvingChild(self, child)This function deletes constraints which mention the given child. Used when deleting a child from the composite. |
FindConstraint(self, cId)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. |
FindContainerImage(self)Finds the image used to visualize a container. This is any child of the composite that is not in the divisions list. |
GetConstraints(self)Return the list of constraints. |
GetDivisions(self)Return the list of divisions. |
MakeContainer(self)Makes this composite into a container by creating one child DivisionShape. |
Recompute(self)Recomputes any constraints associated with the object. If FALSE is returned, the constraints could not be satisfied (there was an inconsistency).
|
RemoveChild(self, child)Removes the child from the composite and any constraint relationships, but does not delete the child. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:11:20 2007 | http://epydoc.sf.net |