![]() |
![]() |
![]() |
cpg-network Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#define CPG_ATTRIBUTE_CONST (obj) struct CpgAttribute; struct CpgAttributeClass; CpgAttribute * cpg_attribute_new (gchar const *id
); CpgAttribute * cpg_attribute_newv (gchar const *id
,...
); void cpg_attribute_set_arguments (CpgAttribute *attribute
,GSList *arguments
); gchar const * cpg_attribute_get_id (CpgAttribute *attribute
); GSList * cpg_attribute_get_arguments (CpgAttribute *attribute
); GObject * cpg_attribute_get_argument (CpgAttribute *attribute
,gint i
); gint cpg_attribute_num_arguments (CpgAttribute *attribute
); CpgAttributePrivate;
#define CPG_ATTRIBUTE_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_ATTRIBUTE, CpgAttribute const))
CpgAttribute * cpg_attribute_new (gchar const *id
);
Create a new attribute.
|
attribute id |
Returns : |
A CpgAttribute |
CpgAttribute * cpg_attribute_newv (gchar const *id
,...
);
Create a new attribute.
|
the attribute id |
Returns : |
the new attribute. [transfer full] |
void cpg_attribute_set_arguments (CpgAttribute *attribute
,GSList *arguments
);
Set the arguments of the attribute.
|
A CpgAttribute |
|
A list of GObject. [element-type GObject][transfer none] |
gchar const * cpg_attribute_get_id (CpgAttribute *attribute
);
Get the attribute id.
|
A CpgAttribute |
Returns : |
the attribute id. |
GSList * cpg_attribute_get_arguments (CpgAttribute *attribute
);
Get the list of arguments of the attribute.
|
A CpgAttribute |
Returns : |
A GSList of GObject. [element-type GObject][transfer none] |
GObject * cpg_attribute_get_argument (CpgAttribute *attribute
,gint i
);
Get an argument.
|
A CpgAttribute |
|
The index of the argument |
Returns : |
The argument. [transfer none] |
gint cpg_attribute_num_arguments (CpgAttribute *attribute
);
Get the number of arguments.
|
A CpgAttribute |
Returns : |
the number of attribute arguments |