1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
4
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5
<title>gtkmm: Gtk::SelectionData Class Reference</title>
6
<link href="tabs.css" rel="stylesheet" type="text/css"/>
7
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
10
<!-- Generated by Doxygen 1.7.3 -->
13
<table cellspacing="0" cellpadding="0">
15
<tr style="height: 56px;">
16
<td style="padding-left: 0.5em;">
17
<div id="projectname">gtkmm <span id="projectnumber">2.24.2</span></div>
23
<div id="navrow1" class="tabs">
25
<li><a href="index.html"><span>Main Page</span></a></li>
26
<li><a href="pages.html"><span>Related Pages</span></a></li>
27
<li><a href="modules.html"><span>Modules</span></a></li>
28
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
29
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
32
<div id="navrow2" class="tabs2">
34
<li><a href="annotated.html"><span>Class List</span></a></li>
35
<li><a href="classes.html"><span>Class Index</span></a></li>
36
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
37
<li><a href="functions.html"><span>Class Members</span></a></li>
40
<div id="nav-path" class="navpath">
42
<li class="navelem"><a class="el" href="namespaceGtk.html">Gtk</a> </li>
43
<li class="navelem"><a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a> </li>
49
<a href="#pub-methods">Public Member Functions</a> |
50
<a href="#pro-attribs">Protected Attributes</a> |
51
<a href="#related">Related Functions</a> </div>
52
<div class="headertitle">
53
<h1>Gtk::SelectionData Class Reference</h1> </div>
55
<div class="contents">
56
<!-- doxytag: class="Gtk::SelectionData" -->
57
<p><a href="classGtk_1_1SelectionData-members.html">List of all members.</a></p>
58
<table class="memberdecls">
59
<tr><td colspan="2"><h2><a name="pub-methods"></a>
60
Public Member Functions</h2></td></tr>
61
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a960d5979b57c7a2a9d025b4c3bdce3d4">SelectionData</a> ()</td></tr>
62
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a737d81c0ec50c493a362851153fb37d0">SelectionData</a> (GtkSelectionData* gobject, bool make_a_copy=true)</td></tr>
63
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a38e56cf805c11aa747c010f4f3aaf3df">SelectionData</a> (const <a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>& other)</td></tr>
64
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>& </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a3f4a823c42ea8380d0b70c209b62e979">operator=</a> (const <a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>& other)</td></tr>
65
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a6fc29f571a31fa02a34bfba074745637">~SelectionData</a> ()</td></tr>
66
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a4b164ee2221952c3117064436954c618">swap</a> (<a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>& other)</td></tr>
67
<tr><td class="memItemLeft" align="right" valign="top">GtkSelectionData* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a64da01e677cb9937a08d5eee606374f1">gobj</a> ()</td></tr>
68
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. <a href="#a64da01e677cb9937a08d5eee606374f1"></a><br/></td></tr>
69
<tr><td class="memItemLeft" align="right" valign="top">const GtkSelectionData* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a61975208c3a824d985a876d76b82791d">gobj</a> () const </td></tr>
70
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. <a href="#a61975208c3a824d985a876d76b82791d"></a><br/></td></tr>
71
<tr><td class="memItemLeft" align="right" valign="top">GtkSelectionData* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a553aea8a0ef83b67096e7ed26ea5d785">gobj_copy</a> () const </td></tr>
72
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. <a href="#a553aea8a0ef83b67096e7ed26ea5d785"></a><br/></td></tr>
73
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#aa5d6c006f1e575808bb64c3a1724eb87">set</a> (int format, const guint8* data, int length)</td></tr>
74
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a3f34e9f6ec1986cd4c299c89585d7926">set</a> (const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01591.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01565.html#ga79d96b6335c46a5a2a7386970a91cd9b">type</a>, int format, const guint8* data, int length)</td></tr>
75
<tr><td class="mdescLeft"> </td><td class="mdescRight">Assign a memory block of raw data. <a href="#a3f34e9f6ec1986cd4c299c89585d7926"></a><br/></td></tr>
76
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a1464571fb61f96ac66f15731e8214091">set</a> (const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01591.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01565.html#ga79d96b6335c46a5a2a7386970a91cd9b">type</a>, const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01591.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>& data)</td></tr>
77
<tr><td class="mdescLeft"> </td><td class="mdescRight">Assign a string of raw data. <a href="#a1464571fb61f96ac66f15731e8214091"></a><br/></td></tr>
78
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a85a4ed9fd2da8ff6174842d3c53167e3">set_text</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& data)</td></tr>
79
<tr><td class="mdescLeft"> </td><td class="mdescRight">Assign UTF-8 encoded text. <a href="#a85a4ed9fd2da8ff6174842d3c53167e3"></a><br/></td></tr>
80
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#ad6fe5dc64610a8ef8b76582e09facaea">get_text</a> () const </td></tr>
81
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the contents of the selection data as a UTF-8 string. <a href="#ad6fe5dc64610a8ef8b76582e09facaea"></a><br/></td></tr>
82
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#abbcfbbbbd1bbc7d581711f32b97b938a">set_pixbuf</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> >& pixbuf)</td></tr>
83
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the contents of the selection from a <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> The pixbuf is converted to the form determined by <em>selection_data->target</em>. <a href="#abbcfbbbbd1bbc7d581711f32b97b938a"></a><br/></td></tr>
84
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a9c39b784e5977aac600b369c0062bb2f">get_pixbuf</a> ()</td></tr>
85
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the contents of the selection data as a <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>. <a href="#a9c39b784e5977aac600b369c0062bb2f"></a><br/></td></tr>
86
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< const <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a32adbe8fe464cc6572c2337951fae84e">get_pixbuf</a> () const </td></tr>
87
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the contents of the selection data as a <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>. <a href="#a32adbe8fe464cc6572c2337951fae84e"></a><br/></td></tr>
88
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#aa93d21e8a0ae71cde7f6a92e48bc0a1e">set_uris</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ArrayHandle.html">Glib::StringArrayHandle</a>& uris)</td></tr>
89
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the contents of the selection from a list of URIs. <a href="#aa93d21e8a0ae71cde7f6a92e48bc0a1e"></a><br/></td></tr>
90
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ArrayHandle.html">Glib::StringArrayHandle</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a49dc9543e60c67f9a1bc836df1c08cc5">get_uris</a> () const </td></tr>
91
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the contents of the selection data as a container of URIs. <a href="#a49dc9543e60c67f9a1bc836df1c08cc5"></a><br/></td></tr>
92
<tr><td class="memItemLeft" align="right" valign="top">const guchar* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a0dd1ae04cb843a1c9648ea62c81a8841">get_data</a> () const </td></tr>
93
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the raw data of the selection. <a href="#a0dd1ae04cb843a1c9648ea62c81a8841"></a><br/></td></tr>
94
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a5c8913e1086614c80f4e84325c649d42">get_length</a> () const </td></tr>
95
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the length of the raw data of the selection. <a href="#a5c8913e1086614c80f4e84325c649d42"></a><br/></td></tr>
96
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01591.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a652b34830f8c54515f3a70f458e6c152">get_data_as_string</a> () const </td></tr>
97
<tr><td class="memItemLeft" align="right" valign="top">GdkAtom </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#ad3cb66db1f8f10015ad4fd01be163e93">get_selection</a> () const </td></tr>
98
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the selection Gdk::Atom of the selection data. <a href="#ad3cb66db1f8f10015ad4fd01be163e93"></a><br/></td></tr>
99
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01591.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a34ee1b33006bf4f2be11c8fdb65df33e">get_target</a> () const </td></tr>
100
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the target of the selection. <a href="#a34ee1b33006bf4f2be11c8fdb65df33e"></a><br/></td></tr>
101
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ArrayHandle.html">Gdk::ArrayHandle_AtomString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#aaa7563f7e66911e324546f10405044da">get_targets</a> () const </td></tr>
102
<tr><td class="mdescLeft"> </td><td class="mdescRight">See also <a class="el" href="classGtk_1_1Clipboard.html#ae3be3a0d85849117a284f8a1cbfdb98e" title="Requests the contents of the clipboard as list of supported targets.">Gtk::Clipboard::request_targets()</a> <a href="#aaa7563f7e66911e324546f10405044da"></a><br/></td></tr>
103
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01591.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a20257cb7db350176a9b66d6ce2dedcd4">get_data_type</a> () const </td></tr>
104
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the type of the data as set by <a class="el" href="classGtk_1_1SelectionData.html#aa5d6c006f1e575808bb64c3a1724eb87">SelectionData::set()</a>. <a href="#a20257cb7db350176a9b66d6ce2dedcd4"></a><br/></td></tr>
105
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a0dd95ca2a722651db2ad3e7d1e30f260">get_format</a> () const </td></tr>
106
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the format of the selection. <a href="#a0dd95ca2a722651db2ad3e7d1e30f260"></a><br/></td></tr>
107
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Display.html">Gdk::Display</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#abe771f4375acf6e152fbe4666534534b">get_display</a> ()</td></tr>
108
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the display of the selection. <a href="#abe771f4375acf6e152fbe4666534534b"></a><br/></td></tr>
109
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< const <a class="el" href="classGdk_1_1Display.html">Gdk::Display</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#aca4a73f550bd8172b42e76031bc8b985">get_display</a> () const </td></tr>
110
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the display of the selection. <a href="#aca4a73f550bd8172b42e76031bc8b985"></a><br/></td></tr>
111
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a9fbf51e548ecb51d983531ecccf49fb9">targets_include_uri</a> () const </td></tr>
112
<tr><td class="mdescLeft"> </td><td class="mdescRight">Given a <a class="el" href="classGtk_1_1SelectionData.html">Gtk::SelectionData</a> object holding a list of targets, determines if any of the targets in <em>targets</em> can be used to provide a list or URIs. <a href="#a9fbf51e548ecb51d983531ecccf49fb9"></a><br/></td></tr>
113
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a589b34bbc75182de5195dd5a22708892">targets_include_text</a> () const </td></tr>
114
<tr><td class="mdescLeft"> </td><td class="mdescRight">Given a <a class="el" href="classGtk_1_1SelectionData.html">Gtk::SelectionData</a> object holding a list of targets, determines if any of the targets in <em>targets</em> can be used to provide text. <a href="#a589b34bbc75182de5195dd5a22708892"></a><br/></td></tr>
115
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a23502b282ec4546943b6fb4c2d0d8e3d">targets_include_rich_text</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1TextBuffer.html">TextBuffer</a> >& buffer) const </td></tr>
116
<tr><td class="mdescLeft"> </td><td class="mdescRight">Given a <a class="el" href="classGtk_1_1SelectionData.html">Gtk::SelectionData</a> object holding a list of targets, determines if any of the targets in <em>targets</em> can be used to provide rich text. <a href="#a23502b282ec4546943b6fb4c2d0d8e3d"></a><br/></td></tr>
117
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a97521408bbef83c56ed4b8c3faa53bd8">targets_include_image</a> (bool writable=true) const </td></tr>
118
<tr><td class="mdescLeft"> </td><td class="mdescRight">Given a <a class="el" href="classGtk_1_1SelectionData.html">Gtk::SelectionData</a> object holding a list of targets, determines if any of the targets in <em>targets</em> can be used to provide a <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>. <a href="#a97521408bbef83c56ed4b8c3faa53bd8"></a><br/></td></tr>
119
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
120
Protected Attributes</h2></td></tr>
121
<tr><td class="memItemLeft" align="right" valign="top">GtkSelectionData* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#aeccc1384f7e8decb49a0188c76c99658">gobject_</a></td></tr>
122
<tr><td colspan="2"><h2><a name="related"></a>
123
Related Functions</h2></td></tr>
124
<tr><td colspan="2">(Note that these are not member functions.) <br/></td></tr>
125
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#ad87a4f8ffc4f455d8600ac769a0f508b">swap</a> (<a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>& lhs, <a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>& rhs)</td></tr>
126
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1SelectionData.html">Gtk::SelectionData</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1SelectionData.html#a6e49ccb1719123dd777a6b9b35004dfe">wrap</a> (GtkSelectionData* object, bool take_copy=false)</td></tr>
127
<tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a6e49ccb1719123dd777a6b9b35004dfe"></a><br/></td></tr>
129
<hr/><h2>Constructor & Destructor Documentation</h2>
130
<a class="anchor" id="a960d5979b57c7a2a9d025b4c3bdce3d4"></a><!-- doxytag: member="Gtk::SelectionData::SelectionData" ref="a960d5979b57c7a2a9d025b4c3bdce3d4" args="()" -->
131
<div class="memitem">
132
<div class="memproto">
133
<table class="memname">
135
<td class="memname">Gtk::SelectionData::SelectionData </td>
137
<td class="paramname"></td><td>)</td>
146
<a class="anchor" id="a737d81c0ec50c493a362851153fb37d0"></a><!-- doxytag: member="Gtk::SelectionData::SelectionData" ref="a737d81c0ec50c493a362851153fb37d0" args="(GtkSelectionData *gobject, bool make_a_copy=true)" -->
147
<div class="memitem">
148
<div class="memproto">
149
<table class="memname">
151
<td class="memname">Gtk::SelectionData::SelectionData </td>
153
<td class="paramtype">GtkSelectionData * </td>
154
<td class="paramname"><em>gobject</em>, </td>
157
<td class="paramkey"></td>
159
<td class="paramtype">bool </td>
160
<td class="paramname"><em>make_a_copy</em> = <code>true</code> </td>
165
<td></td><td><code> [explicit]</code></td>
173
<a class="anchor" id="a38e56cf805c11aa747c010f4f3aaf3df"></a><!-- doxytag: member="Gtk::SelectionData::SelectionData" ref="a38e56cf805c11aa747c010f4f3aaf3df" args="(const SelectionData &other)" -->
174
<div class="memitem">
175
<div class="memproto">
176
<table class="memname">
178
<td class="memname">Gtk::SelectionData::SelectionData </td>
180
<td class="paramtype">const <a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>& </td>
181
<td class="paramname"><em>other</em></td><td>)</td>
190
<a class="anchor" id="a6fc29f571a31fa02a34bfba074745637"></a><!-- doxytag: member="Gtk::SelectionData::~SelectionData" ref="a6fc29f571a31fa02a34bfba074745637" args="()" -->
191
<div class="memitem">
192
<div class="memproto">
193
<table class="memname">
195
<td class="memname">Gtk::SelectionData::~SelectionData </td>
197
<td class="paramname"></td><td>)</td>
206
<hr/><h2>Member Function Documentation</h2>
207
<a class="anchor" id="a0dd1ae04cb843a1c9648ea62c81a8841"></a><!-- doxytag: member="Gtk::SelectionData::get_data" ref="a0dd1ae04cb843a1c9648ea62c81a8841" args="() const " -->
208
<div class="memitem">
209
<div class="memproto">
210
<table class="memname">
212
<td class="memname">const guchar* Gtk::SelectionData::get_data </td>
214
<td class="paramname"></td><td>)</td>
221
<p>Retrieves the raw data of the selection. </p>
222
<dl class="since_2_14"><dt><b><a class="el" href="since_2_14.html#_since_2_14000128">Since gtkmm 2.14:</a></b></dt><dd></dd></dl>
223
<dl class="return"><dt><b>Returns:</b></dt><dd>The raw data of the selection. </dd></dl>
227
<a class="anchor" id="a652b34830f8c54515f3a70f458e6c152"></a><!-- doxytag: member="Gtk::SelectionData::get_data_as_string" ref="a652b34830f8c54515f3a70f458e6c152" args="() const " -->
228
<div class="memitem">
229
<div class="memproto">
230
<table class="memname">
232
<td class="memname"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01591.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> Gtk::SelectionData::get_data_as_string </td>
234
<td class="paramname"></td><td>)</td>
243
<a class="anchor" id="a20257cb7db350176a9b66d6ce2dedcd4"></a><!-- doxytag: member="Gtk::SelectionData::get_data_type" ref="a20257cb7db350176a9b66d6ce2dedcd4" args="() const " -->
244
<div class="memitem">
245
<div class="memproto">
246
<table class="memname">
248
<td class="memname"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01591.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> Gtk::SelectionData::get_data_type </td>
250
<td class="paramname"></td><td>)</td>
257
<p>Returns the type of the data as set by <a class="el" href="classGtk_1_1SelectionData.html#aa5d6c006f1e575808bb64c3a1724eb87">SelectionData::set()</a>. </p>
261
<a class="anchor" id="abe771f4375acf6e152fbe4666534534b"></a><!-- doxytag: member="Gtk::SelectionData::get_display" ref="abe771f4375acf6e152fbe4666534534b" args="()" -->
262
<div class="memitem">
263
<div class="memproto">
264
<table class="memname">
266
<td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Display.html">Gdk::Display</a>> Gtk::SelectionData::get_display </td>
268
<td class="paramname"></td><td>)</td>
275
<p>Retrieves the display of the selection. </p>
276
<dl class="since_2_14"><dt><b><a class="el" href="since_2_14.html#_since_2_14000132">Since gtkmm 2.14:</a></b></dt><dd></dd></dl>
277
<dl class="return"><dt><b>Returns:</b></dt><dd>The display of the selection. </dd></dl>
281
<a class="anchor" id="aca4a73f550bd8172b42e76031bc8b985"></a><!-- doxytag: member="Gtk::SelectionData::get_display" ref="aca4a73f550bd8172b42e76031bc8b985" args="() const " -->
282
<div class="memitem">
283
<div class="memproto">
284
<table class="memname">
286
<td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGdk_1_1Display.html">Gdk::Display</a>> Gtk::SelectionData::get_display </td>
288
<td class="paramname"></td><td>)</td>
295
<p>Retrieves the display of the selection. </p>
296
<dl class="since_2_14"><dt><b><a class="el" href="since_2_14.html#_since_2_14000133">Since gtkmm 2.14:</a></b></dt><dd></dd></dl>
297
<dl class="return"><dt><b>Returns:</b></dt><dd>The display of the selection. </dd></dl>
301
<a class="anchor" id="a0dd95ca2a722651db2ad3e7d1e30f260"></a><!-- doxytag: member="Gtk::SelectionData::get_format" ref="a0dd95ca2a722651db2ad3e7d1e30f260" args="() const " -->
302
<div class="memitem">
303
<div class="memproto">
304
<table class="memname">
306
<td class="memname">int Gtk::SelectionData::get_format </td>
308
<td class="paramname"></td><td>)</td>
315
<p>Retrieves the format of the selection. </p>
316
<dl class="since_2_14"><dt><b><a class="el" href="since_2_14.html#_since_2_14000131">Since gtkmm 2.14:</a></b></dt><dd></dd></dl>
317
<dl class="return"><dt><b>Returns:</b></dt><dd>The format of the selection. </dd></dl>
321
<a class="anchor" id="a5c8913e1086614c80f4e84325c649d42"></a><!-- doxytag: member="Gtk::SelectionData::get_length" ref="a5c8913e1086614c80f4e84325c649d42" args="() const " -->
322
<div class="memitem">
323
<div class="memproto">
324
<table class="memname">
326
<td class="memname">int Gtk::SelectionData::get_length </td>
328
<td class="paramname"></td><td>)</td>
335
<p>Retrieves the length of the raw data of the selection. </p>
336
<dl class="since_2_14"><dt><b><a class="el" href="since_2_14.html#_since_2_14000129">Since gtkmm 2.14:</a></b></dt><dd></dd></dl>
337
<dl class="return"><dt><b>Returns:</b></dt><dd>The length of the data of the selection. </dd></dl>
341
<a class="anchor" id="a9c39b784e5977aac600b369c0062bb2f"></a><!-- doxytag: member="Gtk::SelectionData::get_pixbuf" ref="a9c39b784e5977aac600b369c0062bb2f" args="()" -->
342
<div class="memitem">
343
<div class="memproto">
344
<table class="memname">
346
<td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>> Gtk::SelectionData::get_pixbuf </td>
348
<td class="paramname"></td><td>)</td>
355
<p>Gets the contents of the selection data as a <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>. </p>
356
<dl class="since_2_6"><dt><b><a class="el" href="since_2_6.html#_since_2_6000142">Since gtkmm 2.6:</a></b></dt><dd></dd></dl>
357
<dl class="return"><dt><b>Returns:</b></dt><dd>If the selection data contained a recognized image type and it could be converted to a <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>, a newly allocated pixbuf is returned, otherwise <code>0</code>. If the result is non-<code>0</code> it must be freed with Glib::object_unref(). </dd></dl>
361
<a class="anchor" id="a32adbe8fe464cc6572c2337951fae84e"></a><!-- doxytag: member="Gtk::SelectionData::get_pixbuf" ref="a32adbe8fe464cc6572c2337951fae84e" args="() const " -->
362
<div class="memitem">
363
<div class="memproto">
364
<table class="memname">
366
<td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>> Gtk::SelectionData::get_pixbuf </td>
368
<td class="paramname"></td><td>)</td>
375
<p>Gets the contents of the selection data as a <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>. </p>
376
<dl class="since_2_6"><dt><b><a class="el" href="since_2_6.html#_since_2_6000143">Since gtkmm 2.6:</a></b></dt><dd></dd></dl>
377
<dl class="return"><dt><b>Returns:</b></dt><dd>If the selection data contained a recognized image type and it could be converted to a <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>, a newly allocated pixbuf is returned, otherwise <code>0</code>. If the result is non-<code>0</code> it must be freed with Glib::object_unref(). </dd></dl>
381
<a class="anchor" id="ad3cb66db1f8f10015ad4fd01be163e93"></a><!-- doxytag: member="Gtk::SelectionData::get_selection" ref="ad3cb66db1f8f10015ad4fd01be163e93" args="() const " -->
382
<div class="memitem">
383
<div class="memproto">
384
<table class="memname">
386
<td class="memname">GdkAtom Gtk::SelectionData::get_selection </td>
388
<td class="paramname"></td><td>)</td>
395
<p>Retrieves the selection Gdk::Atom of the selection data. </p>
396
<dl class="since_2_16"><dt><b><a class="el" href="since_2_16.html#_since_2_16000090">Since gtkmm 2.16:</a></b></dt><dd></dd></dl>
397
<dl class="return"><dt><b>Returns:</b></dt><dd>The selection Gdk::Atom of the selection data. </dd></dl>
401
<a class="anchor" id="a34ee1b33006bf4f2be11c8fdb65df33e"></a><!-- doxytag: member="Gtk::SelectionData::get_target" ref="a34ee1b33006bf4f2be11c8fdb65df33e" args="() const " -->
402
<div class="memitem">
403
<div class="memproto">
404
<table class="memname">
406
<td class="memname"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01591.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> Gtk::SelectionData::get_target </td>
408
<td class="paramname"></td><td>)</td>
415
<p>Retrieves the target of the selection. </p>
416
<dl class="since_2_14"><dt><b><a class="el" href="since_2_14.html#_since_2_14000130">Since gtkmm 2.14:</a></b></dt><dd></dd></dl>
420
<a class="anchor" id="aaa7563f7e66911e324546f10405044da"></a><!-- doxytag: member="Gtk::SelectionData::get_targets" ref="aaa7563f7e66911e324546f10405044da" args="() const " -->
421
<div class="memitem">
422
<div class="memproto">
423
<table class="memname">
425
<td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ArrayHandle.html">Gdk::ArrayHandle_AtomString</a> Gtk::SelectionData::get_targets </td>
427
<td class="paramname"></td><td>)</td>
434
<p>See also <a class="el" href="classGtk_1_1Clipboard.html#ae3be3a0d85849117a284f8a1cbfdb98e" title="Requests the contents of the clipboard as list of supported targets.">Gtk::Clipboard::request_targets()</a> </p>
438
<a class="anchor" id="ad6fe5dc64610a8ef8b76582e09facaea"></a><!-- doxytag: member="Gtk::SelectionData::get_text" ref="ad6fe5dc64610a8ef8b76582e09facaea" args="() const " -->
439
<div class="memitem">
440
<div class="memproto">
441
<table class="memname">
443
<td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> Gtk::SelectionData::get_text </td>
445
<td class="paramname"></td><td>)</td>
452
<p>Gets the contents of the selection data as a UTF-8 string. </p>
453
<dl class="return"><dt><b>Returns:</b></dt><dd>If the selection data contained a recognized text type and it could be converted to UTF-8, a string containing the converted text, otherwise an empty string. </dd></dl>
457
<a class="anchor" id="a49dc9543e60c67f9a1bc836df1c08cc5"></a><!-- doxytag: member="Gtk::SelectionData::get_uris" ref="a49dc9543e60c67f9a1bc836df1c08cc5" args="() const " -->
458
<div class="memitem">
459
<div class="memproto">
460
<table class="memname">
462
<td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ArrayHandle.html">Glib::StringArrayHandle</a> Gtk::SelectionData::get_uris </td>
464
<td class="paramname"></td><td>)</td>
471
<p>Gets the contents of the selection data as a container of URIs. </p>
472
<dl class="return"><dt><b>Returns:</b></dt><dd>If the selection data contains a list of URIs, a container containing the URIs, otherwise an empty container.</dd></dl>
473
<dl class="since_2_6"><dt><b><a class="el" href="since_2_6.html#_since_2_6000145">Since gtkmm 2.6:</a></b></dt><dd></dd></dl>
477
<a class="anchor" id="a64da01e677cb9937a08d5eee606374f1"></a><!-- doxytag: member="Gtk::SelectionData::gobj" ref="a64da01e677cb9937a08d5eee606374f1" args="()" -->
478
<div class="memitem">
479
<div class="memproto">
480
<table class="memname">
482
<td class="memname">GtkSelectionData* Gtk::SelectionData::gobj </td>
484
<td class="paramname"></td><td>)</td>
485
<td><code> [inline]</code></td>
491
<p>Provides access to the underlying C instance. </p>
495
<a class="anchor" id="a61975208c3a824d985a876d76b82791d"></a><!-- doxytag: member="Gtk::SelectionData::gobj" ref="a61975208c3a824d985a876d76b82791d" args="() const " -->
496
<div class="memitem">
497
<div class="memproto">
498
<table class="memname">
500
<td class="memname">const GtkSelectionData* Gtk::SelectionData::gobj </td>
502
<td class="paramname"></td><td>)</td>
503
<td> const<code> [inline]</code></td>
509
<p>Provides access to the underlying C instance. </p>
513
<a class="anchor" id="a553aea8a0ef83b67096e7ed26ea5d785"></a><!-- doxytag: member="Gtk::SelectionData::gobj_copy" ref="a553aea8a0ef83b67096e7ed26ea5d785" args="() const " -->
514
<div class="memitem">
515
<div class="memproto">
516
<table class="memname">
518
<td class="memname">GtkSelectionData* Gtk::SelectionData::gobj_copy </td>
520
<td class="paramname"></td><td>)</td>
527
<p>Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. </p>
531
<a class="anchor" id="a3f4a823c42ea8380d0b70c209b62e979"></a><!-- doxytag: member="Gtk::SelectionData::operator=" ref="a3f4a823c42ea8380d0b70c209b62e979" args="(const SelectionData &other)" -->
532
<div class="memitem">
533
<div class="memproto">
534
<table class="memname">
536
<td class="memname"><a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>& Gtk::SelectionData::operator= </td>
538
<td class="paramtype">const <a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>& </td>
539
<td class="paramname"><em>other</em></td><td>)</td>
548
<a class="anchor" id="a1464571fb61f96ac66f15731e8214091"></a><!-- doxytag: member="Gtk::SelectionData::set" ref="a1464571fb61f96ac66f15731e8214091" args="(const std::string &type, const std::string &data)" -->
549
<div class="memitem">
550
<div class="memproto">
551
<table class="memname">
553
<td class="memname">void Gtk::SelectionData::set </td>
555
<td class="paramtype">const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01591.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> & </td>
556
<td class="paramname"><em>type</em>, </td>
559
<td class="paramkey"></td>
561
<td class="paramtype">const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01591.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> & </td>
562
<td class="paramname"><em>data</em> </td>
573
<p>Assign a string of raw data. </p>
574
<p>Store new data into the <a class="el" href="classGtk_1_1SelectionData.html">Gtk::SelectionData</a> object. Should _only_ by called from a selection handler callback. </p>
575
<dl><dt><b>Parameters:</b></dt><dd>
576
<table class="params">
577
<tr><td class="paramname">type</td><td>The type of the selection. </td></tr>
578
<tr><td class="paramname">data</td><td>A string that contains the data (does not have to be text). </td></tr>
585
<a class="anchor" id="aa5d6c006f1e575808bb64c3a1724eb87"></a><!-- doxytag: member="Gtk::SelectionData::set" ref="aa5d6c006f1e575808bb64c3a1724eb87" args="(int format, const guint8 *data, int length)" -->
586
<div class="memitem">
587
<div class="memproto">
588
<table class="memname">
590
<td class="memname">void Gtk::SelectionData::set </td>
592
<td class="paramtype">int </td>
593
<td class="paramname"><em>format</em>, </td>
596
<td class="paramkey"></td>
598
<td class="paramtype">const guint8 * </td>
599
<td class="paramname"><em>data</em>, </td>
602
<td class="paramkey"></td>
604
<td class="paramtype">int </td>
605
<td class="paramname"><em>length</em> </td>
618
<a class="anchor" id="a3f34e9f6ec1986cd4c299c89585d7926"></a><!-- doxytag: member="Gtk::SelectionData::set" ref="a3f34e9f6ec1986cd4c299c89585d7926" args="(const std::string &type, int format, const guint8 *data, int length)" -->
619
<div class="memitem">
620
<div class="memproto">
621
<table class="memname">
623
<td class="memname">void Gtk::SelectionData::set </td>
625
<td class="paramtype">const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01591.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> & </td>
626
<td class="paramname"><em>type</em>, </td>
629
<td class="paramkey"></td>
631
<td class="paramtype">int </td>
632
<td class="paramname"><em>format</em>, </td>
635
<td class="paramkey"></td>
637
<td class="paramtype">const guint8 * </td>
638
<td class="paramname"><em>data</em>, </td>
641
<td class="paramkey"></td>
643
<td class="paramtype">int </td>
644
<td class="paramname"><em>length</em> </td>
655
<p>Assign a memory block of raw data. </p>
656
<p>Store new data into the <a class="el" href="classGtk_1_1SelectionData.html">Gtk::SelectionData</a> object. Should _only_ by called from a selection handler callback. A 0-byte terminates the stored data. </p>
657
<dl><dt><b>Parameters:</b></dt><dd>
658
<table class="params">
659
<tr><td class="paramname">type</td><td>The type of the selection. </td></tr>
660
<tr><td class="paramname">format</td><td>The data format, i.e. the number of bits in a unit. </td></tr>
661
<tr><td class="paramname">data</td><td>Pointer to the data (will be copied). </td></tr>
662
<tr><td class="paramname">length</td><td>The length of the data block in bytes. </td></tr>
669
<a class="anchor" id="abbcfbbbbd1bbc7d581711f32b97b938a"></a><!-- doxytag: member="Gtk::SelectionData::set_pixbuf" ref="abbcfbbbbd1bbc7d581711f32b97b938a" args="(const Glib::RefPtr< Gdk::Pixbuf > &pixbuf)" -->
670
<div class="memitem">
671
<div class="memproto">
672
<table class="memname">
674
<td class="memname">bool Gtk::SelectionData::set_pixbuf </td>
676
<td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> >& </td>
677
<td class="paramname"><em>pixbuf</em></td><td>)</td>
684
<p>Sets the contents of the selection from a <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> The pixbuf is converted to the form determined by <em>selection_data->target</em>. </p>
685
<dl class="since_2_6"><dt><b><a class="el" href="since_2_6.html#_since_2_6000141">Since gtkmm 2.6:</a></b></dt><dd></dd></dl>
686
<dl><dt><b>Parameters:</b></dt><dd>
687
<table class="params">
688
<tr><td class="paramname">pixbuf</td><td>A <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>. </td></tr>
692
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the selection was successfully set, otherwise <code>false</code>. </dd></dl>
696
<a class="anchor" id="a85a4ed9fd2da8ff6174842d3c53167e3"></a><!-- doxytag: member="Gtk::SelectionData::set_text" ref="a85a4ed9fd2da8ff6174842d3c53167e3" args="(const Glib::ustring &data)" -->
697
<div class="memitem">
698
<div class="memproto">
699
<table class="memname">
701
<td class="memname">bool Gtk::SelectionData::set_text </td>
703
<td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
704
<td class="paramname"><em>data</em></td><td>)</td>
711
<p>Assign UTF-8 encoded text. </p>
712
<p>Sets the contents of the selection from a UTF-8 encoded string. The string is converted to the form determined by <a class="el" href="classGtk_1_1SelectionData.html#a34ee1b33006bf4f2be11c8fdb65df33e" title="Retrieves the target of the selection.">get_target()</a>. </p>
713
<dl><dt><b>Parameters:</b></dt><dd>
714
<table class="params">
715
<tr><td class="paramname">data</td><td>A UTF-8 encoded string. </td></tr>
719
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the selection was successfully set, otherwise <code>false</code>. </dd></dl>
723
<a class="anchor" id="aa93d21e8a0ae71cde7f6a92e48bc0a1e"></a><!-- doxytag: member="Gtk::SelectionData::set_uris" ref="aa93d21e8a0ae71cde7f6a92e48bc0a1e" args="(const Glib::StringArrayHandle &uris)" -->
724
<div class="memitem">
725
<div class="memproto">
726
<table class="memname">
728
<td class="memname">bool Gtk::SelectionData::set_uris </td>
730
<td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ArrayHandle.html">Glib::StringArrayHandle</a> & </td>
731
<td class="paramname"><em>uris</em></td><td>)</td>
738
<p>Sets the contents of the selection from a list of URIs. </p>
739
<p>The string is converted to the form determined by <em>selection_data->target</em>.</p>
740
<dl class="since_2_6"><dt><b><a class="el" href="since_2_6.html#_since_2_6000144">Since gtkmm 2.6:</a></b></dt><dd></dd></dl>
741
<dl><dt><b>Parameters:</b></dt><dd>
742
<table class="params">
743
<tr><td class="paramname">uris</td><td>A <code>0</code>-terminated array of strings holding URIs. </td></tr>
747
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the selection was successfully set, otherwise <code>false</code>. </dd></dl>
751
<a class="anchor" id="a4b164ee2221952c3117064436954c618"></a><!-- doxytag: member="Gtk::SelectionData::swap" ref="a4b164ee2221952c3117064436954c618" args="(SelectionData &other)" -->
752
<div class="memitem">
753
<div class="memproto">
754
<table class="memname">
756
<td class="memname">void Gtk::SelectionData::swap </td>
758
<td class="paramtype"><a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>& </td>
759
<td class="paramname"><em>other</em></td><td>)</td>
768
<a class="anchor" id="a97521408bbef83c56ed4b8c3faa53bd8"></a><!-- doxytag: member="Gtk::SelectionData::targets_include_image" ref="a97521408bbef83c56ed4b8c3faa53bd8" args="(bool writable=true) const " -->
769
<div class="memitem">
770
<div class="memproto">
771
<table class="memname">
773
<td class="memname">bool Gtk::SelectionData::targets_include_image </td>
775
<td class="paramtype">bool </td>
776
<td class="paramname"><em>writable</em> = <code>true</code></td><td>)</td>
783
<p>Given a <a class="el" href="classGtk_1_1SelectionData.html">Gtk::SelectionData</a> object holding a list of targets, determines if any of the targets in <em>targets</em> can be used to provide a <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>. </p>
784
<dl class="since_2_6"><dt><b><a class="el" href="since_2_6.html#_since_2_6000146">Since gtkmm 2.6:</a></b></dt><dd></dd></dl>
785
<dl><dt><b>Parameters:</b></dt><dd>
786
<table class="params">
787
<tr><td class="paramname">writable</td><td>Whether to accept only targets for which GTK+ knows how to convert a pixbuf into the format. </td></tr>
791
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if <em>selection_data</em> holds a list of targets, and a suitable target for images is included, otherwise <code>false</code>. </dd></dl>
795
<a class="anchor" id="a23502b282ec4546943b6fb4c2d0d8e3d"></a><!-- doxytag: member="Gtk::SelectionData::targets_include_rich_text" ref="a23502b282ec4546943b6fb4c2d0d8e3d" args="(const Glib::RefPtr< TextBuffer > &buffer) const " -->
796
<div class="memitem">
797
<div class="memproto">
798
<table class="memname">
800
<td class="memname">bool Gtk::SelectionData::targets_include_rich_text </td>
802
<td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1TextBuffer.html">TextBuffer</a> >& </td>
803
<td class="paramname"><em>buffer</em></td><td>)</td>
810
<p>Given a <a class="el" href="classGtk_1_1SelectionData.html">Gtk::SelectionData</a> object holding a list of targets, determines if any of the targets in <em>targets</em> can be used to provide rich text. </p>
811
<dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000296">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
812
<dl><dt><b>Parameters:</b></dt><dd>
813
<table class="params">
814
<tr><td class="paramname">buffer</td><td>A <a class="el" href="classGtk_1_1TextBuffer.html" title="Multi-line attributed text that can be displayed by one or more Gtk::TextView widgets.">Gtk::TextBuffer</a>. </td></tr>
818
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if <em>selection_data</em> holds a list of targets, and a suitable target for rich text is included, otherwise <code>false</code>. </dd></dl>
822
<a class="anchor" id="a589b34bbc75182de5195dd5a22708892"></a><!-- doxytag: member="Gtk::SelectionData::targets_include_text" ref="a589b34bbc75182de5195dd5a22708892" args="() const " -->
823
<div class="memitem">
824
<div class="memproto">
825
<table class="memname">
827
<td class="memname">bool Gtk::SelectionData::targets_include_text </td>
829
<td class="paramname"></td><td>)</td>
836
<p>Given a <a class="el" href="classGtk_1_1SelectionData.html">Gtk::SelectionData</a> object holding a list of targets, determines if any of the targets in <em>targets</em> can be used to provide text. </p>
837
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if <em>selection_data</em> holds a list of targets, and a suitable target for text is included, otherwise <code>false</code>. </dd></dl>
841
<a class="anchor" id="a9fbf51e548ecb51d983531ecccf49fb9"></a><!-- doxytag: member="Gtk::SelectionData::targets_include_uri" ref="a9fbf51e548ecb51d983531ecccf49fb9" args="() const " -->
842
<div class="memitem">
843
<div class="memproto">
844
<table class="memname">
846
<td class="memname">bool Gtk::SelectionData::targets_include_uri </td>
848
<td class="paramname"></td><td>)</td>
855
<p>Given a <a class="el" href="classGtk_1_1SelectionData.html">Gtk::SelectionData</a> object holding a list of targets, determines if any of the targets in <em>targets</em> can be used to provide a list or URIs. </p>
856
<dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000295">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
857
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if <em>selection_data</em> holds a list of targets, and a suitable target for URI lists is included, otherwise <code>false</code>. </dd></dl>
861
<hr/><h2>Friends And Related Function Documentation</h2>
862
<a class="anchor" id="ad87a4f8ffc4f455d8600ac769a0f508b"></a><!-- doxytag: member="Gtk::SelectionData::swap" ref="ad87a4f8ffc4f455d8600ac769a0f508b" args="(SelectionData &lhs, SelectionData &rhs)" -->
863
<div class="memitem">
864
<div class="memproto">
865
<table class="memname">
867
<td class="memname">void swap </td>
869
<td class="paramtype"><a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>& </td>
870
<td class="paramname"><em>lhs</em>, </td>
873
<td class="paramkey"></td>
875
<td class="paramtype"><a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>& </td>
876
<td class="paramname"><em>rhs</em> </td>
881
<td></td><td><code> [related]</code></td>
886
<dl><dt><b>Parameters:</b></dt><dd>
887
<table class="params">
888
<tr><td class="paramname">lhs</td><td>The left-hand side </td></tr>
889
<tr><td class="paramname">rhs</td><td>The right-hand side </td></tr>
896
<a class="anchor" id="a6e49ccb1719123dd777a6b9b35004dfe"></a><!-- doxytag: member="Gtk::SelectionData::wrap" ref="a6e49ccb1719123dd777a6b9b35004dfe" args="(GtkSelectionData *object, bool take_copy=false)" -->
897
<div class="memitem">
898
<div class="memproto">
899
<table class="memname">
901
<td class="memname"><a class="el" href="classGtk_1_1SelectionData.html">Gtk::SelectionData</a> wrap </td>
903
<td class="paramtype">GtkSelectionData * </td>
904
<td class="paramname"><em>object</em>, </td>
907
<td class="paramkey"></td>
909
<td class="paramtype">bool </td>
910
<td class="paramname"><em>take_copy</em> = <code>false</code> </td>
915
<td></td><td><code> [related]</code></td>
921
<p>A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
922
<dl><dt><b>Parameters:</b></dt><dd>
923
<table class="params">
924
<tr><td class="paramname">object</td><td>The C instance. </td></tr>
925
<tr><td class="paramname">take_copy</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
929
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>
933
<hr/><h2>Member Data Documentation</h2>
934
<a class="anchor" id="aeccc1384f7e8decb49a0188c76c99658"></a><!-- doxytag: member="Gtk::SelectionData::gobject_" ref="aeccc1384f7e8decb49a0188c76c99658" args="" -->
935
<div class="memitem">
936
<div class="memproto">
937
<table class="memname">
939
<td class="memname">GtkSelectionData* <a class="el" href="classGtk_1_1SelectionData.html#aeccc1384f7e8decb49a0188c76c99658">Gtk::SelectionData::gobject_</a><code> [protected]</code></td>
947
<hr/>The documentation for this class was generated from the following file:<ul>
948
<li>gtkmm/selectiondata.h</li>
951
<hr class="footer"/><address class="footer"><small>Generated on Fri Jul 8 2011 13:31:47 for gtkmm by 
952
<a href="http://www.doxygen.org/index.html">
953
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>