Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > e0521f28751d07a87e3a3d6c7d15a1ac > files > 1001

libgtkmm2.0_1-devel-2.2.1-2mdk.ppc.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Gtk::Clipboard class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
<table border="0" width="100%">
<tr>
    <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td>
    <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td>
</tr>
</table>
<center>
  <a class="qindex" href="../../index.html">Main Page</a> &nbsp;
  <a href="group__Widgets.html">Widgets</a> &nbsp;
  <a class="qindex" href="namespaces.html"> Namespaces</a> &nbsp;
  <a href="../../tutorial/html/index.html"> Book</a> &nbsp;
</center>
<hr width="100%"/>

<!-- Generated by Doxygen 1.3-rc1 -->
<h1>Gtk::Clipboard Class Reference</h1>Inheritance diagram for Gtk::Clipboard:<p><center><img src="classGtk_1_1Clipboard__inherit__graph.png" border="0" usemap="#Gtk_1_1Clipboard__inherit__map" alt="Inheritance graph"></center>
<map name="Gtk_1_1Clipboard__inherit__map">
<area href="classGlib_1_1Object.html" shape="rect" coords="21,86,101,105" alt="">
<area href="classGlib_1_1ObjectBase.html" shape="rect" coords="7,17,116,36" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classGtk_1_1Clipboard-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Types</h2></td></tr>
<tr><td nowrap align=right valign=top>typedef SigC::Slot2&lt; void,<br>
 <a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>&amp;, guint &gt;&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#s0">SlotGet</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>e.g.: void on_get(Gtk::SelectionData&amp; selection_data, guint info);</em> <a href="#s0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>typedef SigC::Slot0&lt;void&gt;&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#s1">SlotClear</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>e.g.: void on_clear();</em> <a href="#s1"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>typedef SigC::Slot1&lt; void,<br>
 const <a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>&amp; &gt;&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#s2">SlotReceived</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>e.g.: void on_received(const SelectionData&amp; selection_data);</em> <a href="#s2"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>typedef SigC::Slot1&lt; void,<br>
 const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp; &gt;&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#s3">SlotTextReceived</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>e.g.: void on_textreceived(const Glib::ustring&amp; text);</em> <a href="#s3"></a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>virtual&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#a0">~Clipboard</a> ()</td></tr>
<tr><td nowrap align=right valign=top>GtkClipboard*&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#a1">gobj</a> ()</td></tr>
<tr><td nowrap align=right valign=top>const GtkClipboard*&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#a2">gobj</a> () const</td></tr>
<tr><td nowrap align=right valign=top>GtkClipboard*&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#a3">gobj_copy</a> ()</td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Display.html">Gdk::Display</a>&gt;&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#a4">get_display</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the <a class="el" href="classGdk_1_1Display.html">Gdk::Display</a> associated with <em>clipboard.</em> </em> <a href="#a4"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classGdk_1_1Display.html">Gdk::Display</a>&gt;&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#a5">get_display</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the <a class="el" href="classGdk_1_1Display.html">Gdk::Display</a> associated with <em>clipboard.</em> </em> <a href="#a5"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#a6">set</a> (const <a class="el" href="classGlib_1_1ArrayHandle.html">ArrayHandle_TargetEntry</a>&amp; targets, const <a class="el" href="classGtk_1_1Clipboard.html#s0">SlotGet</a>&amp; slot_get, const <a class="el" href="classGtk_1_1Clipboard.html#s1">SlotClear</a>&amp; slot_clear)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>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.</em> <a href="#a6"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGlib_1_1Object.html">Glib::Object</a>&gt;&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#a7">get_owner</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>If the clipboard contents callbacks were set with gtk_clipboard_set_with_owner(), and the gtk_clipboard_set_with_data() or gtk_clipboard_clear() has not subsequently called, returns the owner set by gtk_clipboard_set_with_owner().</em> <a href="#a7"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classGlib_1_1Object.html">Glib::Object</a>&gt;&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#a8">get_owner</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>If the clipboard contents callbacks were set with gtk_clipboard_set_with_owner(), and the gtk_clipboard_set_with_data() or gtk_clipboard_clear() has not subsequently called, returns the owner set by gtk_clipboard_set_with_owner().</em> <a href="#a8"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#a9">clear</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Clears the contents of the clipboard.</em> <a href="#a9"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#a10">set_text</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp; text)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the contents of the clipboard to the given UTF-8 string.</em> <a href="#a10"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#a11">request_contents</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp; target, const <a class="el" href="classGtk_1_1Clipboard.html#s2">SlotReceived</a>&amp; slot)</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#a12">request_targets</a> (const <a class="el" href="classGtk_1_1Clipboard.html#s2">SlotReceived</a>&amp; slot)</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#a13">request_text</a> (const <a class="el" href="classGtk_1_1Clipboard.html#s3">SlotTextReceived</a>&amp; slot)</td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#a14">wait_for_contents</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp; target) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Requests the contents of the clipboard using the given target.</em> <a href="#a14"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#a15">wait_for_text</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Requests the contents of the clipboard as text and converts the result to UTF-8 if necessary.</em> <a href="#a15"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#a16">wait_is_text_available</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Test to see if there is text available to be pasted This is done by requesting the TARGETS atom and checking if it contains any of the names: STRING, TEXT, COMPOUND_TEXT, UTF8_STRING.</em> <a href="#a16"></a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;Clipboard&gt;&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#d0">get</a> (GdkAtom selection=GDK_SELECTION_CLIPBOARD)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Returns the clipboard object for the given selection.</em> <a href="#d0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;Clipboard&gt;&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#d1">get_for_display</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Display.html">Gdk::Display</a>&gt;&amp; display, GdkAtom selection=GDK_SELECTION_CLIPBOARD)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Returns the clipboard object for the given selection.</em> <a href="#d1"></a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Related Functions</h2></td></tr>
<tr><td colspan=2>(Note that these are not member functions.)<br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;Gtk::Clipboard&gt;&nbsp;</td><td valign=bottom><a class="el" href="classGtk_1_1Clipboard.html#k0">wrap</a> (GtkClipboard* object, bool take_copy=false)</td></tr>
</table>
<hr><h2>Member Typedef Documentation</h2>
<a name="s1" doxytag="Gtk::Clipboard::SlotClear"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> typedef SigC::Slot0&lt;void&gt; Gtk::Clipboard::SlotClear
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
e.g.: void on_clear();
<p>
    </td>
  </tr>
</table>
<a name="s0" doxytag="Gtk::Clipboard::SlotGet"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> typedef SigC::Slot2&lt;void, <a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>&amp;, guint&gt; Gtk::Clipboard::SlotGet
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
e.g.: void on_get(Gtk::SelectionData&amp; selection_data, guint info);
<p>
    </td>
  </tr>
</table>
<a name="s2" doxytag="Gtk::Clipboard::SlotReceived"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> typedef SigC::Slot1&lt;void, const <a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>&amp;&gt; Gtk::Clipboard::SlotReceived
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
e.g.: void on_received(const SelectionData&amp; selection_data);
<p>
    </td>
  </tr>
</table>
<a name="s3" doxytag="Gtk::Clipboard::SlotTextReceived"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> typedef SigC::Slot1&lt;void, const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp;&gt; Gtk::Clipboard::SlotTextReceived
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
e.g.: void on_textreceived(const Glib::ustring&amp; text);
<p>
    </td>
  </tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="Gtk::Clipboard::~Clipboard"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> virtual Gtk::Clipboard::~Clipboard </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a9" doxytag="Gtk::Clipboard::clear"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Gtk::Clipboard::clear </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Clears the contents of the clipboard.
<p>
Generally this should only be called between the time you call gtk_clipboard_set_with_owner() or gtk_clipboard_set_with_data(), and when the <em>clear_func</em> you supplied is called. Otherwise, the clipboard may be owned by someone else.     </td>
  </tr>
</table>
<a name="d0" doxytag="Gtk::Clipboard::get"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;Clipboard&gt; Gtk::Clipboard::get </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">GdkAtom&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>selection</em> = GDK_SELECTION_CLIPBOARD          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns the clipboard object for the given selection.
<p>
See gtk_clipboard_get_for_display() for complete details. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>selection</em>&nbsp;</td><td>A Gdk::Atom which identifies the clipboard to use. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>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 for all time and cannot be freed. </dd></dl>
    </td>
  </tr>
</table>
<a name="a5" doxytag="Gtk::Clipboard::get_display"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classGdk_1_1Display.html">Gdk::Display</a>&gt; Gtk::Clipboard::get_display </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the <a class="el" href="classGdk_1_1Display.html">Gdk::Display</a> associated with <em>clipboard.</em> 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGdk_1_1Display.html">Gdk::Display</a> associated with <em>clipboard</em> </dd></dl>
Since: 2.2.     </td>
  </tr>
</table>
<a name="a4" doxytag="Gtk::Clipboard::get_display"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Display.html">Gdk::Display</a>&gt; Gtk::Clipboard::get_display </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the <a class="el" href="classGdk_1_1Display.html">Gdk::Display</a> associated with <em>clipboard.</em> 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGdk_1_1Display.html">Gdk::Display</a> associated with <em>clipboard</em> </dd></dl>
Since: 2.2.     </td>
  </tr>
</table>
<a name="d1" doxytag="Gtk::Clipboard::get_for_display"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;Clipboard&gt; Gtk::Clipboard::get_for_display </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Display.html">Gdk::Display</a>&gt;&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>display</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>GdkAtom&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>selection</em> = GDK_SELECTION_CLIPBOARD</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns the clipboard object for the given selection.
<p>
Cut/copy/paste menu items and keyboard shortcuts should use the default clipboard, returned by passing Gdk::SELECTION_CLIPBOARD for <em>selection</em> . (Gdk::NONE is supported as a synonym for GDK_SELECTION_CLIPBOARD for backwards compatibility reasons.) The currently-selected object or text should be provided on the clipboard identified by Gdk::SELECTION_PRIMARY. Cut/copy/paste menu items conceptually copy the contents of the Gdk::SELECTION_PRIMARY clipboard to the default clipboard, i.e. they copy the selection to what the user sees as the clipboard.
<p>
(Passing Gdk::NONE is the same as using <code>gdk_atom_intern ("CLIPBOARD", <code>false</code>)</code>. See
<p>
<a href="http://www.freedesktop.org/standards/clipboards.txt">http://www.freedesktop.org/standards/clipboards.txt</a> for a detailed discussion of the "CLIPBOARD" vs. "PRIMARY" selections under the X window system. On Win32 the Gdk::SELECTION_PRIMARY clipboard is essentially ignored.)
<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 might call it "_FOO_SPECIAL_CLIPBOARD". <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>display</em>&nbsp;</td><td>The display for which the clipboard is to be retrieved or created. </td></tr>
    <tr><td valign=top><em>selection</em>&nbsp;</td><td>A Gdk::Atom which identifies the clipboard to use. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>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 for all time and cannot be freed.</dd></dl>
Since: 2.2.     </td>
  </tr>
</table>
<a name="a8" doxytag="Gtk::Clipboard::get_owner"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classGlib_1_1Object.html">Glib::Object</a>&gt; Gtk::Clipboard::get_owner </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
If the clipboard contents callbacks were set with gtk_clipboard_set_with_owner(), and the gtk_clipboard_set_with_data() or gtk_clipboard_clear() has not subsequently called, returns the owner set by gtk_clipboard_set_with_owner().
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The owner of the clipboard, if any; otherwise <code>0</code>. </dd></dl>
    </td>
  </tr>
</table>
<a name="a7" doxytag="Gtk::Clipboard::get_owner"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGlib_1_1Object.html">Glib::Object</a>&gt; Gtk::Clipboard::get_owner </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
If the clipboard contents callbacks were set with gtk_clipboard_set_with_owner(), and the gtk_clipboard_set_with_data() or gtk_clipboard_clear() has not subsequently called, returns the owner set by gtk_clipboard_set_with_owner().
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The owner of the clipboard, if any; otherwise <code>0</code>. </dd></dl>
    </td>
  </tr>
</table>
<a name="a2" doxytag="Gtk::Clipboard::gobj"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const GtkClipboard* Gtk::Clipboard::gobj </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Reimplemented from <a class="el" href="classGlib_1_1ObjectBase.html#a3">Glib::ObjectBase</a>.    </td>
  </tr>
</table>
<a name="a1" doxytag="Gtk::Clipboard::gobj"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GtkClipboard* Gtk::Clipboard::gobj </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [inline]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Reimplemented from <a class="el" href="classGlib_1_1ObjectBase.html#a2">Glib::ObjectBase</a>.    </td>
  </tr>
</table>
<a name="a3" doxytag="Gtk::Clipboard::gobj_copy"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GtkClipboard* Gtk::Clipboard::gobj_copy </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="a11" doxytag="Gtk::Clipboard::request_contents"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Gtk::Clipboard::request_contents </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>target</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="classGtk_1_1Clipboard.html#s2">SlotReceived</a>&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>slot</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="a12" doxytag="Gtk::Clipboard::request_targets"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Gtk::Clipboard::request_targets </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGtk_1_1Clipboard.html#s2">SlotReceived</a>&amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>slot</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="a13" doxytag="Gtk::Clipboard::request_text"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Gtk::Clipboard::request_text </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGtk_1_1Clipboard.html#s3">SlotTextReceived</a>&amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>slot</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="a6" doxytag="Gtk::Clipboard::set"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool Gtk::Clipboard::set </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGlib_1_1ArrayHandle.html">ArrayHandle_TargetEntry</a>&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>targets</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="classGtk_1_1Clipboard.html#s0">SlotGet</a>&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>slot_get</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="classGtk_1_1Clipboard.html#s1">SlotClear</a>&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>slot_clear</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
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.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>targets</em>&nbsp;</td><td>Information about the available forms for the clipboard data. </td></tr>
    <tr><td valign=top><em>slot_get</em>&nbsp;</td><td>method to call to get the actual clipboard data. </td></tr>
    <tr><td valign=top><em>slot_clear</em>&nbsp;</td><td>When the clipboard contents are set again, this method will be called, and slot_get will not be subsequently called.</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>true if setting the clipboard data succeeded. If setting the clipboard data failed then the provided callback methods will be ignored. </dd></dl>
    </td>
  </tr>
</table>
<a name="a10" doxytag="Gtk::Clipboard::set_text"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Gtk::Clipboard::set_text </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>text</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the contents of the clipboard to the given UTF-8 string.
<p>
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.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>text</em>&nbsp;</td><td>A UTF-8 string. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a name="a14" doxytag="Gtk::Clipboard::wait_for_contents"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a> Gtk::Clipboard::wait_for_contents </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>target</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Requests the contents of the clipboard using the given target.
<p>
This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>target</em>&nbsp;</td><td>The form into which the clipboard owner should convert the selection.</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A GtkSelectionData object, which will be invalid if retrieving the given target failed. </dd></dl>
    </td>
  </tr>
</table>
<a name="a15" doxytag="Gtk::Clipboard::wait_for_text"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a> Gtk::Clipboard::wait_for_text </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Requests the contents of the clipboard as text and converts the result to UTF-8 if necessary.
<p>
This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait. <dl compact><dt><b>Returns:</b></dt><dd>A newly-allocated UTF-8 string which must be freed with Glib::free(), or <code>0</code> if retrieving the selection data 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.). </dd></dl>
    </td>
  </tr>
</table>
<a name="a16" doxytag="Gtk::Clipboard::wait_is_text_available"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool Gtk::Clipboard::wait_is_text_available </td>
          <td class="md" valign="top">(</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Test to see if there is text available to be pasted This is done by requesting the TARGETS atom and checking if it contains any of the names: STRING, TEXT, COMPOUND_TEXT, UTF8_STRING.
<p>
This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait.
<p>
This function is a little faster than calling gtk_clipboard_wait_for_text() since it doesn't need to retrieve the actual text. <dl compact><dt><b>Returns:</b></dt><dd><code>true</code> is there is text available, <code>false</code> otherwise. </dd></dl>
    </td>
  </tr>
</table>
<hr><h2>Friends And Related Function Documentation</h2>
<a name="k0" doxytag="Gtk::Clipboard::wrap"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;Gtk::Clipboard&gt; wrap </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">GtkClipboard*&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>object</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>take_copy</em> = false</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [related]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="clipboard_8h.html">clipboard.h</a></ul>
<hr><address><small>
Generated for gtkmm by <a href="http://www.doxygen.org/index.html">
Doxygen</a> 1.3-rc1 &copy;&nbsp;1997-2001</small></address>
</body>
</html>