#include
<fbconstraint.h>

This class exposes the relation constraint and allows addition of new boxes and removal of existing ones.
Definition at line 441 of file fbconstraint.h.
Public Member Functions |
|
| FBConstraintRelation (char *pName, HIObject pObject=NULL) | |
| Constructor. |
|
| HFBBox | SetAsSource (HFBBox pSource) |
| Create a sender box. |
|
| HFBBox | ConstrainObject (HFBBox pConstrainedObject) |
| Create a receiver box. |
|
| HFBBox | CreateFunctionBox (char *pGroup, char *pName) |
| Create a function box. |
|
| bool | GetBoxPosition (HFBBox pBox, int &pX, int &pY) |
| Get a box position in the GUI. |
|
| bool | SetBoxPosition (HFBBox pBox, int pX, int pY) |
| Set a box position in the GUI. |
|
Public Attributes |
|
| FBPropertyListBox | Boxes |
| List: Boxes used in this constraint.
|
|
| FBConstraintRelation | ( | char * | pName, | |
| HIObject | pObject = NULL |
|||
| ) |
Constructor.
| pName | Name of constraint. | |
| pObject | For internal use only (default is NULL). |
| HFBBox SetAsSource | ( | HFBBox | pSource | ) |
Create a sender box.
Use an existing FBBox object to create a sender in the relation.
| pSource | Source box to insert in the constraint. |
| HFBBox ConstrainObject | ( | HFBBox | pConstrainedObject | ) |
Create a receiver box.
Use an existing FBBox object to create a receiver in the relation.
| pConstrainedObject | Destination box to insert in the constraint. |
| HFBBox CreateFunctionBox | ( | char * | pGroup, | |
| char * | pName | |||
| ) |
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!). |
| bool GetBoxPosition | ( | HFBBox | pBox, | |
| int & | pX, | |||
| int & | pY | |||
| ) |
Get a box position in the GUI.
Get the position of a box within the constraint layout view.
| pBox | Box from which the information will be queryed. | |
| pX | X position. | |
| pY | Y position. |
| bool SetBoxPosition | ( | HFBBox | pBox, | |
| int | pX, | |||
| int | pY | |||
| ) |
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. |
List: Boxes used in this constraint.
Definition at line 493 of file fbconstraint.h.