![]() |
![]() |
![]() |
cpg-network Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
#define CPG_SELECTION_CONST (obj) struct CpgSelection; struct CpgSelectionClass; CpgSelection * cpg_selection_new (gpointer object
,GSList *expansions
,GHashTable *defines
); CpgSelection * cpg_selection_new_defines (gpointer object
,GSList *expansions
,GHashTable *defines
,gboolean copy_defines
); CpgSelection * cpg_selection_copy (CpgSelection *selection
); CpgSelection * cpg_selection_copy_defines (CpgSelection *selection
,gboolean copy_defines
); gpointer cpg_selection_get_object (CpgSelection *selection
); GSList * cpg_selection_get_expansions (CpgSelection *selection
); gchar const * cpg_selection_get_define (CpgSelection *selection
,gchar const *key
); GHashTable * cpg_selection_get_defines (CpgSelection *selection
); void cpg_selection_add_define (CpgSelection *selection
,gchar const *key
,gchar const *value
); CpgSelectionPrivate;
#define CPG_SELECTION_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_SELECTION, CpgSelection const))
CpgSelection * cpg_selection_new (gpointer object
,GSList *expansions
,GHashTable *defines
);
CpgSelection * cpg_selection_new_defines (gpointer object
,GSList *expansions
,GHashTable *defines
,gboolean copy_defines
);
CpgSelection * cpg_selection_copy (CpgSelection *selection
);
Copy a selection.
|
A CpgSelection |
Returns : |
A CpgSelection. [transfer full] |
CpgSelection * cpg_selection_copy_defines (CpgSelection *selection
,gboolean copy_defines
);
Copy selection with defines.
|
A CpgSelection |
|
Whether to copy the defines |
Returns : |
A CpgSelection. [transfer full] |
gpointer cpg_selection_get_object (CpgSelection *selection
);
Get the object being selected.
|
A CpgSelection |
Returns : |
The object being selected. [transfer none] |
GSList * cpg_selection_get_expansions (CpgSelection *selection
);
Get the list of expansions.
|
A CpgSelection |
Returns : |
A GSList of CpgExpansion. [element-type CpgExpansion][transfer none] |
gchar const * cpg_selection_get_define (CpgSelection *selection
,gchar const *key
);
GHashTable * cpg_selection_get_defines (CpgSelection *selection
);
Get the hash table of defines for the selection.
|
A CpgSelection |
Returns : |
A GHashTable. [transfer none] |
void cpg_selection_add_define (CpgSelection *selection
,gchar const *key
,gchar const *value
);