<!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.General.Clipboard</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-General-Clipboard.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-General-Clipboard.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.General.Clipboard</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" >Constants </A ></DT ><DT ><A HREF="#5" >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" >Storing data on clipboards </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%3AClipboard" >Clipboard</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 => <A HREF="#t%3AClipboardClass" >ClipboardClass</A > o </TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AcastToClipboard" >castToClipboard</A > :: <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass" >GObjectClass</A > obj => obj -> <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboard" >Clipboard</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AgTypeClipboard" >gTypeClipboard</A > :: <A HREF="Graphics-UI-Gtk-Abstract-Widget.html#t%3AGType" >GType</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtoClipboard" >toClipboard</A > :: <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > o => o -> <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboard" >Clipboard</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AselectionPrimary" >selectionPrimary</A > :: <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionTag" >SelectionTag</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AselectionSecondary" >selectionSecondary</A > :: <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionTag" >SelectionTag</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AselectionClipboard" >selectionClipboard</A > :: <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionTag" >SelectionTag</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AclipboardGet" >clipboardGet</A > :: <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionTag" >SelectionTag</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboard" >Clipboard</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AclipboardGetForDisplay" >clipboardGetForDisplay</A > :: <A HREF="Graphics-UI-Gtk-Gdk-Display.html#t%3ADisplay" >Display</A > -> <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionTag" >SelectionTag</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboard" >Clipboard</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AclipboardGetDisplay" >clipboardGetDisplay</A > :: <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self => self -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="Graphics-UI-Gtk-Gdk-Display.html#t%3ADisplay" >Display</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AclipboardSetWithData" >clipboardSetWithData</A > :: <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self => self -> [(<A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ATargetTag" >TargetTag</A >, <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3AInfoId" >InfoId</A >)] -> (<A HREF="Graphics-UI-Gtk-General-Selection.html#t%3AInfoId" >InfoId</A > -> <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionDataM" >SelectionDataM</A > <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29" >()</A >) -> <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 > -> <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/base-4.2.0.2/Data-Bool.html#t%3ABool" >Bool</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AclipboardSetText" >clipboardSetText</A > :: <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self => self -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString" >String</A > -> <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%3AclipboardSetImage" >clipboardSetImage</A > :: <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self => self -> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf" >Pixbuf</A > -> <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%3AclipboardRequestContents" >clipboardRequestContents</A > :: <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self => self -> <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ATargetTag" >TargetTag</A > -> <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionDataM" >SelectionDataM</A > <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29" >()</A > -> <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%3AclipboardRequestText" >clipboardRequestText</A > :: <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self => self -> (<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 > -> <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 >) -> <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%3AclipboardRequestImage" >clipboardRequestImage</A > :: <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self => self -> (<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 > -> <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 >) -> <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%3AclipboardRequestTargets" >clipboardRequestTargets</A > :: <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self => self -> (<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-General-Selection.html#t%3ATargetTag" >TargetTag</A >] -> <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 >) -> <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%3AclipboardRequestRichText" >clipboardRequestRichText</A > :: (<A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self, <A HREF="Graphics-UI-Gtk-Multiline-TextBuffer.html#t%3ATextBufferClass" >TextBufferClass</A > buffer) => self -> buffer -> (<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-General-Selection.html#t%3ATargetTag" >TargetTag</A >, <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString" >String</A >) -> <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 >) -> <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%3AclipboardSetCanStore" >clipboardSetCanStore</A > :: <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self => self -> <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-General-Selection.html#t%3ATargetTag" >TargetTag</A >, <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3AInfoId" >InfoId</A >)] -> <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%3AclipboardStore" >clipboardStore</A > :: <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self => self -> <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 >The <TT ><A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboard" >Clipboard</A ></TT > object represents a clipboard of data shared between different processes or between different widgets in the same process. Each clipboard is identified by a <TT ><A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionTag" >SelectionTag</A ></TT > which itself is an <TT ><A HREF="Graphics-UI-Gtk-General-Selection.html#t%3AAtom" >Atom</A ></TT >. The default clipboard corresponds to the <TT ><A HREF="Graphics-UI-Gtk-General-Clipboard.html#v%3AselectionClipboard" >selectionClipboard</A ></TT > tag; another commonly used clipboard is the <TT ><A HREF="Graphics-UI-Gtk-General-Clipboard.html#v%3AselectionPrimary" >selectionPrimary</A ></TT > tag, which, in X, traditionally contains the currently selected text. </P ><P >To support having a number of different formats on the clipboard at the same time, the clipboard mechanism allows providing callbacks instead of the actual data. When you set the contents of the clipboard, you can either supply the data directly (via functions like <TT ><A HREF="Graphics-UI-Gtk-General-Clipboard.html#v%3AclipboardSetText" >clipboardSetText</A ></TT >), or you can supply a callback to be called at a later time when the data is needed (via <TT ><A HREF="Graphics-UI-Gtk-General-Clipboard.html#v%3AclipboardSetWithData" >clipboardSetWithData</A ></TT >). Providing a callback also avoids having to make copies of the data when it is not needed. </P ><P >Setting clipboard data is done using <TT ><A HREF="Graphics-UI-Gtk-General-Clipboard.html#v%3AclipboardSetWithData" >clipboardSetWithData</A ></TT > and <TT >clipboardSetWithOwner</TT >. Both functions are quite similar; the choice between the two depends mostly on which is more convenient in a particular situation. The former is most useful when you want to have a blob of data with callbacks to convert it into the various data types that you advertise. When the <TT >clearFunc</TT > you provided is called, you simply free the data blob. The latter is more useful when the contents of clipboard reflect the internal state of a <TT ><A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObject" >GObject</A ></TT > (As an example, for the <TT ><A HREF="Graphics-UI-Gtk-General-Clipboard.html#v%3AselectionPrimary" >selectionPrimary</A ></TT > clipboard, when an entry widget provides the clipboard's contents the contents are simply the text within the selected region.) If the contents change, the entry widget can call <TT >clipboardSetWithOwner</TT > to update the timestamp for clipboard ownership, without having to worry about <TT >clearFunc</TT > being called. </P ><P >Requesting the data from the clipboard is essentially asynchronous. If the contents of the clipboard are provided within the same process, then a direct function call will be made to retrieve the data, but if they are provided by another process, then the data needs to be retrieved from the other process, which may take some time. To avoid blocking the user interface, the call to request the selection, <TT ><A HREF="Graphics-UI-Gtk-General-Clipboard.html#v%3AclipboardRequestContents" >clipboardRequestContents</A ></TT > takes a callback that will be called when the contents are received (or when the request fails.) If you don't want to deal with providing a separate callback, you can also use clipboardWaitForContents. What this does is run the GLib main loop recursively waiting for the contents. This can simplify the code flow, but you still have to be aware that other callbacks in your program can be called while this recursive mainloop is running. </P ><P >Along with the functions to get the clipboard contents as an arbitrary data chunk, there are also functions to retrieve it as text, <TT ><A HREF="Graphics-UI-Gtk-General-Clipboard.html#v%3AclipboardRequestText" >clipboardRequestText</A ></TT > and clipboardWaitForText. These functions take care of determining which formats are advertised by the clipboard provider, asking for the clipboard in the best available format and converting the its content. </P ></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 > | +----Clipboard </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:Clipboard" ><A NAME="t%3AClipboard" ></A ></A ><B >Clipboard</B > </TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#Clipboard" >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:Clipboard')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:Clipboard" 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-General-Clipboard.html#t%3AClipboard" >Clipboard</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-General-Clipboard.html#t%3AClipboard" >Clipboard</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-General-Clipboard.html#t%3AClipboard" >Clipboard</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboard" >Clipboard</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 => <A NAME="t:ClipboardClass" ><A NAME="t%3AClipboardClass" ></A ></A ><B >ClipboardClass</B > o </TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#ClipboardClass" >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:ClipboardClass')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:ClipboardClass" STYLE="display:block;" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboard" >Clipboard</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:castToClipboard" ><A NAME="v%3AcastToClipboard" ></A ></A ><B >castToClipboard</B > :: <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass" >GObjectClass</A > obj => obj -> <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboard" >Clipboard</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#castToClipboard" >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:gTypeClipboard" ><A NAME="v%3AgTypeClipboard" ></A ></A ><B >gTypeClipboard</B > :: <A HREF="Graphics-UI-Gtk-Abstract-Widget.html#t%3AGType" >GType</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#gTypeClipboard" >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:toClipboard" ><A NAME="v%3AtoClipboard" ></A ></A ><B >toClipboard</B > :: <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > o => o -> <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboard" >Clipboard</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#toClipboard" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" ><A NAME="4" ><A NAME="4" >Constants </A ></A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:selectionPrimary" ><A NAME="v%3AselectionPrimary" ></A ></A ><B >selectionPrimary</B > :: <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionTag" >SelectionTag</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-Structs.html#selectionPrimary" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >The primary selection (the currently highlighted text in X11 that can in many applications be pasted using the middle button). </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:selectionSecondary" ><A NAME="v%3AselectionSecondary" ></A ></A ><B >selectionSecondary</B > :: <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionTag" >SelectionTag</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-Structs.html#selectionSecondary" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >The secondary selection. Rarely used. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:selectionClipboard" ><A NAME="v%3AselectionClipboard" ></A ></A ><B >selectionClipboard</B > :: <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionTag" >SelectionTag</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-Structs.html#selectionClipboard" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >The modern clipboard that is filled by copy or cut commands. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" ><A NAME="5" ><A NAME="5" >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:clipboardGet" ><A NAME="v%3AclipboardGet" ></A ></A ><B >clipboardGet</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-Clipboard.html#clipboardGet" >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-General-Selection.html#t%3ASelectionTag" >SelectionTag</A ></TD ><TD CLASS="rdoc" ><TT >selection</TT > - a <TT ><A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionTag" >SelectionTag</A ></TT > which identifies the clipboard to use. </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboard" >Clipboard</A ></TD ><TD CLASS="rdoc" >returns the appropriate clipboard object. If no clipboard already exists, a new one will be created. Once a clipboard object has been created, it is persistent. </TD ></TR ><TR ><TD CLASS="ndoc" COLSPAN="2" >Returns the clipboard object for the given selection. See <TT ><A HREF="Graphics-UI-Gtk-General-Clipboard.html#v%3AclipboardGetForDisplay" >clipboardGetForDisplay</A ></TT > for complete details. </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:clipboardGetForDisplay" ><A NAME="v%3AclipboardGetForDisplay" ></A ></A ><B >clipboardGetForDisplay</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-Clipboard.html#clipboardGetForDisplay" >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 > - the display for which the clipboard is to be retrieved or created </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionTag" >SelectionTag</A ></TD ><TD CLASS="rdoc" ><TT >selection</TT > - a <TT ><A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionTag" >SelectionTag</A ></TT > which identifies the clipboard to use. </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboard" >Clipboard</A ></TD ><TD CLASS="rdoc" >returns the appropriate clipboard object. If no clipboard already exists, a new one will be created. Once a clipboard object has been created, it is persistent. </TD ></TR ><TR ><TD CLASS="ndoc" COLSPAN="2" ><P >Returns the clipboard object for the given selection. Cut/copy/paste menu items and keyboard shortcuts should use the default clipboard, returned by passing <TT ><A HREF="Graphics-UI-Gtk-General-Clipboard.html#v%3AselectionClipboard" >selectionClipboard</A ></TT > for <TT >selection</TT >. The currently-selected object or text should be provided on the clipboard identified by <TT ><A HREF="Graphics-UI-Gtk-General-Clipboard.html#v%3AselectionPrimary" >selectionPrimary</A ></TT >. Cut/copy/paste menu items conceptually copy the contents of the <TT ><A HREF="Graphics-UI-Gtk-General-Clipboard.html#v%3AselectionPrimary" >selectionPrimary</A ></TT > clipboard to the default clipboard, i.e. they copy the selection to what the user sees as the clipboard. </P ><P >See <http: discussion of the <TT ><A HREF="Graphics-UI-Gtk-General-Clipboard.html#v%3AselectionClipboard" >selectionClipboard</A ></TT > vs. <TT ><A HREF="Graphics-UI-Gtk-General-Clipboard.html#v%3AselectionPrimary" >selectionPrimary</A ></TT > selections under the X window system. On Win32 the <TT ><A HREF="Graphics-UI-Gtk-General-Clipboard.html#v%3AselectionPrimary" >selectionPrimary</A ></TT > clipboard is essentially ignored. </P ><P >It's possible to have arbitrary named clipboards; if you do invent new clipboards, you should prefix the selection name with an underscore (because the ICCCM requires that nonstandard atoms are underscore-prefixed), and namespace it as well. For example, if your application called "Foo" has a special-purpose clipboard, you could create it using Graphics.UI.Gtk.General.Selection.atomNew "_FOO_SPECIAL_CLIPBOARD". </P ><UL ><LI > Available since Gtk+ version 2.2 </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:clipboardGetDisplay" ><A NAME="v%3AclipboardGetDisplay" ></A ></A ><B >clipboardGetDisplay</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-Clipboard.html#clipboardGetDisplay" >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-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >=> self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="Graphics-UI-Gtk-Gdk-Display.html#t%3ADisplay" >Display</A ></TD ><TD CLASS="rdoc" >returns the <TT ><A HREF="Graphics-UI-Gtk-Gdk-Display.html#t%3ADisplay" >Display</A ></TT > associated with <TT >clipboard</TT > </TD ></TR ><TR ><TD CLASS="ndoc" COLSPAN="2" ><P >Gets the <TT ><A HREF="Graphics-UI-Gtk-Gdk-Display.html#t%3ADisplay" >Display</A ></TT > associated with <TT >clipboard</TT > </P ><UL ><LI > Available since Gtk+ version 2.2 </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:clipboardSetWithData" ><A NAME="v%3AclipboardSetWithData" ></A ></A ><B >clipboardSetWithData</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-Clipboard.html#clipboardSetWithData" >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-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >=> self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >-> [(<A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ATargetTag" >TargetTag</A >, <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3AInfoId" >InfoId</A >)]</TD ><TD CLASS="rdoc" ><TT >targets</TT > - a list containing information about the available forms for the clipboard data </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3AInfoId" >InfoId</A > -> <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionDataM" >SelectionDataM</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" ><TT >getFunc</TT > - function to call to get the actual clipboard data, should call selectionDataSet. </TD ></TR ><TR ><TD CLASS="arg" >-> <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" ><TT >clearFunc</TT > - when the clipboard contents are set again, this function will be called, and <TT >getFunc</TT > will not be subsequently called. </TD ></TR ><TR ><TD CLASS="arg" >-> <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/base-4.2.0.2/Data-Bool.html#t%3ABool" >Bool</A ></TD ><TD CLASS="rdoc" >returns <TT >True</TT > if setting the clipboard data succeeded. </TD ></TR ><TR ><TD CLASS="ndoc" COLSPAN="2" >Virtually sets the contents of the specified clipboard by providing a list of supported formats for the clipboard data and a function to call to get the actual data when it is requested. </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:clipboardSetText" ><A NAME="v%3AclipboardSetText" ></A ></A ><B >clipboardSetText</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-Clipboard.html#clipboardSetText" >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-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >=> self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >-> <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 > - the text to be set as clipboard content </TD ></TR ><TR ><TD CLASS="arg" >-> <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 contents of the clipboard to the given UTF-8 string. Gtk+ will make a copy of the text and take responsibility for responding for requests for the text, and for converting the text into the requested format. </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:clipboardSetImage" ><A NAME="v%3AclipboardSetImage" ></A ></A ><B >clipboardSetImage</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-Clipboard.html#clipboardSetImage" >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-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >=> self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >-> <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 > </TD ></TR ><TR ><TD CLASS="arg" >-> <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 contents of the clipboard to the given <TT ><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf" >Pixbuf</A ></TT >. Gtk+ will take responsibility for responding for requests for the image, and for converting the image into the requested format. </P ><UL ><LI > Available since Gtk+ version 2.6 </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:clipboardRequestContents" ><A NAME="v%3AclipboardRequestContents" ></A ></A ><B >clipboardRequestContents</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-Clipboard.html#clipboardRequestContents" >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-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >=> self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ATargetTag" >TargetTag</A ></TD ><TD CLASS="rdoc" ><TT >target</TT > - an atom representing the form into which the clipboard owner should convert the selection. </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionDataM" >SelectionDataM</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" ><TT >callback</TT > - A function to call when the results are received (or the retrieval fails). If the retrieval fails, selectionDataIsValid returns <TT >False</TT >. </TD ></TR ><TR ><TD CLASS="arg" >-> <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" >Requests the contents of clipboard as the given target. When the results of the result are later received the supplied callback will be called. </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:clipboardRequestText" ><A NAME="v%3AclipboardRequestText" ></A ></A ><B >clipboardRequestText</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-Clipboard.html#clipboardRequestText" >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-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >=> self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >-> <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 > -> <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" ><TT >callback</TT > - a function to call when the text is received, or the retrieval fails. (It will always be called one way or the other.) </TD ></TR ><TR ><TD CLASS="arg" >-> <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 >Requests the contents of the clipboard as text. When the text is later received, it will be converted if it is stored in a different character set if necessary, and <TT >callback</TT > will be called. </P ><P >The <TT >text</TT > parameter to <TT >callback</TT > will contain the resulting text if the request succeeded, or <TT >Nothing</TT > if it failed. This could happen for various reasons, in particular if the clipboard was empty or if the contents of the clipboard could not be converted into text form. </P ></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:clipboardRequestImage" ><A NAME="v%3AclipboardRequestImage" ></A ></A ><B >clipboardRequestImage</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-Clipboard.html#clipboardRequestImage" >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-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >=> self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >-> <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 > -> <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" ><TT >callback</TT > - a function to call when the image is received, or the retrieval fails. (It will always be called one way or the other.) </TD ></TR ><TR ><TD CLASS="arg" >-> <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 >Requests the contents of the clipboard as image. When the image is later received, it will be converted to a <TT ><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf" >Pixbuf</A ></TT >, and <TT >callback</TT > will be called. </P ><P >The <TT >pixbuf</TT > parameter to <TT >callback</TT > will contain the resulting <TT ><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf" >Pixbuf</A ></TT > if the request succeeded, or <TT >Nothing</TT > if it failed. This could happen for various reasons, in particular if the clipboard was empty or if the contents of the clipboard could not be converted into an image. </P ><UL ><LI > Available since Gtk+ version 2.6 </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:clipboardRequestTargets" ><A NAME="v%3AclipboardRequestTargets" ></A ></A ><B >clipboardRequestTargets</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-Clipboard.html#clipboardRequestTargets" >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-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >=> self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >-> <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-General-Selection.html#t%3ATargetTag" >TargetTag</A >] -> <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" ><TT >callback</TT > - a function to call when the targets are received, or the retrieval fails. (It will always be called one way or the other.) </TD ></TR ><TR ><TD CLASS="arg" >-> <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 >Requests the contents of the clipboard as list of supported targets. When the list is later received, <TT >callback</TT > will be called. </P ><P >The <TT >targets</TT > parameter to <TT >callback</TT > will contain the resulting targets if the request succeeded, or <TT >Nothing</TT > if it failed. </P ><UL ><LI > Available since Gtk+ version 2.4 </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:clipboardRequestRichText" ><A NAME="v%3AclipboardRequestRichText" ></A ></A ><B >clipboardRequestRichText</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-Clipboard.html#clipboardRequestRichText" >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-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self, <A HREF="Graphics-UI-Gtk-Multiline-TextBuffer.html#t%3ATextBufferClass" >TextBufferClass</A > buffer)</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >=> self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >-> buffer</TD ><TD CLASS="rdoc" ><TT >buffer</TT > - a <TT ><A HREF="Graphics-UI-Gtk-Multiline-TextBuffer.html#t%3ATextBuffer" >TextBuffer</A ></TT > that determines the supported rich text formats </TD ></TR ><TR ><TD CLASS="arg" >-> <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-General-Selection.html#t%3ATargetTag" >TargetTag</A >, <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString" >String</A >) -> <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" ><TT >callback</TT > - a function to call when the text is received, or the retrieval fails. (It will always be called one way or the other.) </TD ></TR ><TR ><TD CLASS="arg" >-> <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 >Requests the contents of the clipboard as rich text. When the rich text is later received, <TT >callback</TT > will be called. </P ><P >The <TT >text</TT > parameter to <TT >callback</TT > will contain the resulting rich text if the request succeeded, or <TT >Nothing</TT > if it failed. This function can fail for various reasons, in particular if the clipboard was empty or if the contents of the clipboard could not be converted into rich text form. </P ><UL ><LI > Available since Gtk+ version 2.10 </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:clipboardSetCanStore" ><A NAME="v%3AclipboardSetCanStore" ></A ></A ><B >clipboardSetCanStore</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-Clipboard.html#clipboardSetCanStore" >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-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >=> self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >-> <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-General-Selection.html#t%3ATargetTag" >TargetTag</A >, <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3AInfoId" >InfoId</A >)]</TD ><TD CLASS="rdoc" ><TT >targets</TT > - list containing information about which forms should be stored or <TT >Nothing</TT > to indicate that all forms should be stored. </TD ></TR ><TR ><TD CLASS="arg" >-> <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 >Hints that the clipboard data should be stored somewhere when the application exits or when <TT ><A HREF="Graphics-UI-Gtk-General-Clipboard.html#v%3AclipboardStore" >clipboardStore</A ></TT > is called. </P ><P >This value is reset when the clipboard owner changes. Where the clipboard data is stored is platform dependent, see displayStoreClipboard for more information. </P ><UL ><LI > Available since Gtk+ version 2.6 </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:clipboardStore" ><A NAME="v%3AclipboardStore" ></A ></A ><B >clipboardStore</B > :: <A HREF="Graphics-UI-Gtk-General-Clipboard.html#t%3AClipboardClass" >ClipboardClass</A > self => self -> <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-General-Clipboard.html#clipboardStore" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Stores the current clipboard data somewhere so that it will stay around after the application has quit. </P ><UL ><LI > Available since Gtk+ version 2.6 </LI ></UL ></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 >