![]() |
![]() |
![]() |
cpg-network Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
#define CPG_LINK_ACTION_CONST (obj) struct CpgLinkAction; struct CpgLinkActionClass; CpgLinkAction * cpg_link_action_new (const gchar *target
,CpgExpression *equation
); CpgLinkAction * cpg_link_action_copy (CpgLinkAction *action
); const gchar * cpg_link_action_get_target (CpgLinkAction *action
); void cpg_link_action_set_target (CpgLinkAction *action
,const gchar *target
); CpgExpression * cpg_link_action_get_equation (CpgLinkAction *action
); void cpg_link_action_set_equation (CpgLinkAction *action
,CpgExpression *equation
); gboolean cpg_link_action_depends (CpgLinkAction *action
,CpgProperty *property
); gboolean cpg_link_action_equal (CpgLinkAction *action
,CpgLinkAction *other
); void cpg_link_action_set_enabled (CpgLinkAction *action
,gboolean enabled
); gboolean cpg_link_action_get_enabled (CpgLinkAction *action
); CpgProperty * cpg_link_action_get_target_property (CpgLinkAction *action
); CpgLinkActionPrivate;
"enabled" gboolean : Read / Write / Construct "equation" CpgExpression* : Read / Write / Construct "link" CpgLink* : Read "target" gchar* : Read / Write / Construct "target-property" CpgProperty* : Read
A CpgLinkAction is an action inside a link which sets a target CpgProperty to the value of a particular CpgExpression equation.
#define CPG_LINK_ACTION_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_LINK_ACTION, CpgLinkAction const))
CpgLinkAction * cpg_link_action_new (const gchar *target
,CpgExpression *equation
);
Create a new CpgLinkAction.
|
A CpgProperty |
|
A CpgExpression |
Returns : |
A new CpgLinkAction |
CpgLinkAction * cpg_link_action_copy (CpgLinkAction *action
);
Create a copy of a CpgLinkAction.
|
A CpgLinkAction |
Returns : |
A CpgLinkAction. [transfer full] |
const gchar * cpg_link_action_get_target (CpgLinkAction *action
);
Get the target of the action.
|
A CpgLinkAction |
Returns : |
the action target. [transfer none] |
void cpg_link_action_set_target (CpgLinkAction *action
,const gchar *target
);
Set the target of the action.
|
A CpgLinkAction |
|
A CpgProperty |
CpgExpression * cpg_link_action_get_equation (CpgLinkAction *action
);
Get the equation of the action.
|
A CpgLinkAction |
Returns : |
A CpgExpression. [transfer none] |
void cpg_link_action_set_equation (CpgLinkAction *action
,CpgExpression *equation
);
Set the equation of the action.
|
A CpgLinkAction |
|
A CpgExpression |
gboolean cpg_link_action_depends (CpgLinkAction *action
,CpgProperty *property
);
Check whether the action depends on a certain property.
|
A CpgLinkAction |
|
A CpgProperty |
Returns : |
TRUE if the action depends on property , FALSE otherwise |
gboolean cpg_link_action_equal (CpgLinkAction *action
,CpgLinkAction *other
);
void cpg_link_action_set_enabled (CpgLinkAction *action
,gboolean enabled
);
CpgProperty * cpg_link_action_get_target_property (CpgLinkAction *action
);
Get the target property of the link action.
|
A CpgLinkAction |
Returns : |
A CpgProperty. [transfer none] |
"target"
property"target" gchar* : Read / Write / Construct
The target CpgProperty
Default value: NULL