Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 76909b5763edb96a2bc7bd7fb5b301b8 > files > 31

cuiterm-0.9.9-1mdv2008.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><TITLE>CuiRectangle</TITLE><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="Cuiterm Reference Manual" HREF="index.html"><LINK REL="UP" TITLE="Cuiterm Documentation 0.5" HREF="c4.html"><LINK REL="PREVIOUS" TITLE="CuiWidget" HREF="cuiwidget.html"><LINK REL="NEXT" TITLE="CuiRectangleEmboss" HREF="cuirectangleemboss.html"><META NAME="GENERATOR" CONTENT="GTK-Doc V1.3 (SGML mode)"><STYLE TYPE="text/css">.synopsis, .classsynopsis {
    background: #eeeeee;
    border: solid 1px #aaaaaa;
    padding: 0.5em;
}
.programlisting {
    background: #eeeeff;
    border: solid 1px #aaaaff;
    padding: 0.5em;
}
.variablelist {
    padding: 4px;
    margin-left: 3em;
}
.navigation {
    background: #ffeeee;
    border: solid 1px #ffaaaa;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
.navigation a {
    color: #770000;
}
.navigation a:visited {
    color: #550000;
}
.navigation .title {
    font-size: 200%;
}</STYLE></HEAD><BODY CLASS="REFENTRY" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF"><TABLE WIDTH="100%" CLASS="navigation" SUMMARY="Navigation header" CELLPADDING="2" CELLSPACING="2"><TR VALIGN="middle"><TD><A ACCESSKEY="p" HREF="cuiwidget.html"><IMG SRC="left.png" WIDTH="24" HEIGHT="24" BORDER="0" ALT="Prev"></A></TD><TD><A ACCESSKEY="u" HREF="c4.html"><IMG SRC="up.png" WIDTH="24" HEIGHT="24" BORDER="0" ALT="Up"></A></TD><TD><A ACCESSKEY="h" HREF="index.html"><IMG SRC="home.png" WIDTH="24" HEIGHT="24" BORDER="0" ALT="Home"></A></TD><TH WIDTH="100%" align="center">Cuiterm Reference Manual</TH><TD><A ACCESSKEY="n" HREF="cuirectangleemboss.html"><IMG SRC="right.png" WIDTH="24" HEIGHT="24" BORDER="0" ALT="Next"></A></TD></TR></TABLE><H1><A NAME="CUIRECTANGLE"></A>CuiRectangle</H1><DIV CLASS="REFNAMEDIV"><A NAME="AEN3053"></A><H2>Name</H2>CuiRectangle&nbsp;--&nbsp;</DIV><DIV CLASS="REFSYNOPSISDIV"><A NAME="AEN3056"></A><H2>Synopsis</H2><PRE CLASS="SYNOPSIS">&#13;#include &lt;history.h&gt;


            <A HREF="cuirectangle.html#CUIRECTANGLE-STRUCT">CuiRectangle</A>;
<A HREF="cuiwidget.html">CuiWidget</A>*  <A HREF="cuirectangle.html#CUI-RECTANGLE-NEW">cui_rectangle_new</A>               (void);
void        <A HREF="cuirectangle.html#CUI-RECTANGLE-SET-COLOR">cui_rectangle_set_color</A>         (<A HREF="cuirectangle.html">CuiRectangle</A> *rec,
                                             const char *color_name,
                                             const char *high_color_name,
                                             const char *low_color_name);
GdkColor*   <A HREF="cuirectangle.html#CUI-RECTANGLE-GET-COLOR">cui_rectangle_get_color</A>         (<A HREF="cuirectangle.html">CuiRectangle</A> *rec);
GdkColor*   <A HREF="cuirectangle.html#CUI-RECTANGLE-GET-HIGH-COLOR">cui_rectangle_get_high_color</A>    (<A HREF="cuirectangle.html">CuiRectangle</A> *rec);
GdkColor*   <A HREF="cuirectangle.html#CUI-RECTANGLE-GET-LOW-COLOR">cui_rectangle_get_low_color</A>     (<A HREF="cuirectangle.html">CuiRectangle</A> *rec);
void        <A HREF="cuirectangle.html#CUI-RECTANGLE-SET-IS-DND-SOURCE">cui_rectangle_set_is_dnd_source</A> (<A HREF="cuirectangle.html">CuiRectangle</A> *rectangle,
                                             gboolean is_dnd_source);
gboolean    <A HREF="cuirectangle.html#CUI-RECTANGLE-IS-DND-SOURCE">cui_rectangle_is_dnd_source</A>     (<A HREF="cuirectangle.html">CuiRectangle</A> *rectangle);
void        <A HREF="cuirectangle.html#CUI-RECTANGLE-SET-DND-SOURCE-DATA">cui_rectangle_set_dnd_source_data</A>
                                            (<A HREF="cuirectangle.html">CuiRectangle</A> *rectangle,
                                             <A HREF="cuiterm-drag-and-drop.html#TARGETTYPE">TargetType</A> source_type,
                                             gpointer source_data,
                                             gsize source_size);
void        <A HREF="cuirectangle.html#CUI-RECTANGLE-SET-IS-DND-TARGET">cui_rectangle_set_is_dnd_target</A> (<A HREF="cuirectangle.html">CuiRectangle</A> *rectangle,
                                             gboolean is_dnd_target);
gboolean    <A HREF="cuirectangle.html#CUI-RECTANGLE-IS-DND-TARGET">cui_rectangle_is_dnd_target</A>     (<A HREF="cuirectangle.html">CuiRectangle</A> *rectangle);
void        <A HREF="cuirectangle.html#CUI-RECTANGLE-SET-TARGET-LIST">cui_rectangle_set_target_list</A>   (<A HREF="cuirectangle.html">CuiRectangle</A> *rec,
                                             GtkTargetList *list);
GtkTargetList* <A HREF="cuirectangle.html#CUI-RECTANGLE-GET-TARGET-LIST">cui_rectangle_get_target_list</A>
                                            (<A HREF="cuirectangle.html">CuiRectangle</A> *rec);
void        <A HREF="cuirectangle.html#CUI-RECTANGLE-SET-TARGET-OBJECT">cui_rectangle_set_target_object</A> (<A HREF="cuirectangle.html">CuiRectangle</A> *rec,
                                             GObject *object);
gboolean    <A HREF="cuirectangle.html#CUI-RECTANGLE-SET-HIGHLIGHTED">cui_rectangle_set_highlighted</A>   (<A HREF="cuirectangle.html">CuiRectangle</A> *rectangle,
                                             gboolean highlighted);
gboolean    <A HREF="cuirectangle.html#CUI-RECTANGLE-REDRAW">cui_rectangle_redraw</A>            (<A HREF="cuirectangle.html">CuiRectangle</A> *rectangle,
                                             gint debug);
guint       <A HREF="cuirectangle.html#CUI-RECTANGLE-GET-EXPOSE-SIGNAL-ID">cui_rectangle_get_expose_signal_id</A>
                                            (void);</PRE></DIV><DIV CLASS="REFSECT1"><A NAME="AEN3118"></A><H2>Object Hierarchy</H2><PRE CLASS="SYNOPSIS">&#13;  GObject
   +----<A HREF="cuiwidget.html">CuiWidget</A>
         +----CuiRectangle
               +----<A HREF="cuirectangleemboss.html">CuiRectangleEmboss</A>
               +----<A HREF="cuisizebar.html">CuiSizeBar</A>
               +----<A HREF="cuiframe.html">CuiFrame</A>
               +----<A HREF="cuiwindow.html">CuiWindow</A></PRE></DIV><DIV CLASS="REFSECT1"><A NAME="AEN3127"></A><H2>Properties</H2><PRE CLASS="SYNOPSIS">&#13;  &quot;<A HREF="cuirectangle.html#CUIRECTANGLE--COLOR">color</A>&quot;                gpointer              : Read / Write
  &quot;<A HREF="cuirectangle.html#CUIRECTANGLE--HIGH-COLOR">high-color</A>&quot;           gpointer              : Read / Write
  &quot;<A HREF="cuirectangle.html#CUIRECTANGLE--IS-DND-SOURCE">is-dnd-source</A>&quot;        gboolean              : Read / Write
  &quot;<A HREF="cuirectangle.html#CUIRECTANGLE--IS-DND-TARGET">is-dnd-target</A>&quot;        gboolean              : Read / Write
  &quot;<A HREF="cuirectangle.html#CUIRECTANGLE--IS-HIGHLIGHTED">is-highlighted</A>&quot;       gboolean              : Read / Write
  &quot;<A HREF="cuirectangle.html#CUIRECTANGLE--LOW-COLOR">low-color</A>&quot;            gpointer              : Read / Write
  &quot;<A HREF="cuirectangle.html#CUIRECTANGLE--TARGET-LIST">target-list</A>&quot;          gpointer              : Read / Write
  &quot;<A HREF="cuirectangle.html#CUIRECTANGLE--TARGET-OBJECT">target-object</A>&quot;        gpointer              : Read / Write</PRE></DIV><DIV CLASS="REFSECT1"><A NAME="AEN3146"></A><H2>Signal Prototypes</H2><PRE CLASS="SYNOPSIS">&#13;&quot;<A HREF="cuirectangle.html#CUIRECTANGLE-DROP-DATA-RECEIVED">drop-data-received</A>&quot;
            void        user_function      (<A HREF="cuirectangle.html">CuiRectangle</A> *cuirectangle,
                                            gpointer arg1,
                                            gpointer user_data);
&quot;<A HREF="cuirectangle.html#CUIRECTANGLE-EXPOSE">expose</A>&quot;    gboolean    user_function      (<A HREF="cuirectangle.html">CuiRectangle</A> *cuirectangle,
                                            gint arg1,
                                            gpointer user_data);</PRE></DIV><DIV CLASS="REFSECT1"><A NAME="AEN3159"></A><H2>Description</H2><P></P></DIV><DIV CLASS="REFSECT1"><A NAME="AEN3162"></A><H2>Details</H2><DIV CLASS="REFSECT2"><A NAME="AEN3164"></A><H3><A NAME="CUIRECTANGLE-STRUCT"></A>CuiRectangle</H3><PRE CLASS="PROGRAMLISTING">typedef struct {
	gboolean        is_dnd_target;
	gboolean        is_dnd_source;
	gboolean        is_highlighted;
	TargetType      source_type;
	gpointer        source_data;
	gsize           source_size;	
	GtkTargetList  *target_list;
	gpointer        target_object;
} CuiRectangle;</PRE><P>The base class for rectangular passive widgets such as frames, embossed color
rectangles.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3173"><SPAN STYLE="white-space: nowrap">gboolean&nbsp;<CODE CLASS="STRUCTFIELD">is_dnd_target</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> TRUE if the rectangle can be a Drag&amp;Drop target</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3179"><SPAN STYLE="white-space: nowrap">gboolean&nbsp;<CODE CLASS="STRUCTFIELD">is_dnd_source</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> TRUE if the rectangle can be a Drag&amp;Drop source</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3185"><SPAN STYLE="white-space: nowrap">gboolean&nbsp;<CODE CLASS="STRUCTFIELD">is_highlighted</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> TRUE if the rectangle is highlighted (drag-motion)</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3191"><SPAN STYLE="white-space: nowrap"><A HREF="cuiterm-drag-and-drop.html#TARGETTYPE">TargetType</A>&nbsp;<CODE CLASS="STRUCTFIELD">source_type</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the type of the data we drag from here</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3197"><SPAN STYLE="white-space: nowrap">gpointer&nbsp;<CODE CLASS="STRUCTFIELD">source_data</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the data we drag from here</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3203"><SPAN STYLE="white-space: nowrap">gsize&nbsp;<CODE CLASS="STRUCTFIELD">source_size</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the size of the data we drag from here</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3209"><SPAN STYLE="white-space: nowrap">GtkTargetList&nbsp;*<CODE CLASS="STRUCTFIELD">target_list</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the <SPAN CLASS="TYPE">GtktargetList</SPAN> of acceptable DnD types</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3217"><SPAN STYLE="white-space: nowrap">gpointer&nbsp;<CODE CLASS="STRUCTFIELD">target_object</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the G_OBJECT which act as a the target for the DnD</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3223"></A><H3><A NAME="CUI-RECTANGLE-NEW"></A>cui_rectangle_new ()</H3><PRE CLASS="PROGRAMLISTING"><A HREF="cuiwidget.html">CuiWidget</A>*  cui_rectangle_new               (void);</PRE><P>Creates a new rectangle.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3233"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a new <A HREF="cuirectangle.html"><SPAN CLASS="TYPE">CuiRectangle</SPAN></A> as <A HREF="cuiwidget.html"><SPAN CLASS="TYPE">CuiWidget</SPAN></A></P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3242"></A><H3><A NAME="CUI-RECTANGLE-SET-COLOR"></A>cui_rectangle_set_color ()</H3><PRE CLASS="PROGRAMLISTING">void        cui_rectangle_set_color         (<A HREF="cuirectangle.html">CuiRectangle</A> *rec,
                                             const char *color_name,
                                             const char *high_color_name,
                                             const char *low_color_name);</PRE><P>Sets the three colors for the frame. The function also allocates these colors
for the <A HREF="cuiterm-background.html#BACKGROUND"><SPAN CLASS="TYPE">Background</SPAN></A> of the widget.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3258"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">rec</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuirectangle.html"><SPAN CLASS="TYPE">CuiRectangle</SPAN></A> widget</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3265"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">color_name</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the color for the widget</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3270"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">high_color_name</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the high color</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3275"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">low_color_name</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the low color</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3280"></A><H3><A NAME="CUI-RECTANGLE-GET-COLOR"></A>cui_rectangle_get_color ()</H3><PRE CLASS="PROGRAMLISTING">GdkColor*   cui_rectangle_get_color         (<A HREF="cuirectangle.html">CuiRectangle</A> *rec);</PRE><P>Returns the color of the rectangle.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3291"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">rec</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuirectangle.html"><SPAN CLASS="TYPE">CuiRectangle</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3298"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the color of the rectangle as a <SPAN CLASS="TYPE">GdkColor</SPAN></P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3305"></A><H3><A NAME="CUI-RECTANGLE-GET-HIGH-COLOR"></A>cui_rectangle_get_high_color ()</H3><PRE CLASS="PROGRAMLISTING">GdkColor*   cui_rectangle_get_high_color    (<A HREF="cuirectangle.html">CuiRectangle</A> *rec);</PRE><P>Returns the color of the rectangle.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3316"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">rec</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuirectangle.html"><SPAN CLASS="TYPE">CuiRectangle</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3323"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the color of the rectangle as a <SPAN CLASS="TYPE">GdkColor</SPAN></P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3330"></A><H3><A NAME="CUI-RECTANGLE-GET-LOW-COLOR"></A>cui_rectangle_get_low_color ()</H3><PRE CLASS="PROGRAMLISTING">GdkColor*   cui_rectangle_get_low_color     (<A HREF="cuirectangle.html">CuiRectangle</A> *rec);</PRE><P>Returns the color of the rectangle.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3341"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">rec</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuirectangle.html"><SPAN CLASS="TYPE">CuiRectangle</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3348"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the color of the rectangle as a <SPAN CLASS="TYPE">GdkColor</SPAN></P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3355"></A><H3><A NAME="CUI-RECTANGLE-SET-IS-DND-SOURCE"></A>cui_rectangle_set_is_dnd_source ()</H3><PRE CLASS="PROGRAMLISTING">void        cui_rectangle_set_is_dnd_source (<A HREF="cuirectangle.html">CuiRectangle</A> *rectangle,
                                             gboolean is_dnd_source);</PRE><P>Sets the "is_dnd_source" property which is TRUE if this rectangle can be a
Drag&amp;Drop source.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3367"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">rectangle</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuirectangle.html"><SPAN CLASS="TYPE">CuiRectangle</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3374"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">is_dnd_source</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the new value of the is_dnd_source property</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3379"></A><H3><A NAME="CUI-RECTANGLE-IS-DND-SOURCE"></A>cui_rectangle_is_dnd_source ()</H3><PRE CLASS="PROGRAMLISTING">gboolean    cui_rectangle_is_dnd_source     (<A HREF="cuirectangle.html">CuiRectangle</A> *rectangle);</PRE><P>Returns TRUE if the rectangle can be a Drag&amp;Drop source.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3390"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">rectangle</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuirectangle.html"><SPAN CLASS="TYPE">CuiRectangle</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3397"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> TRUE if the rectangle can be a Drag&amp;Drop source</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3402"></A><H3><A NAME="CUI-RECTANGLE-SET-DND-SOURCE-DATA"></A>cui_rectangle_set_dnd_source_data ()</H3><PRE CLASS="PROGRAMLISTING">void        cui_rectangle_set_dnd_source_data
                                            (<A HREF="cuirectangle.html">CuiRectangle</A> *rectangle,
                                             <A HREF="cuiterm-drag-and-drop.html#TARGETTYPE">TargetType</A> source_type,
                                             gpointer source_data,
                                             gsize source_size);</PRE><P>Sets the information needed to start a Drag&amp;Drop operation. Every DnD source
is capable of initializing a one type DnD operation.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3416"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">rectangle</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuirectangle.html"><SPAN CLASS="TYPE">CuiRectangle</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3423"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">source_type</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuiterm-drag-and-drop.html#TARGETTYPE"><SPAN CLASS="TYPE">TargetType</SPAN></A> type source type identifier</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3430"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">source_data</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the dragged data pointer</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3435"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">source_size</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the size of the source_data</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3440"></A><H3><A NAME="CUI-RECTANGLE-SET-IS-DND-TARGET"></A>cui_rectangle_set_is_dnd_target ()</H3><PRE CLASS="PROGRAMLISTING">void        cui_rectangle_set_is_dnd_target (<A HREF="cuirectangle.html">CuiRectangle</A> *rectangle,
                                             gboolean is_dnd_target);</PRE><P>Sets the "is_dnd_target" property which is TRUE if this rectangle can be a
Drag&amp;Drop target.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3452"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">rectangle</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuirectangle.html"><SPAN CLASS="TYPE">CuiRectangle</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3459"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">is_dnd_target</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the new value of the is_dnd_target property</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3464"></A><H3><A NAME="CUI-RECTANGLE-IS-DND-TARGET"></A>cui_rectangle_is_dnd_target ()</H3><PRE CLASS="PROGRAMLISTING">gboolean    cui_rectangle_is_dnd_target     (<A HREF="cuirectangle.html">CuiRectangle</A> *rectangle);</PRE><P>Returns TRUE if the rectangle can be a Drag&amp;Drop target.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3475"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">rectangle</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuirectangle.html"><SPAN CLASS="TYPE">CuiRectangle</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3482"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> TRUE if the rectangle can be a Drag&amp;Drop target</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3487"></A><H3><A NAME="CUI-RECTANGLE-SET-TARGET-LIST"></A>cui_rectangle_set_target_list ()</H3><PRE CLASS="PROGRAMLISTING">void        cui_rectangle_set_target_list   (<A HREF="cuirectangle.html">CuiRectangle</A> *rec,
                                             GtkTargetList *list);</PRE><P>Sets the target list of the rectangle. This list is storing the data types
this rectangle can handle as DnD target.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3499"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">rec</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuirectangle.html"><SPAN CLASS="TYPE">CuiRectangle</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3506"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">list</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a new <SPAN CLASS="TYPE">GtkTargetList</SPAN> for this rectangle</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3513"></A><H3><A NAME="CUI-RECTANGLE-GET-TARGET-LIST"></A>cui_rectangle_get_target_list ()</H3><PRE CLASS="PROGRAMLISTING">GtkTargetList* cui_rectangle_get_target_list
                                            (<A HREF="cuirectangle.html">CuiRectangle</A> *rec);</PRE><P>Returns the <SPAN CLASS="TYPE">GtkTargetList</SPAN> of the rectangle. This list contains the DnD types
this rectangle can handle as a target.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3526"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">rec</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuirectangle.html"><SPAN CLASS="TYPE">CuiRectangle</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3533"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the target list of the rectangle</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3538"></A><H3><A NAME="CUI-RECTANGLE-SET-TARGET-OBJECT"></A>cui_rectangle_set_target_object ()</H3><PRE CLASS="PROGRAMLISTING">void        cui_rectangle_set_target_object (<A HREF="cuirectangle.html">CuiRectangle</A> *rec,
                                             GObject *object);</PRE><P>Sets the Drag&amp;Drop target object for the rectangle. The rectangle will hold a
reference of the object until we change the target.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3550"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">rec</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuirectangle.html"><SPAN CLASS="TYPE">CuiRectangle</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3557"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">object</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the new target object</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3562"></A><H3><A NAME="CUI-RECTANGLE-SET-HIGHLIGHTED"></A>cui_rectangle_set_highlighted ()</H3><PRE CLASS="PROGRAMLISTING">gboolean    cui_rectangle_set_highlighted   (<A HREF="cuirectangle.html">CuiRectangle</A> *rectangle,
                                             gboolean highlighted);</PRE><P>Sets the highlight status of the rectangle. The rectangle is highlighted
when the mouse is moving over it during a Drag&amp;Drop operation. The function
redrawi the rectangle if necessary.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3574"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">rectangle</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuirectangle.html"><SPAN CLASS="TYPE">CuiRectangle</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3581"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">highlighted</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> if the rectangle widget is highlighted</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3586"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the original highlight status of the rectangle</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3591"></A><H3><A NAME="CUI-RECTANGLE-REDRAW"></A>cui_rectangle_redraw ()</H3><PRE CLASS="PROGRAMLISTING">gboolean    cui_rectangle_redraw            (<A HREF="cuirectangle.html">CuiRectangle</A> *rectangle,
                                             gint debug);</PRE><P>Emits the expose event for the widget to redraw the screen.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3603"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">rectangle</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the <A HREF="cuirectangle.html"><SPAN CLASS="TYPE">CuiRectangle</SPAN></A> to redraw</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3610"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">debug</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> if this argument is not 0 the area will be highlighted</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3615"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the return value of the signal handler</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3620"></A><H3><A NAME="CUI-RECTANGLE-GET-EXPOSE-SIGNAL-ID"></A>cui_rectangle_get_expose_signal_id ()</H3><PRE CLASS="PROGRAMLISTING">guint       cui_rectangle_get_expose_signal_id
                                            (void);</PRE><P>Returns the id of the "expose" signal. This function is for internal use
only.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3630"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the numerical id of the "expose" signal</P></TD></TR></TBODY></TABLE></DIV></DIV><DIV CLASS="REFSECT1"><A NAME="AEN3635"></A><H2>Properties</H2><DIV CLASS="REFSECT2"><A NAME="AEN3637"></A><H3><A NAME="CUIRECTANGLE--COLOR"></A>The &quot;<TT CLASS="LITERAL">color</TT>&quot; property</H3><PRE CLASS="PROGRAMLISTING">  &quot;color&quot;                gpointer              : Read / Write</PRE><P>The color of the rectangle.</P></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3644"></A><H3><A NAME="CUIRECTANGLE--HIGH-COLOR"></A>The &quot;<TT CLASS="LITERAL">high-color</TT>&quot; property</H3><PRE CLASS="PROGRAMLISTING">  &quot;high-color&quot;           gpointer              : Read / Write</PRE><P>The color of the upper left part of the rectangle.</P></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3651"></A><H3><A NAME="CUIRECTANGLE--IS-DND-SOURCE"></A>The &quot;<TT CLASS="LITERAL">is-dnd-source</TT>&quot; property</H3><PRE CLASS="PROGRAMLISTING">  &quot;is-dnd-source&quot;        gboolean              : Read / Write</PRE><P>If the rectangle can be a Drag&amp;Drop source.</P><P>Default value: FALSE</P></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3659"></A><H3><A NAME="CUIRECTANGLE--IS-DND-TARGET"></A>The &quot;<TT CLASS="LITERAL">is-dnd-target</TT>&quot; property</H3><PRE CLASS="PROGRAMLISTING">  &quot;is-dnd-target&quot;        gboolean              : Read / Write</PRE><P>If the rectangle can be a Drag&amp;Drop target.</P><P>Default value: FALSE</P></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3667"></A><H3><A NAME="CUIRECTANGLE--IS-HIGHLIGHTED"></A>The &quot;<TT CLASS="LITERAL">is-highlighted</TT>&quot; property</H3><PRE CLASS="PROGRAMLISTING">  &quot;is-highlighted&quot;       gboolean              : Read / Write</PRE><P>If the rectangle is highlighted (DnD motion).</P><P>Default value: FALSE</P></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3675"></A><H3><A NAME="CUIRECTANGLE--LOW-COLOR"></A>The &quot;<TT CLASS="LITERAL">low-color</TT>&quot; property</H3><PRE CLASS="PROGRAMLISTING">  &quot;low-color&quot;            gpointer              : Read / Write</PRE><P>The color of the upper right part of the rectangle.</P></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3682"></A><H3><A NAME="CUIRECTANGLE--TARGET-LIST"></A>The &quot;<TT CLASS="LITERAL">target-list</TT>&quot; property</H3><PRE CLASS="PROGRAMLISTING">  &quot;target-list&quot;          gpointer              : Read / Write</PRE><P>The GtkTargetList shows what can this rectangle accept as a DnD target.</P></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3689"></A><H3><A NAME="CUIRECTANGLE--TARGET-OBJECT"></A>The &quot;<TT CLASS="LITERAL">target-object</TT>&quot; property</H3><PRE CLASS="PROGRAMLISTING">  &quot;target-object&quot;        gpointer              : Read / Write</PRE><P>The GObject we use as a DnD target.</P></DIV></DIV><DIV CLASS="REFSECT1"><A NAME="AEN3696"></A><H2>Signals</H2><DIV CLASS="REFSECT2"><A NAME="AEN3698"></A><H3><A NAME="CUIRECTANGLE-DROP-DATA-RECEIVED"></A>The &quot;drop-data-received&quot; signal</H3><PRE CLASS="PROGRAMLISTING">void        user_function                  (<A HREF="cuirectangle.html">CuiRectangle</A> *cuirectangle,
                                            gpointer arg1,
                                            gpointer user_data);</PRE><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3708"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">arg1</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P>@:
@:
@:
@:
@:</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3713"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">cuirectangle</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P>the object which received the signal.
@:
@:
@:
@:&#13;</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3718"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">user_data</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P>user data set when the signal handler was connected.</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN3723"></A><H3><A NAME="CUIRECTANGLE-EXPOSE"></A>The &quot;expose&quot; signal</H3><PRE CLASS="PROGRAMLISTING">gboolean    user_function                  (<A HREF="cuirectangle.html">CuiRectangle</A> *cuirectangle,
                                            gint arg1,
                                            gpointer user_data);</PRE><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3733"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">user_data</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P>user data set when the signal handler was connected.</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN3738"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P></P></TD></TR></TBODY></TABLE></DIV></DIV><TABLE CLASS="navigation" WIDTH="100%" SUMMARY="Navigation footer" CELLPADDING="2" CELLSPACING="2"><TR VALIGN="middle"><TD ALIGN="left"><A ACCESSKEY="p" HREF="cuiwidget.html"><B>&lt;&lt;&lt;&nbsp;CuiWidget</B></A></TD><TD ALIGN="right"><A ACCESSKEY="n" HREF="cuirectangleemboss.html"><B>CuiRectangleEmboss&nbsp;&gt;&gt;&gt;</B></A></TD></TR></TABLE></BODY></HTML>