CpgSelection

CpgSelection

Synopsis

#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;

Object Hierarchy

  GObject
   +----CpgSelection

Implemented Interfaces

CpgSelection implements CpgTaggable.

Description

Details

CPG_SELECTION_CONST()

#define CPG_SELECTION_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_SELECTION, CpgSelection const))


struct CpgSelection

struct CpgSelection;


struct CpgSelectionClass

struct CpgSelectionClass {
	GObjectClass parent_class;
};


cpg_selection_new ()

CpgSelection *      cpg_selection_new                   (gpointer object,
                                                         GSList *expansions,
                                                         GHashTable *defines);


cpg_selection_new_defines ()

CpgSelection *      cpg_selection_new_defines           (gpointer object,
                                                         GSList *expansions,
                                                         GHashTable *defines,
                                                         gboolean copy_defines);


cpg_selection_copy ()

CpgSelection *      cpg_selection_copy                  (CpgSelection *selection);

Copy a selection.

selection :

A CpgSelection

Returns :

A CpgSelection. [transfer full]

cpg_selection_copy_defines ()

CpgSelection *      cpg_selection_copy_defines          (CpgSelection *selection,
                                                         gboolean copy_defines);

Copy selection with defines.

selection :

A CpgSelection

copy_defines :

Whether to copy the defines

Returns :

A CpgSelection. [transfer full]

cpg_selection_get_object ()

gpointer            cpg_selection_get_object            (CpgSelection *selection);

Get the object being selected.

selection :

A CpgSelection

Returns :

The object being selected. [transfer none]

cpg_selection_get_expansions ()

GSList *            cpg_selection_get_expansions        (CpgSelection *selection);

Get the list of expansions.

selection :

A CpgSelection

Returns :

A GSList of CpgExpansion. [element-type CpgExpansion][transfer none]

cpg_selection_get_define ()

gchar const  *      cpg_selection_get_define            (CpgSelection *selection,
                                                         gchar const *key);


cpg_selection_get_defines ()

GHashTable *        cpg_selection_get_defines           (CpgSelection *selection);

Get the hash table of defines for the selection.

selection :

A CpgSelection

Returns :

A GHashTable. [transfer none]

cpg_selection_add_define ()

void                cpg_selection_add_define            (CpgSelection *selection,
                                                         gchar const *key,
                                                         gchar const *value);


CpgSelectionPrivate

typedef struct _CpgSelectionPrivate CpgSelectionPrivate;