GuppiData

Name

GuppiData -- 

Synopsis



struct      GuppiDataOp;
#define     GUPPI_DATA0                     (obj)
#define     GUPPI_IS_DATA0                  (obj)
GuppiData*  guppi_data_new_by_type          (GtkType type,
                                             GtkType impl_type,
                                             const gchar *first_arg_name,
                                             ...);
GuppiData*  guppi_data_newv_by_type         (GtkType type,
                                             GtkType impl_type,
                                             guint nargs,
                                             GtkArg *args);
GuppiData*  guppi_data_new                  (GtkType type,
                                             const gchar *impl_name,
                                             const gchar *first_arg_name,
                                             ...);
GuppiData*  guppi_data_newv                 (GtkType type,
                                             const gchar *impl_name,
                                             guint nargs,
                                             GtkArg *args);
void        guppi_data_set                  (GuppiData *data,
                                             const gchar *first_arg_name,
                                             ...);
void        guppi_data_setv                 (GuppiData *data,
                                             guint nargs,
                                             GtkArg *args);
GuppiDataImpl* guppi_data_impl              (GuppiData*);
const gchar* guppi_data_get_type_name       (const GuppiData*);
const gchar* guppi_data_get_impl_name       (const GuppiData*);
const gchar* guppi_data_get_impl_code       (const GuppiData*);
guppi_uniq_t guppi_data_unique_id           (GuppiData*);
#define     guppi_data_label                (x)
const gchar* guppi_data_get_label           (const GuppiData*);
void        guppi_data_set_label            (GuppiData*,
                                             const gchar*);
gboolean    guppi_data_is_read_only         (GuppiData*);
gboolean    guppi_data_can_change           (GuppiData*);
void        guppi_data_add_pending_op       (GuppiData*,
                                             GuppiDataOp*);
void        guppi_data_changed              (GuppiData*);
void        guppi_data_touch                (GuppiData*);
void        guppi_data_touch_subdata        (GuppiData*);
GuppiData*  guppi_data_copy                 (const GuppiData*);
gint        guppi_data_get_size_in_bytes    (GuppiData*);
void        guppi_data_get_size_info        (GuppiData*,
                                             gchar*,
                                             gsize);
xmlNodePtr  guppi_data_export_xml           (GuppiData*,
                                             GuppiXMLDocument*);
void        guppi_data_spew_xml             (GuppiData*);
GuppiData*  guppi_data_import_xml           (GuppiXMLDocument*,
                                             xmlNodePtr);
GuppiData*  guppi_data_read_xml_file        (const gchar *filename);
gboolean    guppi_data_identify_xml_file    (const gchar *filename);
void        guppi_data_write_xml_file       (GuppiData*,
                                             const gchar *filename);
gboolean    guppi_data_has_subdata          (GuppiData*);
gint        guppi_data_subdata_count        (GuppiData*);
void        guppi_data_foreach_subdata      (GuppiData*,
                                             void (*fn) (GuppiData *, gpointer),
                                             gpointer user_data);
void        guppi_data_build_menu           (GuppiData*,
                                             GtkMenu*,
                                             gpointer data_tree);
GtkWidget*  guppi_data_info_display         (GuppiData*);

Object Hierarchy


  GtkObject
   +----GuppiData

Signal Prototypes


"changed"   void        user_function      (GuppiData *guppidata,
                                            gpointer user_data);
"changed-label"
            void        user_function      (GuppiData *guppidata,
                                            gpointer arg1,
                                            gpointer user_data);
"changed-subdata"
            void        user_function      (GuppiData *guppidata,
                                            gpointer user_data);

Description

Details

struct GuppiDataOp

struct GuppiDataOp {
  void (*op) (GuppiData *, GuppiDataOp *);
};


GUPPI_DATA0()

#define GUPPI_DATA0(obj) ((obj) ? (GUPPI_DATA(obj)) : NULL)

obj : 


GUPPI_IS_DATA0()

#define GUPPI_IS_DATA0(obj) (((obj) == NULL) || (GUPPI_IS_DATA(obj)))

obj : 


guppi_data_new_by_type ()

GuppiData*  guppi_data_new_by_type          (GtkType type,
                                             GtkType impl_type,
                                             const gchar *first_arg_name,
                                             ...);

type : 
impl_type : 
first_arg_name : 
... : 
Returns : 


guppi_data_newv_by_type ()

GuppiData*  guppi_data_newv_by_type         (GtkType type,
                                             GtkType impl_type,
                                             guint nargs,
                                             GtkArg *args);

type : 
impl_type : 
nargs : 
args : 
Returns : 


guppi_data_new ()

GuppiData*  guppi_data_new                  (GtkType type,
                                             const gchar *impl_name,
                                             const gchar *first_arg_name,
                                             ...);

type : 
impl_name : 
first_arg_name : 
... : 
Returns : 


guppi_data_newv ()

GuppiData*  guppi_data_newv                 (GtkType type,
                                             const gchar *impl_name,
                                             guint nargs,
                                             GtkArg *args);

type : 
impl_name : 
nargs : 
args : 
Returns : 


guppi_data_set ()

void        guppi_data_set                  (GuppiData *data,
                                             const gchar *first_arg_name,
                                             ...);

data : 
first_arg_name : 
... : 


guppi_data_setv ()

void        guppi_data_setv                 (GuppiData *data,
                                             guint nargs,
                                             GtkArg *args);

data : 
nargs : 
args : 


guppi_data_impl ()

GuppiDataImpl* guppi_data_impl              (GuppiData*);

Param1 : 
Returns : 


guppi_data_get_type_name ()

const gchar* guppi_data_get_type_name       (const GuppiData*);

Param1 : 
Returns : 


guppi_data_get_impl_name ()

const gchar* guppi_data_get_impl_name       (const GuppiData*);

Param1 : 
Returns : 


guppi_data_get_impl_code ()

const gchar* guppi_data_get_impl_code       (const GuppiData*);

Param1 : 
Returns : 


guppi_data_unique_id ()

guppi_uniq_t guppi_data_unique_id           (GuppiData*);

Param1 : 
Returns : 


guppi_data_label()

#define guppi_data_label(x) guppi_data_get_label(x)

x : 


guppi_data_get_label ()

const gchar* guppi_data_get_label           (const GuppiData*);

Param1 : 
Returns : 


guppi_data_set_label ()

void        guppi_data_set_label            (GuppiData*,
                                             const gchar*);

Param1 : 
Param2 : 


guppi_data_is_read_only ()

gboolean    guppi_data_is_read_only         (GuppiData*);

Param1 : 
Returns : 


guppi_data_can_change ()

gboolean    guppi_data_can_change           (GuppiData*);

Param1 : 
Returns : 


guppi_data_add_pending_op ()

void        guppi_data_add_pending_op       (GuppiData*,
                                             GuppiDataOp*);

Param1 : 
Param2 : 


guppi_data_changed ()

void        guppi_data_changed              (GuppiData*);

Param1 : 


guppi_data_touch ()

void        guppi_data_touch                (GuppiData*);

Param1 : 


guppi_data_touch_subdata ()

void        guppi_data_touch_subdata        (GuppiData*);

Param1 : 


guppi_data_copy ()

GuppiData*  guppi_data_copy                 (const GuppiData*);

Param1 : 
Returns : 


guppi_data_get_size_in_bytes ()

gint        guppi_data_get_size_in_bytes    (GuppiData*);

Param1 : 
Returns : 


guppi_data_get_size_info ()

void        guppi_data_get_size_info        (GuppiData*,
                                             gchar*,
                                             gsize);

Param1 : 
Param2 : 
Param3 : 


guppi_data_export_xml ()

xmlNodePtr  guppi_data_export_xml           (GuppiData*,
                                             GuppiXMLDocument*);

Param1 : 
Param2 : 
Returns : 


guppi_data_spew_xml ()

void        guppi_data_spew_xml             (GuppiData*);

Param1 : 


guppi_data_import_xml ()

GuppiData*  guppi_data_import_xml           (GuppiXMLDocument*,
                                             xmlNodePtr);

Param1 : 
Param2 : 
Returns : 


guppi_data_read_xml_file ()

GuppiData*  guppi_data_read_xml_file        (const gchar *filename);

filename : 
Returns : 


guppi_data_identify_xml_file ()

gboolean    guppi_data_identify_xml_file    (const gchar *filename);

filename : 
Returns : 


guppi_data_write_xml_file ()

void        guppi_data_write_xml_file       (GuppiData*,
                                             const gchar *filename);

Param1 : 
filename : 


guppi_data_has_subdata ()

gboolean    guppi_data_has_subdata          (GuppiData*);

Param1 : 
Returns : 


guppi_data_subdata_count ()

gint        guppi_data_subdata_count        (GuppiData*);

Param1 : 
Returns : 


guppi_data_foreach_subdata ()

void        guppi_data_foreach_subdata      (GuppiData*,
                                             void (*fn) (GuppiData *, gpointer),
                                             gpointer user_data);

Param1 : 
fn : 
user_data : 


guppi_data_build_menu ()

void        guppi_data_build_menu           (GuppiData*,
                                             GtkMenu*,
                                             gpointer data_tree);

Param1 : 
Param2 : 
data_tree : 


guppi_data_info_display ()

GtkWidget*  guppi_data_info_display         (GuppiData*);

Param1 : 
Returns : 

Signals

The "changed" signal

void        user_function                  (GuppiData *guppidata,
                                            gpointer user_data);

guppidata :the object which received the signal.
user_data :user data set when the signal handler was connected.


The "changed-label" signal

void        user_function                  (GuppiData *guppidata,
                                            gpointer arg1,
                                            gpointer user_data);

guppidata :the object which received the signal.
arg1 : 
user_data :user data set when the signal handler was connected.


The "changed-subdata" signal

void        user_function                  (GuppiData *guppidata,
                                            gpointer user_data);

guppidata :the object which received the signal.
user_data :user data set when the signal handler was connected.