| Libgnomedb Reference Manual | ||||
|---|---|---|---|---|
GnomeDbGraphItemGnomeDbGraphItem — Parts of data model used with the GnomeDbGraph object. |
GnomeDbGraphItem;
GType gnome_db_graph_item_get_type (void);
GObject* gnome_db_graph_item_new (GnomeDbDict *dict,
GnomeDbBase *ref_obj);
GnomeDbBase* gnome_db_graph_item_get_ref_object (GnomeDbGraphItem *item);
void gnome_db_graph_item_set_position (GnomeDbGraphItem *item,
gdouble x,
gdouble y);
void gnome_db_graph_item_get_position (GnomeDbGraphItem *item,
gdouble *x,
gdouble *y);
Each graph item which needs to have its position kept in the GnomeDbDict object (and written in the dictionary file) has a corresponding GnomeDbGraphItem object. A graph item can hold a reference to any GnomeDbBase object, meaning that the position it stores is the position where the references object's graphical representation will be on the canvas.
GObject* gnome_db_graph_item_new (GnomeDbDict *dict, GnomeDbBase *ref_obj);
Creates a new GnomeDbGraphItem object
|
a GnomeDbDict object |
|
a GnomeDbBase object which the new item will reference, or NULL.
|
Returns : |
the newly created object |
GnomeDbBase* gnome_db_graph_item_get_ref_object (GnomeDbGraphItem *item);
Get the referenced GnomeDbBase object, if it exists.
|
a GnomeDbGraphItem object |
Returns : |
the referenced object, or NULL
|
void gnome_db_graph_item_set_position (GnomeDbGraphItem *item, gdouble x, gdouble y);
Sets the position to be remembered for item.
|
a GnomeDbGraphItemItem object |
|
|
|
void gnome_db_graph_item_get_position (GnomeDbGraphItem *item, gdouble *x, gdouble *y);
Get item's position.
|
a GnomeDbGraphItemItem object |
|
a place where to store the X part of the position, or NULL
|
|
a place where to store the Y part of the position, or NULL
|
void user_function (GnomeDbGraphItem *dbgraphitem, gpointer user_data) : Run First
|
the object which received the signal. |
|
user data set when the signal handler was connected. |