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

<refnamediv>
<refname>GnomeDbCanvasText</refname><refpurpose>Base class for <link linkend="GnomeDbCanvasItem"><type>GnomeDbCanvasItem</type></link> objects rendering a <link linkend="GdaObject"><type>GdaObject</type></link>'s name as a text</refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>

<synopsis>



struct      <link linkend="GnomeDbCanvasText-struct">GnomeDbCanvasText</link>;
struct      <link linkend="GnomeDbCanvasTextClass">GnomeDbCanvasTextClass</link>;
<link linkend="GooCanvasItem">GooCanvasItem</link>* <link linkend="gnome-db-canvas-text-new">gnome_db_canvas_text_new</link>     (<link linkend="GooCanvasItem">GooCanvasItem</link> *parent,
                                             const <link linkend="gchar">gchar</link> *txt,
                                             <link linkend="gdouble">gdouble</link> x,
                                             <link linkend="gdouble">gdouble</link> y,
                                             ...);
<link linkend="void">void</link>        <link linkend="gnome-db-canvas-text-set-highlight">gnome_db_canvas_text_set_highlight</link>
                                            (<link linkend="GnomeDbCanvasText">GnomeDbCanvasText</link> *ct,
                                             <link linkend="gboolean">gboolean</link> highlight);

</synopsis>
</refsynopsisdiv>

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

  <link linkend="GObject">GObject</link>
   +----<link linkend="GooCanvasItemSimple">GooCanvasItemSimple</link>
         +----<link linkend="GooCanvasGroup">GooCanvasGroup</link>
               +----<link linkend="GnomeDbCanvasItem">GnomeDbCanvasItem</link>
                     +----GnomeDbCanvasText
                           +----<link linkend="GnomeDbCanvasColumn">GnomeDbCanvasColumn</link>
</synopsis>

</refsect1>



<refsect1>
<title>Implemented Interfaces</title>
<para>
GnomeDbCanvasText implements
 <link linkend="GooCanvasItem">GooCanvasItem</link>.</para>

</refsect1>


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

  &quot;<link linkend="GnomeDbCanvasText--height">height</link>&quot;               <link linkend="gdouble">gdouble</link>              : Write
  &quot;<link linkend="GnomeDbCanvasText--highlight-color">highlight-color</link>&quot;      <link linkend="gchararray">gchararray</link>           : Read / Write
  &quot;<link linkend="GnomeDbCanvasText--text">text</link>&quot;                 <link linkend="gchararray">gchararray</link>           : Read / Write
  &quot;<link linkend="GnomeDbCanvasText--text-bold">text-bold</link>&quot;            <link linkend="gboolean">gboolean</link>             : Read / Write
  &quot;<link linkend="GnomeDbCanvasText--text-underline">text-underline</link>&quot;       <link linkend="gboolean">gboolean</link>             : Read / Write
  &quot;<link linkend="GnomeDbCanvasText--width">width</link>&quot;                <link linkend="gdouble">gdouble</link>              : Write
</synopsis>
</refsect1>



<refsect1>
<title>Description</title>
<para>
This <link linkend="GnomeCanvasItem"><type>GnomeCanvasItem</type></link> is self-destroyed when the referenced <link linkend="GdaObject"><type>GdaObject</type></link> object is destroyed.
</para>
</refsect1>

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

</para></refsect2>
<refsect2>
<title><anchor id="GnomeDbCanvasTextClass"/>struct GnomeDbCanvasTextClass</title>
<indexterm><primary>GnomeDbCanvasTextClass</primary></indexterm><programlisting>struct GnomeDbCanvasTextClass {

	GnomeDbCanvasItemClass   parent_class;
};
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="gnome-db-canvas-text-new"/>gnome_db_canvas_text_new ()</title>
<indexterm><primary>gnome_db_canvas_text_new</primary></indexterm><programlisting><link linkend="GooCanvasItem">GooCanvasItem</link>* gnome_db_canvas_text_new     (<link linkend="GooCanvasItem">GooCanvasItem</link> *parent,
                                             const <link linkend="gchar">gchar</link> *txt,
                                             <link linkend="gdouble">gdouble</link> x,
                                             <link linkend="gdouble">gdouble</link> y,
                                             ...);</programlisting>
<para>
Creates a new canvas item to display the <parameter>txt</parameter> message</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>parent</parameter>&nbsp;:</term>
<listitem><simpara> the parent item, or NULL. 
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>txt</parameter>&nbsp;:</term>
<listitem><simpara> text to display
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>x</parameter>&nbsp;:</term>
<listitem><simpara> the x coordinate of the text.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>y</parameter>&nbsp;:</term>
<listitem><simpara> the y coordinate of the text.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>...</parameter>&nbsp;:</term>
<listitem><simpara> optional pairs of property names and values, and a terminating NULL.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new <link linkend="GooCanvasItem"><type>GooCanvasItem</type></link> object
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-db-canvas-text-set-highlight"/>gnome_db_canvas_text_set_highlight ()</title>
<indexterm><primary>gnome_db_canvas_text_set_highlight</primary></indexterm><programlisting><link linkend="void">void</link>        gnome_db_canvas_text_set_highlight
                                            (<link linkend="GnomeDbCanvasText">GnomeDbCanvasText</link> *ct,
                                             <link linkend="gboolean">gboolean</link> highlight);</programlisting>
<para>
Turns ON or OFF the highlighting of <parameter>ct</parameter></para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>ct</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GnomeDbCanvasText"><type>GnomeDbCanvasText</type></link> object
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>highlight</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>
<refsect1>
<title>Properties</title>
<variablelist>
<varlistentry><term><anchor id="GnomeDbCanvasText--height"/>&quot;<literal>height</literal>&quot; (<link linkend="gdouble">gdouble</link> : Write)</term>
<listitem>
<para></para>
</listitem></varlistentry>
<varlistentry><term><anchor id="GnomeDbCanvasText--highlight-color"/>&quot;<literal>highlight-color</literal>&quot; (<link linkend="gchararray">gchararray</link> : Read / Write)</term>
<listitem>
<para></para>
</listitem></varlistentry>
<varlistentry><term><anchor id="GnomeDbCanvasText--text"/>&quot;<literal>text</literal>&quot; (<link linkend="gchararray">gchararray</link> : Read / Write)</term>
<listitem>
<para></para>
</listitem></varlistentry>
<varlistentry><term><anchor id="GnomeDbCanvasText--text-bold"/>&quot;<literal>text-bold</literal>&quot; (<link linkend="gboolean">gboolean</link> : Read / Write)</term>
<listitem>
<para></para>
</listitem></varlistentry>
<varlistentry><term><anchor id="GnomeDbCanvasText--text-underline"/>&quot;<literal>text-underline</literal>&quot; (<link linkend="gboolean">gboolean</link> : Read / Write)</term>
<listitem>
<para></para>
</listitem></varlistentry>
<varlistentry><term><anchor id="GnomeDbCanvasText--width"/>&quot;<literal>width</literal>&quot; (<link linkend="gdouble">gdouble</link> : Write)</term>
<listitem>
<para></para>
</listitem></varlistentry>

</variablelist>
</refsect1>




</refentry>
