ConstraintRelation class. More...
Public Member Functions | |
| tuple< bool, int, int > | GetBoxPosition () |
| Get a box position in the GUI. More... | |
| FBConstraintRelation (str pName) | |
| Constructor. More... | |
| FBBox | ConstrainObject (FBBox pConstrainedObject) |
| Create a receiver box. More... | |
| FBBox | CreateFunctionBox (str pGroup, str pName) |
| Create a function box. More... | |
| FBBox | SetAsSource (FBBox pSource) |
| Create a sender box. More... | |
| bool | SetBoxPosition (FBBox pBox, int pX, int pY) |
| Set a box position in the GUI. More... | |
Public Attributes | |
| FBListBox | Boxes |
| List: Boxes used in this constraint. More... | |
ConstraintRelation class.
This class exposes the relation constraint and allows addition of new boxes and removal of existing ones.
| FBConstraintRelation | ( | str | pName | ) |
Constructor.
| pName | Name of constraint. |
Create a receiver box.
Use an existing FBBox object to create a receiver in the relation.
| pConstrainedObject | Destination box to insert in the constraint. |
Create a function box.
Ask the constraint to create new function box.
| pGroup | Name of the group under which the function is located in the Constraint Relation GUI (case-sensitive!). |
| pName | Name of the function, as seen in the GUI (case-sensitive!). |
Get a box position in the GUI.
Get the position of a box within the constraint layout view.
Create a sender box.
Use an existing FBBox object to create a sender in the relation.
| pSource | Source box to insert in the constraint. |
Set a box position in the GUI.
Set the position of a box within the constraint layout view.
| pBox | Box which needs to be moved. |
| pX | New X position. |
| pY | New Y position. |
| FBListBox Boxes |
List: Boxes used in this constraint.