GuppiAttributes

Name

GuppiAttributes -- 

Synopsis



gpointer    (*AttributeStringToPointerFn)   (const gchar*);
gchar*      (*AttributePointerToStringFn)   (gpointer);
void        (*AttributePointerDestroyFn)    (gpointer);
xmlNodePtr  (*AttributeCustomExportFn)      (GuppiXMLDocument*,
                                             gpointer);
gpointer    (*AttributeCustomImportFn)      (GuppiXMLDocument*,
                                             xmlNodePtr);
#define     GUPPI_ATTRIBUTES0               (obj)
#define     GUPPI_IS_ATTRIBUTES0            (obj)
GuppiAttributes* guppi_attributes_new       (void);
gboolean    guppi_attributes_check_type     (GuppiAttributes*,
                                             const gchar *name,
                                             const gchar *type);
void        guppi_attributes_declare_full   (GuppiAttributes*,
                                             const gchar *name,
                                             const gchar *type,
                                             AttributeStringToPointerFn s2p,
                                             AttributePointerToStringFn p2s,
                                             AttributePointerDestroyFn pdest);
void        guppi_attributes_declare_full_custom
                                            (GuppiAttributes*,
                                             const gchar *name,
                                             const gchar *type,
                                             AttributeCustomExportFn c_export,
                                             AttributeCustomImportFn c_import,
                                             AttributePointerDestroyFn pdest);
void        guppi_attributes_undeclare      (GuppiAttributes*,
                                             const gchar *name);
gboolean    guppi_attributes_declared       (GuppiAttributes*,
                                             const gchar *name);
gpointer    guppi_attributes_get_raw        (GuppiAttributes*,
                                             const gchar *name);
void        guppi_attributes_set_raw        (GuppiAttributes*,
                                             const gchar *name,
                                             gpointer);
gboolean    guppi_attributes_is_undef       (GuppiAttributes*,
                                             const gchar *name);
gboolean    guppi_attributes_is_defined     (GuppiAttributes*,
                                             const gchar *name);
void        guppi_attributes_set_undef      (GuppiAttributes*,
                                             const gchar *name);
void        guppi_attributes_declare_string (GuppiAttributes*,
                                             const gchar *name);
const gchar* guppi_attributes_get_string    (GuppiAttributes*,
                                             const gchar *name);
void        guppi_attributes_set_string     (GuppiAttributes*,
                                             const gchar *name,
                                             const gchar *str);
void        guppi_attributes_declare_int    (GuppiAttributes*,
                                             const gchar *name);
gint        guppi_attributes_get_int        (GuppiAttributes*,
                                             const gchar *name);
void        guppi_attributes_set_int        (GuppiAttributes*,
                                             const gchar *name,
                                             gint n);
void        guppi_attributes_declare_uint32 (GuppiAttributes*,
                                             const gchar *name);
guint32     guppi_attributes_get_uint32     (GuppiAttributes*,
                                             const gchar *name);
void        guppi_attributes_set_uint32     (GuppiAttributes*,
                                             const gchar *name,
                                             guint32 n);
void        guppi_attributes_declare_double (GuppiAttributes*,
                                             const gchar *name);
double      guppi_attributes_get_double     (GuppiAttributes*,
                                             const gchar *name);
void        guppi_attributes_set_double     (GuppiAttributes*,
                                             const gchar *name,
                                             double x);
void        guppi_attributes_declare_boolean
                                            (GuppiAttributes*,
                                             const gchar *name);
gboolean    guppi_attributes_get_boolean    (GuppiAttributes*,
                                             const gchar *name);
void        guppi_attributes_set_boolean    (GuppiAttributes*,
                                             const gchar *name,
                                             gboolean);
void        guppi_attributes_declare_date   (GuppiAttributes*,
                                             const gchar *name);
const GDate* guppi_attributes_get_date      (GuppiAttributes*,
                                             const gchar *name);
void        guppi_attributes_set_date       (GuppiAttributes*,
                                             const gchar *name,
                                             const GDate *dt);
void        guppi_attributes_declare_rgb    (GuppiAttributes*,
                                             const gchar *name);
guint32     guppi_attributes_get_rgb        (GuppiAttributes*,
                                             const gchar *name);
void        guppi_attributes_set_rgb        (GuppiAttributes*,
                                             const gchar *name,
                                             guint32);
void        guppi_attributes_declare_rgba   (GuppiAttributes*,
                                             const gchar *name);
guint32     guppi_attributes_get_rgba       (GuppiAttributes*,
                                             const gchar *name);
void        guppi_attributes_set_rgba       (GuppiAttributes*,
                                             const gchar *name,
                                             guint32);
void        guppi_attributes_declare_font   (GuppiAttributes*,
                                             const gchar *name);
GnomeFont*  guppi_attributes_get_font       (GuppiAttributes*,
                                             const gchar *name);
void        guppi_attributes_set_font       (GuppiAttributes*,
                                             const gchar *name,
                                             GnomeFont*);
void        guppi_attributes_declare_unique_id
                                            (GuppiAttributes*,
                                             const gchar *name);
guppi_uniq_t guppi_attributes_get_unique_id (GuppiAttributes*,
                                             const gchar *name);
void        guppi_attributes_set_unique_id  (GuppiAttributes*,
                                             const gchar *name,
                                             guppi_uniq_t);
xmlNodePtr  guppi_attributes_export_xml     (GuppiAttributes*,
                                             GuppiXMLDocument*);
void        guppi_attributes_import_xml     (GuppiAttributes*,
                                             GuppiXMLDocument*,
                                             xmlNodePtr);

Object Hierarchy


  GtkObject
   +----GuppiAttributes

Description

A longer description goes here.

Details

AttributeStringToPointerFn ()

gpointer    (*AttributeStringToPointerFn)   (const gchar*);

AttributePointerToStringFn ()

gchar*      (*AttributePointerToStringFn)   (gpointer);

AttributePointerDestroyFn ()

void        (*AttributePointerDestroyFn)    (gpointer);

AttributeCustomExportFn ()

xmlNodePtr  (*AttributeCustomExportFn)      (GuppiXMLDocument*,
                                             gpointer);

AttributeCustomImportFn ()

gpointer    (*AttributeCustomImportFn)      (GuppiXMLDocument*,
                                             xmlNodePtr);

GUPPI_ATTRIBUTES0()

#define GUPPI_ATTRIBUTES0(obj) ((obj) ? (GUPPI_ATTRIBUTES(obj)) : NULL)

GUPPI_IS_ATTRIBUTES0()

#define GUPPI_IS_ATTRIBUTES0(obj) (((obj) == NULL) || (GUPPI_IS_ATTRIBUTES(obj)))

guppi_attributes_new ()

GuppiAttributes* guppi_attributes_new       (void);

guppi_attributes_check_type ()

gboolean    guppi_attributes_check_type     (GuppiAttributes*,
                                             const gchar *name,
                                             const gchar *type);

guppi_attributes_declare_full ()

void        guppi_attributes_declare_full   (GuppiAttributes*,
                                             const gchar *name,
                                             const gchar *type,
                                             AttributeStringToPointerFn s2p,
                                             AttributePointerToStringFn p2s,
                                             AttributePointerDestroyFn pdest);

guppi_attributes_declare_full_custom ()

void        guppi_attributes_declare_full_custom
                                            (GuppiAttributes*,
                                             const gchar *name,
                                             const gchar *type,
                                             AttributeCustomExportFn c_export,
                                             AttributeCustomImportFn c_import,
                                             AttributePointerDestroyFn pdest);

guppi_attributes_undeclare ()

void        guppi_attributes_undeclare      (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_declared ()

gboolean    guppi_attributes_declared       (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_get_raw ()

gpointer    guppi_attributes_get_raw        (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_set_raw ()

void        guppi_attributes_set_raw        (GuppiAttributes*,
                                             const gchar *name,
                                             gpointer);

guppi_attributes_is_undef ()

gboolean    guppi_attributes_is_undef       (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_is_defined ()

gboolean    guppi_attributes_is_defined     (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_set_undef ()

void        guppi_attributes_set_undef      (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_declare_string ()

void        guppi_attributes_declare_string (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_get_string ()

const gchar* guppi_attributes_get_string    (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_set_string ()

void        guppi_attributes_set_string     (GuppiAttributes*,
                                             const gchar *name,
                                             const gchar *str);

guppi_attributes_declare_int ()

void        guppi_attributes_declare_int    (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_get_int ()

gint        guppi_attributes_get_int        (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_set_int ()

void        guppi_attributes_set_int        (GuppiAttributes*,
                                             const gchar *name,
                                             gint n);

guppi_attributes_declare_uint32 ()

void        guppi_attributes_declare_uint32 (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_get_uint32 ()

guint32     guppi_attributes_get_uint32     (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_set_uint32 ()

void        guppi_attributes_set_uint32     (GuppiAttributes*,
                                             const gchar *name,
                                             guint32 n);

guppi_attributes_declare_double ()

void        guppi_attributes_declare_double (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_get_double ()

double      guppi_attributes_get_double     (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_set_double ()

void        guppi_attributes_set_double     (GuppiAttributes*,
                                             const gchar *name,
                                             double x);

guppi_attributes_declare_boolean ()

void        guppi_attributes_declare_boolean
                                            (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_get_boolean ()

gboolean    guppi_attributes_get_boolean    (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_set_boolean ()

void        guppi_attributes_set_boolean    (GuppiAttributes*,
                                             const gchar *name,
                                             gboolean);

guppi_attributes_declare_date ()

void        guppi_attributes_declare_date   (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_get_date ()

const GDate* guppi_attributes_get_date      (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_set_date ()

void        guppi_attributes_set_date       (GuppiAttributes*,
                                             const gchar *name,
                                             const GDate *dt);

guppi_attributes_declare_rgb ()

void        guppi_attributes_declare_rgb    (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_get_rgb ()

guint32     guppi_attributes_get_rgb        (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_set_rgb ()

void        guppi_attributes_set_rgb        (GuppiAttributes*,
                                             const gchar *name,
                                             guint32);

guppi_attributes_declare_rgba ()

void        guppi_attributes_declare_rgba   (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_get_rgba ()

guint32     guppi_attributes_get_rgba       (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_set_rgba ()

void        guppi_attributes_set_rgba       (GuppiAttributes*,
                                             const gchar *name,
                                             guint32);

guppi_attributes_declare_font ()

void        guppi_attributes_declare_font   (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_get_font ()

GnomeFont*  guppi_attributes_get_font       (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_set_font ()

void        guppi_attributes_set_font       (GuppiAttributes*,
                                             const gchar *name,
                                             GnomeFont*);

guppi_attributes_declare_unique_id ()

void        guppi_attributes_declare_unique_id
                                            (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_get_unique_id ()

guppi_uniq_t guppi_attributes_get_unique_id (GuppiAttributes*,
                                             const gchar *name);

guppi_attributes_set_unique_id ()

void        guppi_attributes_set_unique_id  (GuppiAttributes*,
                                             const gchar *name,
                                             guppi_uniq_t);

guppi_attributes_export_xml ()

xmlNodePtr  guppi_attributes_export_xml     (GuppiAttributes*,
                                             GuppiXMLDocument*);

guppi_attributes_import_xml ()

void        guppi_attributes_import_xml     (GuppiAttributes*,
                                             GuppiXMLDocument*,
                                             xmlNodePtr);