Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 677c1b5134368504c2e447757584d19e > files > 709

ghc-gtk-devel-0.11.2-5.fc14.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Rendered using the Haskell Html Library v0.2-->
<HTML
><HEAD
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"
><TITLE
>Graphics.UI.Gtk.Misc.Tooltip</TITLE
><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"
><SCRIPT SRC="haddock-util.js" TYPE="text/javascript"
></SCRIPT
><SCRIPT TYPE="text/javascript"
>window.onload = function () {setSynopsis("mini_Graphics-UI-Gtk-Misc-Tooltip.html")};</SCRIPT
></HEAD
><BODY
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="topbar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "
></TD
><TD CLASS="title"
>gtk-0.11.2: Binding to the Gtk+ graphical user interface library.</TD
><TD CLASS="topbut"
><A HREF="src/Graphics-UI-Gtk-Misc-Tooltip.html"
>Source code</A
></TD
><TD CLASS="topbut"
><A HREF="index.html"
>Contents</A
></TD
><TD CLASS="topbut"
><A HREF="doc-index.html"
>Index</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="modulebar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><FONT SIZE="6"
>Graphics.UI.Gtk.Misc.Tooltip</FONT
></TD
><TD ALIGN="right"
><TABLE CLASS="narrow" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="infohead"
>Portability</TD
><TD CLASS="infoval"
>portable (depends on GHC)</TD
></TR
><TR
><TD CLASS="infohead"
>Stability</TD
><TD CLASS="infoval"
>provisional</TD
></TR
><TR
><TD CLASS="infohead"
>Maintainer</TD
><TD CLASS="infoval"
>gtk2hs-users@lists.sourceforge.net</TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="section4"
><B
>Contents</B
></TD
></TR
><TR
><TD
><DL
><DT
><A HREF="#1"
>Detail
</A
></DT
><DT
><A HREF="#2"
>Class Hierarchy
</A
></DT
><DT
><A HREF="#3"
>Types
</A
></DT
><DT
><A HREF="#4"
>Methods
</A
></DT
></DL
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Description</TD
></TR
><TR
><TD CLASS="doc"
><P
>Add tips to your widgets
</P
><UL
><LI
> Module available since Gtk+ version 2.12
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Synopsis</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A HREF="#t%3ATooltip"
>Tooltip</A
> </TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>class</SPAN
> <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass"
>GObjectClass</A
> o =&gt; <A HREF="#t%3ATooltipClass"
>TooltipClass</A
> o </TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AcastToTooltip"
>castToTooltip</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass"
>GObjectClass</A
> obj =&gt; obj -&gt; <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltip"
>Tooltip</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AtoTooltip"
>toTooltip</A
> :: <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltipClass"
>TooltipClass</A
> o =&gt; o -&gt; <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltip"
>Tooltip</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AtooltipSetMarkup"
>tooltipSetMarkup</A
> :: <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltipClass"
>TooltipClass</A
> self =&gt; self -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/pango-0.11.2/Graphics-Rendering-Pango-Enums.html#t%3AMarkup"
>Markup</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AtooltipSetText"
>tooltipSetText</A
> :: <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltipClass"
>TooltipClass</A
> self =&gt; self -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AtooltipSetIcon"
>tooltipSetIcon</A
> :: <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltipClass"
>TooltipClass</A
> self =&gt; self -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AtooltipSetIconFromStock"
>tooltipSetIconFromStock</A
> :: <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltipClass"
>TooltipClass</A
> self =&gt; self -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
> -&gt; <A HREF="Graphics-UI-Gtk-MenuComboToolbar-ToolItem.html#t%3AIconSize"
>IconSize</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AtooltipSetIconFromIconName"
>tooltipSetIconFromIconName</A
> :: <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltipClass"
>TooltipClass</A
> self =&gt; self -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
> -&gt; <A HREF="Graphics-UI-Gtk-MenuComboToolbar-ToolItem.html#t%3AIconSize"
>IconSize</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AtooltipSetCustom"
>tooltipSetCustom</A
> :: (<A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltipClass"
>TooltipClass</A
> self, <A HREF="Graphics-UI-Gtk-Abstract-Widget.html#t%3AWidgetClass"
>WidgetClass</A
> widget) =&gt; self -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> widget -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AtooltipTriggerTooltipQuery"
>tooltipTriggerTooltipQuery</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Display.html#t%3ADisplay"
>Display</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AtooltipSetTipArea"
>tooltipSetTipArea</A
> :: <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltipClass"
>TooltipClass</A
> self =&gt; self -&gt; <A HREF="Graphics-UI-Gtk-Gdk-Events.html#t%3ARectangle"
>Rectangle</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="1"
><A NAME="1"
>Detail
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="doc"
><P
><TT
><A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltip"
>Tooltip</A
></TT
> belongs to the new tooltips API that was introduced in Gtk+
 2.12 and which deprecates the old <TT
><A HREF="Graphics-UI-Gtk-Misc-Tooltips.html#t%3ATooltips"
>Tooltips</A
></TT
> API.
</P
><P
>Basic tooltips can be realized simply by using widgetSetTooltipText or
 widgetSetTooltipMarkup without any explicit tooltip object.
</P
><P
>When you need a tooltip with a little more fancy contents, like adding an
 image, or you want the tooltip to have different contents per <TT
><A HREF="Graphics-UI-Gtk-ModelView-TreeView.html#t%3ATreeView"
>TreeView</A
></TT
> row
 or cell, you will have to do a little more work:
</P
><UL
><LI
> Set the hasTooltip property to <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#v%3ATrue"
>True</A
></TT
>, this will make GTK+ monitor the widget for motion and
 related events which are needed to determine when and where to show a tooltip.
</LI
><LI
> Connect to the queryTooltip signal. This signal will be emitted when a tooltip is supposed to
 be shown. One of the arguments passed to the signal handler is a <TT
><A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltip"
>Tooltip</A
></TT
> object. This is the
 object that we are about to display as a tooltip, and can be manipulated in your callback using
 functions like <TT
><A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#v%3AtooltipSetIcon"
>tooltipSetIcon</A
></TT
>. There are functions for setting the tooltip's markup,
 setting an image from a stock icon, or even putting in a custom widget.
</LI
><LI
> Return <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#v%3ATrue"
>True</A
></TT
> from your query-tooltip handler. This causes the tooltip to be show. If you return
 <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#v%3AFalse"
>False</A
></TT
>, it will not be shown.
</LI
></UL
><P
>In the probably rare case where you want to have even more control over the tooltip that is about to
 be shown, you can set your own <TT
><A HREF="Graphics-UI-Gtk-Windows-Window.html#t%3AWindow"
>Window</A
></TT
> which will be used as tooltip window. This works as
 follows:
</P
><UL
><LI
> Set hasTooltip and connect to queryTooltip as before.
</LI
><LI
> Use widgetSetTooltipWindow to set a <TT
><A HREF="Graphics-UI-Gtk-Windows-Window.html#t%3AWindow"
>Window</A
></TT
> created by you as tooltip window.
</LI
><LI
> In the queryTooltip callback you can access your window using widgetGetTooltipWindow
 and manipulate as you wish. The semantics of the return value are exactly as before, return <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#v%3ATrue"
>True</A
></TT
>
 to show the window, <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#v%3AFalse"
>False</A
></TT
> to not show it.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="2"
><A NAME="2"
>Class Hierarchy
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="doc"
><PRE
>
 | <TT
><A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObject"
>GObject</A
></TT
>
 | +----Tooltip
</PRE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="3"
><A NAME="3"
>Types
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><SPAN CLASS="keyword"
>data</SPAN
>  <A NAME="t:Tooltip"
><A NAME="t%3ATooltip"
></A
></A
><B
>Tooltip</B
>  </TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Types.html#Tooltip"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:Tooltip')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:Tooltip" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Eq.html#t%3AEq"
>Eq</A
> <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltip"
>Tooltip</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Ord.html#t%3AOrd"
>Ord</A
> <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltip"
>Tooltip</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass"
>GObjectClass</A
> <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltip"
>Tooltip</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltipClass"
>TooltipClass</A
> <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltip"
>Tooltip</A
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><SPAN CLASS="keyword"
>class</SPAN
> <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass"
>GObjectClass</A
> o =&gt; <A NAME="t:TooltipClass"
><A NAME="t%3ATooltipClass"
></A
></A
><B
>TooltipClass</B
> o </TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Types.html#TooltipClass"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:TooltipClass')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:TooltipClass" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltipClass"
>TooltipClass</A
> <A HREF="Graphics-UI-Gtk-Display-StatusIcon.html#t%3AStatusIcon"
>StatusIcon</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltipClass"
>TooltipClass</A
> <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltip"
>Tooltip</A
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:castToTooltip"
><A NAME="v%3AcastToTooltip"
></A
></A
><B
>castToTooltip</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass"
>GObjectClass</A
> obj =&gt; obj -&gt; <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltip"
>Tooltip</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Types.html#castToTooltip"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:toTooltip"
><A NAME="v%3AtoTooltip"
></A
></A
><B
>toTooltip</B
> :: <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltipClass"
>TooltipClass</A
> o =&gt; o -&gt; <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltip"
>Tooltip</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Types.html#toTooltip"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="4"
><A NAME="4"
>Methods
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:tooltipSetMarkup"
><A NAME="v%3AtooltipSetMarkup"
></A
></A
><B
>tooltipSetMarkup</B
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Misc-Tooltip.html#tooltipSetMarkup"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltipClass"
>TooltipClass</A
> self</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
>=&gt; self</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/pango-0.11.2/Graphics-Rendering-Pango-Enums.html#t%3AMarkup"
>Markup</A
></TD
><TD CLASS="rdoc"
><TT
>markup</TT
> - a markup string (see Pango markup format) or <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#v%3ANothing"
>Nothing</A
></TT
>
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="ndoc" COLSPAN="2"
>Sets the text of the tooltip to be <TT
>markup</TT
>, which is marked up with the
 Pango text markup language. If <TT
>markup</TT
> is <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#v%3ANothing"
>Nothing</A
></TT
>, the label will be hidden.
</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:tooltipSetText"
><A NAME="v%3AtooltipSetText"
></A
></A
><B
>tooltipSetText</B
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Misc-Tooltip.html#tooltipSetText"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltipClass"
>TooltipClass</A
> self</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
>=&gt; self</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
></TD
><TD CLASS="rdoc"
><TT
>text</TT
> - a text string or <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#v%3ANothing"
>Nothing</A
></TT
>
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="ndoc" COLSPAN="2"
>Sets the text of the tooltip to be <TT
>text</TT
>. If <TT
>text</TT
> is <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#v%3ANothing"
>Nothing</A
></TT
>
 the label will be hidden. See also <TT
><A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#v%3AtooltipSetMarkup"
>tooltipSetMarkup</A
></TT
>.
</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:tooltipSetIcon"
><A NAME="v%3AtooltipSetIcon"
></A
></A
><B
>tooltipSetIcon</B
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Misc-Tooltip.html#tooltipSetIcon"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltipClass"
>TooltipClass</A
> self</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
>=&gt; self</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="rdoc"
><TT
>pixbuf</TT
> - a <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TT
> or <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#v%3ANothing"
>Nothing</A
></TT
>
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="ndoc" COLSPAN="2"
>Sets the icon of the tooltip (which is in front of the text) to be
 <TT
>pixbuf</TT
>. If <TT
>pixbuf</TT
> is <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#v%3ANothing"
>Nothing</A
></TT
> the image will be hidden.
</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:tooltipSetIconFromStock"
><A NAME="v%3AtooltipSetIconFromStock"
></A
></A
><B
>tooltipSetIconFromStock</B
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Misc-Tooltip.html#tooltipSetIconFromStock"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltipClass"
>TooltipClass</A
> self</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
>=&gt; self</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
></TD
><TD CLASS="rdoc"
><TT
>id</TT
> a stock id, or <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#v%3ANothing"
>Nothing</A
></TT
>
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="Graphics-UI-Gtk-MenuComboToolbar-ToolItem.html#t%3AIconSize"
>IconSize</A
></TD
><TD CLASS="rdoc"
><TT
>size</TT
> a stock icon size
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="ndoc" COLSPAN="2"
>Sets the icon of the tooltip (which is in front of the text) to be the
 stock item indicated by <TT
>stockId</TT
> with the size indicated by <TT
>size</TT
>. If
 <TT
>stockId</TT
> is <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#v%3ANothing"
>Nothing</A
></TT
> the image will be hidden.
</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:tooltipSetIconFromIconName"
><A NAME="v%3AtooltipSetIconFromIconName"
></A
></A
><B
>tooltipSetIconFromIconName</B
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Misc-Tooltip.html#tooltipSetIconFromIconName"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltipClass"
>TooltipClass</A
> self</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
>=&gt; self</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
></TD
><TD CLASS="rdoc"
><TT
>iconName</TT
> an icon name, or <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#v%3ANothing"
>Nothing</A
></TT
>
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="Graphics-UI-Gtk-MenuComboToolbar-ToolItem.html#t%3AIconSize"
>IconSize</A
></TD
><TD CLASS="rdoc"
><TT
>size</TT
> a stock icon size
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="ndoc" COLSPAN="2"
><P
>Sets the icon of the tooltip (which is in front of the text) to be the
 icon indicated by <TT
>iconName</TT
> with the size indicated by <TT
>size</TT
>. If
 <TT
>iconName</TT
> is <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#v%3ANothing"
>Nothing</A
></TT
> the image will be hidden.
</P
><UL
><LI
> Available since Gtk+ version 2.14
</LI
></UL
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:tooltipSetCustom"
><A NAME="v%3AtooltipSetCustom"
></A
></A
><B
>tooltipSetCustom</B
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Misc-Tooltip.html#tooltipSetCustom"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: (<A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltipClass"
>TooltipClass</A
> self, <A HREF="Graphics-UI-Gtk-Abstract-Widget.html#t%3AWidgetClass"
>WidgetClass</A
> widget)</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
>=&gt; self</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> widget</TD
><TD CLASS="rdoc"
><TT
>customWidget</TT
> a <TT
><A HREF="Graphics-UI-Gtk-Abstract-Widget.html#t%3AWidget"
>Widget</A
></TT
>, or <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#v%3ANothing"
>Nothing</A
></TT
> to unset the old custom widget.
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="ndoc" COLSPAN="2"
>Replaces the widget packed into the tooltip with <TT
>customWidget</TT
>.
 <TT
>customWidget</TT
> does not get destroyed when the tooltip goes away. By default
 a box with a <TT
><A HREF="Graphics-UI-Gtk-Display-Image.html#t%3AImage"
>Image</A
></TT
> and <TT
><A HREF="Graphics-UI-Gtk-Display-Label.html#t%3ALabel"
>Label</A
></TT
> is embedded in the tooltip, which can be
 configured using <TT
><A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#v%3AtooltipSetMarkup"
>tooltipSetMarkup</A
></TT
> and <TT
><A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#v%3AtooltipSetIcon"
>tooltipSetIcon</A
></TT
>.
</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:tooltipTriggerTooltipQuery"
><A NAME="v%3AtooltipTriggerTooltipQuery"
></A
></A
><B
>tooltipTriggerTooltipQuery</B
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Misc-Tooltip.html#tooltipTriggerTooltipQuery"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: <A HREF="Graphics-UI-Gtk-Gdk-Display.html#t%3ADisplay"
>Display</A
></TD
><TD CLASS="rdoc"
><TT
>display</TT
> - a <TT
><A HREF="Graphics-UI-Gtk-Gdk-Display.html#t%3ADisplay"
>Display</A
></TT
>
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="ndoc" COLSPAN="2"
>Triggers a new tooltip query on <TT
>display</TT
>, in order to update the current
 visible tooltip, or to show/hide the current tooltip. This function is
 useful to call when, for example, the state of the widget changed by a key
 press.
</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:tooltipSetTipArea"
><A NAME="v%3AtooltipSetTipArea"
></A
></A
><B
>tooltipSetTipArea</B
> :: <A HREF="Graphics-UI-Gtk-Misc-Tooltip.html#t%3ATooltipClass"
>TooltipClass</A
> self =&gt; self -&gt; <A HREF="Graphics-UI-Gtk-Gdk-Events.html#t%3ARectangle"
>Rectangle</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Misc-Tooltip.html#tooltipSetTipArea"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Sets the area of the widget, where the contents of this tooltip apply, to
 be <TT
>rect</TT
> (in widget coordinates). This is especially useful for properly
 setting tooltips on <TT
><A HREF="Graphics-UI-Gtk-ModelView-TreeView.html#t%3ATreeView"
>TreeView</A
></TT
> rows and cells, <TT
><A HREF="Graphics-UI-Gtk-ModelView-IconView.html#t%3AIconView"
>IconView</A
></TT
>
</P
><P
>For setting tooltips on <TT
><A HREF="Graphics-UI-Gtk-ModelView-TreeView.html#t%3ATreeView"
>TreeView</A
></TT
>, please refer to the convenience
 functions for this: treeViewSetTooltipRow and treeViewSetTooltipCell.
</P
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="botbar"
>Produced by <A HREF="http://www.haskell.org/haddock/"
>Haddock</A
> version 2.6.1</TD
></TR
></TABLE
></BODY
></HTML
>