## GnomeDbGraph

GnomeDbGraph —

##

# Synopsis

    struct      GnomeDbGraph;
    struct      GnomeDbGraphClass;
    GnomeDbGraph* gnome_db_graph_new            (GdaMetaStore *store,
                                                 guint id);
    void        gnome_db_graph_add_item         (GnomeDbGraph *graph,
                                                 GnomeDbGraphItem *item);
    void        gnome_db_graph_del_item         (GnomeDbGraph *graph,
                                                 GnomeDbGraphItem *item);
    GSList*     gnome_db_graph_get_items        (GnomeDbGraph *graph);
    void        gnome_db_graph_delete           (GdaMetaStore *store,
                                                 guint id);

## Object Hierarchy

      GObject
       +----GnomeDbGraph

## Properties

      "id"                   guint                : Read / Write / Construct Only
      "meta-store"           GdaMetaStore         : Read / Write / Construct Only

## Signal Prototypes

    "item-added"
                void        user_function      (GnomeDbGraph *dbgraph,
                                                GnomeDbGraphItem *arg1,
                                                gpointer user_data);
    "item-dropped"
                void        user_function      (GnomeDbGraph *dbgraph,
                                                GnomeDbGraphItem *arg1,
                                                gpointer user_data);
    "item-moved"
                void        user_function      (GnomeDbGraph *dbgraph,
                                                GnomeDbGraphItem *arg1,
                                                gpointer user_data);

## Description

## Details

### struct GnomeDbGraph

    struct GnomeDbGraph;

### struct GnomeDbGraphClass

    struct GnomeDbGraphClass {

    	GObjectClass   parent_class;

    	/* signals */
    	void        (*item_added)   (GnomeDbGraph *graph, GnomeDbGraphItem *item);
    	void        (*item_dropped) (GnomeDbGraph *graph, GnomeDbGraphItem *item);
    	void        (*item_moved)   (GnomeDbGraph *graph, GnomeDbGraphItem *item);
    };

### gnome_db_graph_new ()

    GnomeDbGraph* gnome_db_graph_new            (GdaMetaStore *store,
                                                 guint id);

Creates a new GnomeDbGraph object, which will be stored in `store`.

`store` : | a GdaMetastore object, or `NULL`
`id` : | an existing ID, or G_MAXUINT if ID is to be determined by the library
Returns : | the newly created object

### gnome_db_graph_add_item ()

    void        gnome_db_graph_add_item         (GnomeDbGraph *graph,
                                                 GnomeDbGraphItem *item);

Adds `item` to `graph`.

`graph` : | a GnomeDbGraph object
`item` : | a GnomeDbGraphItem object

### gnome_db_graph_del_item ()

    void        gnome_db_graph_del_item         (GnomeDbGraph *graph,
                                                 GnomeDbGraphItem *item);

Removes `item` from `graph`

`graph` : | a GnomeDbGraph object
`item` : | a GnomeDbGraphItem object

### gnome_db_graph_get_items ()

    GSList*     gnome_db_graph_get_items        (GnomeDbGraph *graph);

Get a list of GnomeDbGraphItem objects which are items of `graph`

`graph` : | a GnomeDbGraph object
Returns : | a new list of GnomeDbGraphItem objects

### gnome_db_graph_delete ()

    void        gnome_db_graph_delete           (GdaMetaStore *store,
                                                 guint id);

Remove a graph from the meta store.

`store` : |
`id` : |

## Properties

"`id`" (guint : Read / Write / Construct Only) |
"`meta-store`" (GdaMetaStore : Read / Write / Construct Only) |

## Signals

### The "item-added" signal

    void        user_function                  (GnomeDbGraph *dbgraph,
                                                GnomeDbGraphItem *arg1,
                                                gpointer user_data);

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

### The "item-dropped" signal

    void        user_function                  (GnomeDbGraph *dbgraph,
                                                GnomeDbGraphItem *arg1,
                                                gpointer user_data);

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

### The "item-moved" signal

    void        user_function                  (GnomeDbGraph *dbgraph,
                                                GnomeDbGraphItem *arg1,
                                                gpointer user_data);

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