<refentry id="GnomeDbGraph">
<refmeta>
<refentrytitle>GnomeDbGraph</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBGNOMEDB-4.0 Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>GnomeDbGraph</refname><refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>

<synopsis>



struct      <link linkend="GnomeDbGraph-struct">GnomeDbGraph</link>;
struct      <link linkend="GnomeDbGraphClass">GnomeDbGraphClass</link>;
<link linkend="GnomeDbGraph">GnomeDbGraph</link>* <link linkend="gnome-db-graph-new">gnome_db_graph_new</link>            (<link linkend="GdaMetaStore">GdaMetaStore</link> *store,
                                             <link linkend="guint">guint</link> id);
<link linkend="void">void</link>        <link linkend="gnome-db-graph-add-item">gnome_db_graph_add_item</link>         (<link linkend="GnomeDbGraph">GnomeDbGraph</link> *graph,
                                             <link linkend="GnomeDbGraphItem">GnomeDbGraphItem</link> *item);
<link linkend="void">void</link>        <link linkend="gnome-db-graph-del-item">gnome_db_graph_del_item</link>         (<link linkend="GnomeDbGraph">GnomeDbGraph</link> *graph,
                                             <link linkend="GnomeDbGraphItem">GnomeDbGraphItem</link> *item);
<link linkend="GSList">GSList</link>*     <link linkend="gnome-db-graph-get-items">gnome_db_graph_get_items</link>        (<link linkend="GnomeDbGraph">GnomeDbGraph</link> *graph);
<link linkend="void">void</link>        <link linkend="gnome-db-graph-delete">gnome_db_graph_delete</link>           (<link linkend="GdaMetaStore">GdaMetaStore</link> *store,
                                             <link linkend="guint">guint</link> id);

</synopsis>
</refsynopsisdiv>

<refsect1>
<title>Object Hierarchy</title>
<synopsis>

  <link linkend="GObject">GObject</link>
   +----GnomeDbGraph
</synopsis>

</refsect1>





<refsect1>
<title>Properties</title>
<synopsis>

  &quot;<link linkend="GnomeDbGraph--id">id</link>&quot;                   <link linkend="guint">guint</link>                : Read / Write / Construct Only
  &quot;<link linkend="GnomeDbGraph--meta-store">meta-store</link>&quot;           <link linkend="GdaMetaStore">GdaMetaStore</link>         : Read / Write / Construct Only
</synopsis>
</refsect1>

<refsect1>
<title>Signal Prototypes</title>
<synopsis>

&quot;<link linkend="GnomeDbGraph-item-added">item-added</link>&quot;
            <link linkend="void">void</link>        user_function      (<link linkend="GnomeDbGraph">GnomeDbGraph</link> *dbgraph,
                                            <link linkend="GnomeDbGraphItem">GnomeDbGraphItem</link> *arg1,
                                            <link linkend="gpointer">gpointer</link> user_data);
&quot;<link linkend="GnomeDbGraph-item-dropped">item-dropped</link>&quot;
            <link linkend="void">void</link>        user_function      (<link linkend="GnomeDbGraph">GnomeDbGraph</link> *dbgraph,
                                            <link linkend="GnomeDbGraphItem">GnomeDbGraphItem</link> *arg1,
                                            <link linkend="gpointer">gpointer</link> user_data);
&quot;<link linkend="GnomeDbGraph-item-moved">item-moved</link>&quot;
            <link linkend="void">void</link>        user_function      (<link linkend="GnomeDbGraph">GnomeDbGraph</link> *dbgraph,
                                            <link linkend="GnomeDbGraphItem">GnomeDbGraphItem</link> *arg1,
                                            <link linkend="gpointer">gpointer</link> user_data);
</synopsis>
</refsect1>


<refsect1>
<title>Description</title>
<para>

</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="GnomeDbGraph-struct"/>struct GnomeDbGraph</title>
<indexterm><primary>GnomeDbGraph</primary></indexterm><programlisting>struct GnomeDbGraph;</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GnomeDbGraphClass"/>struct GnomeDbGraphClass</title>
<indexterm><primary>GnomeDbGraphClass</primary></indexterm><programlisting>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);
};
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="gnome-db-graph-new"/>gnome_db_graph_new ()</title>
<indexterm><primary>gnome_db_graph_new</primary></indexterm><programlisting><link linkend="GnomeDbGraph">GnomeDbGraph</link>* gnome_db_graph_new            (<link linkend="GdaMetaStore">GdaMetaStore</link> *store,
                                             <link linkend="guint">guint</link> id);</programlisting>
<para>
Creates a new <link linkend="GnomeDbGraph"><type>GnomeDbGraph</type></link> object, which will be stored in <parameter>store</parameter>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>store</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GdaMetastore"><type>GdaMetastore</type></link> object, or <literal>NULL</literal>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>id</parameter>&nbsp;:</term>
<listitem><simpara> an existing ID, or G_MAXUINT if ID is to be determined by the library
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the newly created object
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-db-graph-add-item"/>gnome_db_graph_add_item ()</title>
<indexterm><primary>gnome_db_graph_add_item</primary></indexterm><programlisting><link linkend="void">void</link>        gnome_db_graph_add_item         (<link linkend="GnomeDbGraph">GnomeDbGraph</link> *graph,
                                             <link linkend="GnomeDbGraphItem">GnomeDbGraphItem</link> *item);</programlisting>
<para>
Adds <parameter>item</parameter> to <parameter>graph</parameter>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>graph</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GnomeDbGraph"><type>GnomeDbGraph</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>item</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GnomeDbGraphItem"><type>GnomeDbGraphItem</type></link> object
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-db-graph-del-item"/>gnome_db_graph_del_item ()</title>
<indexterm><primary>gnome_db_graph_del_item</primary></indexterm><programlisting><link linkend="void">void</link>        gnome_db_graph_del_item         (<link linkend="GnomeDbGraph">GnomeDbGraph</link> *graph,
                                             <link linkend="GnomeDbGraphItem">GnomeDbGraphItem</link> *item);</programlisting>
<para>
Removes <parameter>item</parameter> from <parameter>graph</parameter></para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>graph</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GnomeDbGraph"><type>GnomeDbGraph</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>item</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GnomeDbGraphItem"><type>GnomeDbGraphItem</type></link> object
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-db-graph-get-items"/>gnome_db_graph_get_items ()</title>
<indexterm><primary>gnome_db_graph_get_items</primary></indexterm><programlisting><link linkend="GSList">GSList</link>*     gnome_db_graph_get_items        (<link linkend="GnomeDbGraph">GnomeDbGraph</link> *graph);</programlisting>
<para>
Get a list of <link linkend="GnomeDbGraphItem"><type>GnomeDbGraphItem</type></link> objects which are items of <parameter>graph</parameter></para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>graph</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GnomeDbGraph"><type>GnomeDbGraph</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new list of <link linkend="GnomeDbGraphItem"><type>GnomeDbGraphItem</type></link> objects
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-db-graph-delete"/>gnome_db_graph_delete ()</title>
<indexterm><primary>gnome_db_graph_delete</primary></indexterm><programlisting><link linkend="void">void</link>        gnome_db_graph_delete           (<link linkend="GdaMetaStore">GdaMetaStore</link> *store,
                                             <link linkend="guint">guint</link> id);</programlisting>
<para>
Remove a graph from the meta store.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>store</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>id</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>
<refsect1>
<title>Properties</title>
<variablelist>
<varlistentry><term><anchor id="GnomeDbGraph--id"/>&quot;<literal>id</literal>&quot; (<link linkend="guint">guint</link> : Read / Write / Construct Only)</term>
<listitem>
<para></para>
</listitem></varlistentry>
<varlistentry><term><anchor id="GnomeDbGraph--meta-store"/>&quot;<literal>meta-store</literal>&quot; (<link linkend="GdaMetaStore">GdaMetaStore</link> : Read / Write / Construct Only)</term>
<listitem>
<para></para>
</listitem></varlistentry>

</variablelist>
</refsect1>

<refsect1>
<title>Signals</title>
<refsect2><title><anchor id="GnomeDbGraph-item-added"/>The &quot;item-added&quot; signal</title>
<programlisting><link linkend="void">void</link>        user_function                  (<link linkend="GnomeDbGraph">GnomeDbGraph</link> *dbgraph,
                                            <link linkend="GnomeDbGraphItem">GnomeDbGraphItem</link> *arg1,
                                            <link linkend="gpointer">gpointer</link> user_data);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>dbgraph</parameter>&nbsp;:</term>
<listitem><simpara>the object which received the signal.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>arg1</parameter>&nbsp;:</term>
<listitem><simpara>

</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
</variablelist></refsect2><refsect2><title><anchor id="GnomeDbGraph-item-dropped"/>The &quot;item-dropped&quot; signal</title>
<programlisting><link linkend="void">void</link>        user_function                  (<link linkend="GnomeDbGraph">GnomeDbGraph</link> *dbgraph,
                                            <link linkend="GnomeDbGraphItem">GnomeDbGraphItem</link> *arg1,
                                            <link linkend="gpointer">gpointer</link> user_data);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>dbgraph</parameter>&nbsp;:</term>
<listitem><simpara>the object which received the signal.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>arg1</parameter>&nbsp;:</term>
<listitem><simpara>

</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
</variablelist></refsect2><refsect2><title><anchor id="GnomeDbGraph-item-moved"/>The &quot;item-moved&quot; signal</title>
<programlisting><link linkend="void">void</link>        user_function                  (<link linkend="GnomeDbGraph">GnomeDbGraph</link> *dbgraph,
                                            <link linkend="GnomeDbGraphItem">GnomeDbGraphItem</link> *arg1,
                                            <link linkend="gpointer">gpointer</link> user_data);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>dbgraph</parameter>&nbsp;:</term>
<listitem><simpara>the object which received the signal.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>arg1</parameter>&nbsp;:</term>
<listitem><simpara>

</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
</variablelist></refsect2>
</refsect1>



</refentry>
