GnomeDbGraphItem

GnomeDbGraphItem —

Synopsis




struct      GnomeDbGraphItem;
struct      GnomeDbGraphItemClass;
GnomeDbGraphItem* gnome_db_graph_item_new   (GnomeDbGraph *graph);
GnomeDbGraph* gnome_db_graph_item_get_graph (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);

Object Hierarchy


  GObject
   +----GnomeDbGraphItem

Properties


  "graph"                GnomeDbGraph         : Read / Write / Construct Only

Signal Prototypes


"moved"     void        user_function      (GnomeDbGraphItem *dbgraphitem,
                                            gpointer user_data);

Description

Details

struct GnomeDbGraphItem

struct GnomeDbGraphItem;


struct GnomeDbGraphItemClass

struct GnomeDbGraphItemClass {

	GObjectClass   parent_class;
	
	/* signals */
	void        (*moved) (GnomeDbGraphItem *item);
};


gnome_db_graph_item_new ()

GnomeDbGraphItem* gnome_db_graph_item_new   (GnomeDbGraph *graph);

Creates a new GnomeDbGraphItem object

graph : a GnomeDbGraph graph object
Returns : the newly created object

gnome_db_graph_item_get_graph ()

GnomeDbGraph* gnome_db_graph_item_get_graph (GnomeDbGraphItem *item);

item :
Returns :

gnome_db_graph_item_set_position ()

void        gnome_db_graph_item_set_position
                                            (GnomeDbGraphItem *item,
                                             gdouble x,
                                             gdouble y);

Sets the position to be remembered for item.

item : a GnomeDbGraphItemItem object
x :
y :

gnome_db_graph_item_get_position ()

void        gnome_db_graph_item_get_position
                                            (GnomeDbGraphItem *item,
                                             gdouble *x,
                                             gdouble *y);

Get item's position.

item : a GnomeDbGraphItemItem object
x : a place where to store the X part of the position, or NULL
y : a place where to store the Y part of the position, or NULL

Properties

"graph" (GnomeDbGraph : Read / Write / Construct Only)

Signals

The "moved" signal

void        user_function                  (GnomeDbGraphItem *dbgraphitem,
                                            gpointer user_data);

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