Top | ![]() |
![]() |
![]() |
![]() |
GObject * | gda_graph_new () |
GdaGraphType | gda_graph_get_graph_type () |
GSList * | gda_graph_get_items () |
GdaGraphItem * | gda_graph_get_item_from_obj () |
void | gda_graph_add_item () |
void | gda_graph_del_item () |
An instance of this object is required for each unique graph that is to be created. It is the "model" part of the graph. The "view" and "controler" parts are brought by the GnomeDbCanvas and associated widgets.
The graph can be "attached" to a specific GdaObject object using the "ref_object" property. If the referenced object is destroyed, then the graph object will also automaticallu be destroyed.
GObject * gda_graph_new (GdaDict *dict
,GdaGraphType type
);
Creates a new GdaGraph object. The graph type is used only to be able to sort out the different types of graphs. It brings no special functionnality.
GdaGraphType
gda_graph_get_graph_type (GdaGraph *graph
);
Get the graph type of graph
.
GSList *
gda_graph_get_items (GdaGraph *graph
);
Get a list of GdaGraphItem objects which are items of graph
GdaGraphItem * gda_graph_get_item_from_obj (GdaGraph *graph
,GdaObject *ref_obj
,gboolean create_if_needed
);
Get a pointer to a GdaGraphItem item from the object is represents.
If the searched GdaGraphItem is not found and create_if_needed
is TRUE, then a new
GdaGraphItem is created.
void gda_graph_add_item (GdaGraph *graph
,GdaGraphItem *item
);
Adds item
to graph
.
void gda_graph_del_item (GdaGraph *graph
,GdaGraphItem *item
);
Removes item
from graph
“graph-type”
property “graph-type” gint
Flags: Read / Write
Allowed values: >= 1
Default value: 1
“item-added”
signalvoid user_function (GdaGraph *gdagraph, GdaGraphItem *arg1, gpointer user_data)
gdagraph |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
“item-dropped”
signalvoid user_function (GdaGraph *gdagraph, GdaGraphItem *arg1, gpointer user_data)
gdagraph |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
“item-moved”
signalvoid user_function (GdaGraph *gdagraph, GdaGraphItem *arg1, gpointer user_data)
gdagraph |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First