<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML><HEAD><TITLE>Background</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="Terminal" HREF="cuiterm-terminal.html"><LINK REL="NEXT" TITLE="program" HREF="cuiterm-program.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="cuiterm-terminal.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="cuiterm-program.html"><IMG SRC="right.png" WIDTH="24" HEIGHT="24" BORDER="0" ALT="Next"></A></TD></TR></TABLE><H1><A NAME="CUITERM-BACKGROUND"></A>Background</H1><DIV CLASS="REFNAMEDIV"><A NAME="AEN475"></A><H2>Name</H2>Background -- </DIV><DIV CLASS="REFSYNOPSISDIV"><A NAME="AEN478"></A><H2>Synopsis</H2><PRE CLASS="SYNOPSIS"> #include <history.h> enum <A HREF="cuiterm-background.html#BACKGROUNDMETHOD">BackgroundMethod</A>; <A HREF="cuiterm-background.html#BACKGROUND">Background</A>; <A HREF="cuiterm-background.html#BACKGROUND">Background</A>* <A HREF="cuiterm-background.html#BACKGROUND-NEW">background_new</A> (GtkTextView *widget); void <A HREF="cuiterm-background.html#BACKGROUND-SET-SECONDARY-TEXT-VIEW">background_set_secondary_text_view</A> (<A HREF="cuiterm-background.html#BACKGROUND">Background</A> *bg, GtkTextView *text_view); void <A HREF="cuiterm-background.html#BACKGROUND-SET-METHOD">background_set_method</A> (<A HREF="cuiterm-background.html#BACKGROUND">Background</A> *bg, <A HREF="cuiterm-background.html#BACKGROUNDMETHOD">BackgroundMethod</A> method); gint <A HREF="cuiterm-background.html#CUI-BACKGROUND-APPEND-WIDGET">cui_background_append_widget</A> (<A HREF="cuiterm-background.html#BACKGROUND">Background</A> *bg, gpointer widget); gpointer* <A HREF="cuiterm-background.html#BACKGROUND-GET-LAST-DND-TARGET">background_get_last_dnd_target</A> (<A HREF="cuiterm-background.html#BACKGROUND">Background</A> *background); gpointer* <A HREF="cuiterm-background.html#BACKGROUND-GET-LAST-DND-SOURCE">background_get_last_dnd_source</A> (<A HREF="cuiterm-background.html#BACKGROUND">Background</A> *background); gboolean <A HREF="cuiterm-background.html#BACKGROUND-EXPOSE-EVENT">background_expose_event</A> (GtkWidget *widget, GdkEventExpose *event, gpointer user_data); gboolean <A HREF="cuiterm-background.html#BACKGROUND-BUTTON-PRESS-EVENT">background_button_press_event</A> (<A HREF="cuiterm-background.html#BACKGROUND">Background</A> *bg, GtkWidget *widget, GdkEventButton *event, gpointer user_data); gboolean <A HREF="cuiterm-background.html#BACKGROUND-MOTION-NOTIFY-EVENT">background_motion_notify_event</A> (<A HREF="cuiterm-background.html#BACKGROUND">Background</A> *bg, GtkWidget *widget, GdkEventMotion *event, gpointer user_data); gboolean <A HREF="cuiterm-background.html#BACKGROUND-DND-MOTION-NOTIFY">background_dnd_motion_notify</A> (GtkWidget *widget, <A HREF="cuiterm-background.html#BACKGROUND">Background</A> *background, GdkDragContext *drag_context, gint x, gint y); gboolean <A HREF="cuiterm-background.html#BACKGROUND-LEAVE-NOTIFY-EVENT">background_leave_notify_event</A> (<A HREF="cuiterm-background.html#BACKGROUND">Background</A> *bg, GtkWidget *widget, GdkEventCrossing *event, gpointer user_data);</PRE></DIV><DIV CLASS="REFSECT1"><A NAME="AEN534"></A><H2>Description</H2><P></P></DIV><DIV CLASS="REFSECT1"><A NAME="AEN537"></A><H2>Details</H2><DIV CLASS="REFSECT2"><A NAME="AEN539"></A><H3><A NAME="BACKGROUNDMETHOD"></A>enum BackgroundMethod</H3><PRE CLASS="PROGRAMLISTING">typedef enum { MethodGraphics, MethodSelection, MethodEditor } BackgroundMethod;</PRE><P></P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN548"><SPAN STYLE="white-space: nowrap"><TT CLASS="LITERAL">MethodGraphics</TT></SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> using the CUI as a graphical user interface</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN553"><SPAN STYLE="white-space: nowrap"><TT CLASS="LITERAL">MethodSelection</TT></SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> using the CUI to select items</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN558"><SPAN STYLE="white-space: nowrap"><TT CLASS="LITERAL">MethodEditor</TT></SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> using the CUI as a text editor</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN563"></A><H3><A NAME="BACKGROUND"></A>Background</H3><PRE CLASS="PROGRAMLISTING">typedef struct { GList *bg_widgets; GdkColormap *colormap; GtkTextView *text_view, *secondary_text_view; GtkWidget *widget; GdkWindow *window, *secondary_window; GtkTextBuffer *text_buffer; GdkGC *gc; GdkCursor *mouse_cursor_arrow; GdkCursor *mouse_cursor_hand; GdkCursor *mouse_cursor_text; BackgroundMethod method; } Background;</PRE><P></P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN572"><SPAN STYLE="white-space: nowrap">GList *<CODE CLASS="STRUCTFIELD">bg_widgets</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a list of CuiWidgets</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN578"><SPAN STYLE="white-space: nowrap">GdkColormap *<CODE CLASS="STRUCTFIELD">colormap</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the colormap to draw objects (FIXME: do we need this?)</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN584"><SPAN STYLE="white-space: nowrap">GtkTextView *<CODE CLASS="STRUCTFIELD">text_view</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> same as the widget but as a <SPAN CLASS="TYPE">GtkTextView</SPAN></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN592"><SPAN STYLE="white-space: nowrap">GtkTextView *<CODE CLASS="STRUCTFIELD">secondary_text_view</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN598"><SPAN STYLE="white-space: nowrap">GtkWidget *<CODE CLASS="STRUCTFIELD">widget</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the terminal widget</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN604"><SPAN STYLE="white-space: nowrap">GdkWindow *<CODE CLASS="STRUCTFIELD">window</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the window to draw in (A <SPAN CLASS="TYPE">GtkTextView</SPAN> has 3 windows!)</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN612"><SPAN STYLE="white-space: nowrap">GdkWindow *<CODE CLASS="STRUCTFIELD">secondary_window</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN618"><SPAN STYLE="white-space: nowrap">GtkTextBuffer *<CODE CLASS="STRUCTFIELD">text_buffer</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the terminal's text_buffer (FIXME: do we need this?)</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN624"><SPAN STYLE="white-space: nowrap">GdkGC *<CODE CLASS="STRUCTFIELD">gc</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the graphics context to draw</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN630"><SPAN STYLE="white-space: nowrap">GdkCursor *<CODE CLASS="STRUCTFIELD">mouse_cursor_arrow</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> an arrow like mouse cursor</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN636"><SPAN STYLE="white-space: nowrap">GdkCursor *<CODE CLASS="STRUCTFIELD">mouse_cursor_hand</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a hand mouse cursor to use</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN642"><SPAN STYLE="white-space: nowrap">GdkCursor *<CODE CLASS="STRUCTFIELD">mouse_cursor_text</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a mouse cursor like the text editors used to show</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN648"><SPAN STYLE="white-space: nowrap"><A HREF="cuiterm-background.html#BACKGROUNDMETHOD">BackgroundMethod</A> <CODE CLASS="STRUCTFIELD">method</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the user communication method of the background</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN654"></A><H3><A NAME="BACKGROUND-NEW"></A>background_new ()</H3><PRE CLASS="PROGRAMLISTING"><A HREF="cuiterm-background.html#BACKGROUND">Background</A>* background_new (GtkTextView *widget);</PRE><P>Creates a new background for the given GtkWidget.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN665"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">widget</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <SPAN CLASS="TYPE">GtkTextView</SPAN> which will hold the new background</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN672"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a new background</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN677"></A><H3><A NAME="BACKGROUND-SET-SECONDARY-TEXT-VIEW"></A>background_set_secondary_text_view ()</H3><PRE CLASS="PROGRAMLISTING">void background_set_secondary_text_view (<A HREF="cuiterm-background.html#BACKGROUND">Background</A> *bg, GtkTextView *text_view);</PRE><P>Sets the secondary text view which uses this background.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN689"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">bg</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuiterm-background.html#BACKGROUND"><SPAN CLASS="TYPE">Background</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN696"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">text_view</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <SPAN CLASS="TYPE">GtkTextView</SPAN> also shows the given background</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN703"></A><H3><A NAME="BACKGROUND-SET-METHOD"></A>background_set_method ()</H3><PRE CLASS="PROGRAMLISTING">void background_set_method (<A HREF="cuiterm-background.html#BACKGROUND">Background</A> *bg, <A HREF="cuiterm-background.html#BACKGROUNDMETHOD">BackgroundMethod</A> method);</PRE><P>Sets the usage method of the background.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN715"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">bg</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a background to set</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN720"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">method</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the usage method of the background</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN725"></A><H3><A NAME="CUI-BACKGROUND-APPEND-WIDGET"></A>cui_background_append_widget ()</H3><PRE CLASS="PROGRAMLISTING">gint cui_background_append_widget (<A HREF="cuiterm-background.html#BACKGROUND">Background</A> *bg, gpointer widget);</PRE><P>Adds the widget to the background so it can be appear on the screen and the user can use it to control the application.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN737"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">bg</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the <A HREF="cuiterm-background.html#BACKGROUND"><SPAN CLASS="TYPE">Background</SPAN></A> which will contain the widget</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN744"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">widget</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuiwidget.html"><SPAN CLASS="TYPE">CuiWidget</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN751"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> 0 if everything is fine</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN756"></A><H3><A NAME="BACKGROUND-GET-LAST-DND-TARGET"></A>background_get_last_dnd_target ()</H3><PRE CLASS="PROGRAMLISTING">gpointer* background_get_last_dnd_target (<A HREF="cuiterm-background.html#BACKGROUND">Background</A> *background);</PRE><P>Returns the <A HREF="cuiwidget.html"><SPAN CLASS="TYPE">CuiWidget</SPAN></A> used as a Drag&Drop target. The return value can be NULL if there were no widget under the mouse pointer.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN769"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">background</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuiterm-background.html#BACKGROUND"><SPAN CLASS="TYPE">background</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN776"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the last <A HREF="cuiwidget.html"><SPAN CLASS="TYPE">CuiWidget</SPAN></A> used as a DnD target.</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN783"></A><H3><A NAME="BACKGROUND-GET-LAST-DND-SOURCE"></A>background_get_last_dnd_source ()</H3><PRE CLASS="PROGRAMLISTING">gpointer* background_get_last_dnd_source (<A HREF="cuiterm-background.html#BACKGROUND">Background</A> *background);</PRE><P>Returns the <A HREF="cuiwidget.html"><SPAN CLASS="TYPE">CuiWidget</SPAN></A> used as a Drag&Drop source. The return value can be NULL if there were no widget under the mouse pointer.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN796"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">background</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuiterm-background.html#BACKGROUND"><SPAN CLASS="TYPE">background</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN803"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the last <A HREF="cuiwidget.html"><SPAN CLASS="TYPE">CuiWidget</SPAN></A> used as a DnD source.</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN810"></A><H3><A NAME="BACKGROUND-EXPOSE-EVENT"></A>background_expose_event ()</H3><PRE CLASS="PROGRAMLISTING">gboolean background_expose_event (GtkWidget *widget, GdkEventExpose *event, 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="AEN822"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">widget</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN827"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">event</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN832"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">user_data</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN837"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> </P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN842"></A><H3><A NAME="BACKGROUND-BUTTON-PRESS-EVENT"></A>background_button_press_event ()</H3><PRE CLASS="PROGRAMLISTING">gboolean background_button_press_event (<A HREF="cuiterm-background.html#BACKGROUND">Background</A> *bg, GtkWidget *widget, GdkEventButton *event, gpointer user_data);</PRE><P>Called when the any of the mouse buttons are pressed on a <A HREF="cuiterm-background.html#BACKGROUND"><SPAN CLASS="TYPE">Background</SPAN></A>. This function will decide what to do and call the appropriate function to handle the event.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN858"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">bg</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuiterm-background.html#BACKGROUND"><SPAN CLASS="TYPE">Background</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN865"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">widget</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the <SPAN CLASS="TYPE">GtkWidget</SPAN> the <A HREF="cuiterm-background.html#BACKGROUND"><SPAN CLASS="TYPE">Background</SPAN></A> pertain to</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN874"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">event</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the mouse event we try to handle</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN879"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">user_data</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the pointer given for the signal connection (may be NULL)</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN884"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> TRUE if the event handled</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN889"></A><H3><A NAME="BACKGROUND-MOTION-NOTIFY-EVENT"></A>background_motion_notify_event ()</H3><PRE CLASS="PROGRAMLISTING">gboolean background_motion_notify_event (<A HREF="cuiterm-background.html#BACKGROUND">Background</A> *bg, GtkWidget *widget, GdkEventMotion *event, 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="AEN902"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">bg</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN907"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">widget</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN912"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">event</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN917"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">user_data</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN922"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> </P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN927"></A><H3><A NAME="BACKGROUND-DND-MOTION-NOTIFY"></A>background_dnd_motion_notify ()</H3><PRE CLASS="PROGRAMLISTING">gboolean background_dnd_motion_notify (GtkWidget *widget, <A HREF="cuiterm-background.html#BACKGROUND">Background</A> *background, GdkDragContext *drag_context, gint x, gint y);</PRE><P>Called when the mouse is moving during the DnD operation. This function will try to find a matching DnD target, selecting a DnD target type, and highlight the DnD target if a match found.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN942"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">widget</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN947"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">background</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuiterm-background.html#BACKGROUND"><SPAN CLASS="TYPE">Background</SPAN></A> </P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN954"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">drag_context</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the context </P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN959"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">x</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the mouse x coordinate</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN964"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">y</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the mouse y coordinate</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN969"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> TRUE if a DnD target has been found</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN974"></A><H3><A NAME="BACKGROUND-LEAVE-NOTIFY-EVENT"></A>background_leave_notify_event ()</H3><PRE CLASS="PROGRAMLISTING">gboolean background_leave_notify_event (<A HREF="cuiterm-background.html#BACKGROUND">Background</A> *bg, GtkWidget *widget, GdkEventCrossing *event, 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="AEN987"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">bg</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN992"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">widget</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN997"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">event</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN1002"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">user_data</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN1007"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN> :</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="cuiterm-terminal.html"><B><<< Terminal</B></A></TD><TD ALIGN="right"><A ACCESSKEY="n" HREF="cuiterm-program.html"><B>program >>></B></A></TD></TR></TABLE></BODY></HTML>