File: classGFC_1_1Gtk_1_1DragContext.html

package info (click to toggle)
gfcui 2.3.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 43,420 kB
  • ctags: 18,023
  • sloc: cpp: 53,967; sh: 31,555; makefile: 1,322; perl: 108
file content (485 lines) | stat: -rw-r--r-- 21,717 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>GTK+ Foundation Classes</title>
  <link href="gfc.css" rel="stylesheet" type="text/css">
  <meta content="The GFC Development Team" name="author">
  <meta content="Core Library Reference Manual" name="description">
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(243, 244, 248);"
 alink="#000099" link="#000099" vlink="#990099">
<table style="text-align: left; width: 1227px; height: 117px;"
 border="0" cellpadding="0" cellspacing="0">
  <tbody>
    <tr>
      <td
 style="text-align: center; background-color: rgb(255, 255, 255); width: 220px; vertical-align: top;"><img
 alt="GFC Logo" src="../images/gfc.png"
 style="width: 207px; height: 92px;"></td>
      <td
 style="text-align: center; background-color: rgb(87, 107, 152); vertical-align: middle;"><img
 alt="GFC Title Logo" src="../images/gfc-title.png"
 style="width: 418px; height: 76px;"><br>
      </td>
    </tr>
    <tr>
      <td
 style="text-align: center; background-color: rgb(65, 77, 104); vertical-align: middle;"><big><span
 style="color: rgb(255, 255, 153); font-weight: bold;">Reference Manual</span></big><br>
      </td>
      <td
 style="text-align: center; background-color: rgb(148, 164, 200); vertical-align: middle;"><small
 style="font-family: helvetica,arial,sans-serif;"><a
 href="../html/index.html">Main Page</a>&nbsp; |&nbsp; <a
 href="../html/namespaces.html">Namespace List</a>&nbsp; |&nbsp; <a
 href="classes.html">Alphabetical List</a>&nbsp; |&nbsp; <a
 href="../html/annotated.html">Class List</a>&nbsp; |&nbsp; <a
 href="../html/files.html">File List</a></small><br>
      </td>
    </tr>
  </tbody>
</table>
<small> </small>
</body>
</html>
<!-- Generated by Doxygen 1.3.8 -->
<h1>GFC::Gtk::DragContext Class Reference</h1>A GTK+ Drag and Drop C++ wrapper class.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="gtk_2dnd_8hh-source.html">gfc/gtk/dnd.hh</a>&gt;</code>
<p>
<p>Inheritance diagram for GFC::Gtk::DragContext:
<p><center><img src="classGFC_1_1Gtk_1_1DragContext.png" usemap="#GFC::Gtk::DragContext_map" border="0" alt=""></center>
<map name="GFC::Gtk::DragContext_map">
<area href="classGFC_1_1Gdk_1_1DragContext.html" alt="GFC::Gdk::DragContext" shape="rect" coords="0,168,142,192">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Object.html" alt="GFC::G::Object" shape="rect" coords="0,112,142,136">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1TypeInstance.html" alt="GFC::G::TypeInstance" shape="rect" coords="0,56,142,80">
<area doxygen="gfccore.tag:" href="classGFC_1_1Trackable.html" alt="GFC::Trackable" shape="rect" coords="0,0,142,24">
</map>
<a href="classGFC_1_1Gtk_1_1DragContext-members.html">List of all members.</a><h2>Public Member Functions</h2>
<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
<ul>
<li><a class="anchor" name="z483_0" doxytag="GFC::Gtk::DragContext::~DragContext" ></a>
virtual <a class="el" href="classGFC_1_1Gtk_1_1DragContext.html#z483_0">~DragContext</a> ()
<dl class="el"><dd class="mdescRight">Destructor. <br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr>
<ul>
<li><a class="el" href="classGFC_1_1Gtk_1_1Widget.html">Widget</a> * <a class="el" href="classGFC_1_1Gtk_1_1DragContext.html#z484_0">get_source_widget</a> () const
<dl class="el"><dd class="mdescRight">Determines the source widget for a drag.  <a href="#z484_0"></a><br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Methods</div></td></tr>
<ul>
<li>void <a class="el" href="classGFC_1_1Gtk_1_1DragContext.html#z485_0">finish</a> (bool success, bool delete_data, unsigned int time)
<dl class="el"><dd class="mdescRight">Informs the drag source that the drop is finished, and that the data of the drag will no longer be required.  <a href="#z485_0"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1DragContext.html#z485_1">set_icon_widget</a> (<a class="el" href="classGFC_1_1Gtk_1_1Widget.html">Widget</a> &amp;widget, int hot_x, int hot_y)
<dl class="el"><dd class="mdescRight">Changes the icon for a widget to a given widget.  <a href="#z485_1"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1DragContext.html#z485_2">set_icon_pixmap</a> (<a class="el" href="classGFC_1_1Gdk_1_1Colormap.html">Gdk::Colormap</a> &amp;colormap, <a class="el" href="classGFC_1_1Gdk_1_1Pixmap.html">Gdk::Pixmap</a> &amp;pixmap, <a class="el" href="classGFC_1_1Gdk_1_1Bitmap.html">Gdk::Bitmap</a> *mask, int hot_x, int hot_y)
<dl class="el"><dd class="mdescRight">Sets pixmap as the icon for a given drag.  <a href="#z485_2"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1DragContext.html#z485_3">set_icon_pixbuf</a> (<a class="el" href="classGFC_1_1Gdk_1_1Pixbuf.html">Gdk::Pixbuf</a> &amp;pixbuf, int hot_x, int hot_y)
<dl class="el"><dd class="mdescRight">Sets pixbuf as the icon for a given drag.  <a href="#z485_3"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1DragContext.html#z485_4">set_icon_stock</a> (const <a class="el" href="classGFC_1_1Gtk_1_1StockId.html">StockId</a> &amp;stock_id, int hot_x, int hot_y)
<dl class="el"><dd class="mdescRight">Sets the icon for a given drstock_idag from a stock ID.  <a href="#z485_4"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1DragContext.html#z485_5">set_icon_default</a> ()
<dl class="el"><dd class="mdescRight">Sets the icon for a particular drag to the default icon.  <a href="#z485_5"></a><br></dl></ul>
<h2>Protected Member Functions</h2>
<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
<ul>
<li><a class="el" href="classGFC_1_1Gtk_1_1DragContext.html#z482_0">DragContext</a> (GdkDragContext *drag_context, bool reference=true)
<dl class="el"><dd class="mdescRight">Construct a new <a class="el" href="classGFC_1_1Gtk_1_1DragContext.html">DragContext</a> from an existing GdkDragContext.  <a href="#z482_0"></a><br></dl></ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A GTK+ Drag and Drop C++ wrapper class. 
<p>
GTK+ has a rich set of functions for doing inter-process communication via the drag-and-drop metaphor. GTK+ can do drag-and-drop (DND) via multiple protocols. The currently supported protocols are the Xdnd and Motif protocols. As well as the methods in this class, applications may need to use some facilities provided for Selections. Also, the Drag and Drop API makes use of signals in the <a class="el" href="classGFC_1_1Gtk_1_1Widget.html">Widget</a> class.<p>
<a class="el" href="classGFC_1_1Gtk_1_1DragContext.html">DragContext</a> is a convenient wrapper class for the GTK+ drag-and-drop functions. It derives from <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html">Gdk::DragContext</a>. There is no GtkDragContext.<p>
The default icon for a drag opration can be changed via the stock system by changing the stock pixbuf for GTK_STOCK_DND. 
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="z482_0" doxytag="GFC::Gtk::DragContext::DragContext" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GFC::Gtk::DragContext::DragContext           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">GdkDragContext *&nbsp;</td>
          <td class="mdname" nowrap> <em>drag_context</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>reference</em> = <code>true</code></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [explicit, protected]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Construct a new <a class="el" href="classGFC_1_1Gtk_1_1DragContext.html">DragContext</a> from an existing GdkDragContext. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>drag_context</em>&nbsp;</td><td>A pointer to a GdkDragContext. </td></tr>
    <tr><td></td><td valign=top><em>reference</em>&nbsp;</td><td>Set false if the initial reference count is floating, set true if it's not.</td></tr>
  </table>
</dl>
<br>
The <em>drag_context</em> can be a newly created GdkDragContext or an existing GdkDragContext. (see <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Object.html#z68_0">G::Object::Object</a>). 
<p>
Reimplemented from <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z128_1">GFC::Gdk::DragContext</a>.
<p>
    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="z485_0" doxytag="GFC::Gtk::DragContext::finish" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::DragContext::finish           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname" nowrap> <em>success</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>delete_data</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>unsigned int&nbsp;</td>
          <td class="mdname" nowrap> <em>time</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>
Informs the drag source that the drop is finished, and that the data of the drag will no longer be required. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>success</em>&nbsp;</td><td>A flag indicating whether the drop was successful. </td></tr>
    <tr><td></td><td valign=top><em>delete_data</em>&nbsp;</td><td>A flag indicating whether the source should delete the original data (true for a move). </td></tr>
    <tr><td></td><td valign=top><em>time</em>&nbsp;</td><td>The timestamp from the "drag_data_drop" signal. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="z484_0" doxytag="GFC::Gtk::DragContext::get_source_widget" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Gtk_1_1Widget.html">Widget</a>* GFC::Gtk::DragContext::get_source_widget           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&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>
Determines the source widget for a drag. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>If the drag is occurring within a single application, a pointer to the source widget. Otherwise, null. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="z485_5" doxytag="GFC::Gtk::DragContext::set_icon_default" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::DragContext::set_icon_default           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&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 icon for a particular drag to the default icon. 
<p>
This must be called with a context for the source side of a drag.     </td>
  </tr>
</table>
<a class="anchor" name="z485_3" doxytag="GFC::Gtk::DragContext::set_icon_pixbuf" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::DragContext::set_icon_pixbuf           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gdk_1_1Pixbuf.html">Gdk::Pixbuf</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>pixbuf</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>hot_x</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>hot_y</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>
Sets pixbuf as the icon for a given drag. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>pixbuf</em>&nbsp;</td><td>The image data for the icon. </td></tr>
    <tr><td></td><td valign=top><em>hot_x</em>&nbsp;</td><td>The X offset within pixbuf of the hotspot. </td></tr>
    <tr><td></td><td valign=top><em>hot_y</em>&nbsp;</td><td>The Y offset within pixbuf of the hotspot. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="z485_2" doxytag="GFC::Gtk::DragContext::set_icon_pixmap" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::DragContext::set_icon_pixmap           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gdk_1_1Colormap.html">Gdk::Colormap</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>colormap</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classGFC_1_1Gdk_1_1Pixmap.html">Gdk::Pixmap</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>pixmap</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classGFC_1_1Gdk_1_1Bitmap.html">Gdk::Bitmap</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>mask</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>hot_x</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>hot_y</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>
Sets pixmap as the icon for a given drag. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>colormap</em>&nbsp;</td><td>The colormap of the icon. </td></tr>
    <tr><td></td><td valign=top><em>pixmap</em>&nbsp;</td><td>The image data for the icon. </td></tr>
    <tr><td></td><td valign=top><em>mask</em>&nbsp;</td><td>The transparency mask for the icon. </td></tr>
    <tr><td></td><td valign=top><em>hot_x</em>&nbsp;</td><td>The X offset within pixmap of the hotspot. </td></tr>
    <tr><td></td><td valign=top><em>hot_y</em>&nbsp;</td><td>The Y offset within pixmap of the hotspot.</td></tr>
  </table>
</dl>
<br>
GTK+ retains references for the arguments, and will release them when they are no longer needed. In general, <a class="el" href="classGFC_1_1Gtk_1_1DragContext.html#z485_3">set_icon_pixbuf()</a> will be more convenient to use.     </td>
  </tr>
</table>
<a class="anchor" name="z485_4" doxytag="GFC::Gtk::DragContext::set_icon_stock" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::DragContext::set_icon_stock           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Gtk_1_1StockId.html">StockId</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>stock_id</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>hot_x</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>hot_y</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>
Sets the icon for a given drstock_idag from a stock ID. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>stock_id</em>&nbsp;</td><td>The identifier of the stock icon to use for the drag. </td></tr>
    <tr><td></td><td valign=top><em>hot_x</em>&nbsp;</td><td>The X offset within icon of the hotspot. </td></tr>
    <tr><td></td><td valign=top><em>hot_y</em>&nbsp;</td><td>The Y offset within icon of the hotspot. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="z485_1" doxytag="GFC::Gtk::DragContext::set_icon_widget" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::DragContext::set_icon_widget           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gtk_1_1Widget.html">Widget</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>widget</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>hot_x</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>hot_y</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>
Changes the icon for a widget to a given widget. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>widget</em>&nbsp;</td><td>A toplevel window to use as an icon. </td></tr>
    <tr><td></td><td valign=top><em>hot_x</em>&nbsp;</td><td>The X offset within widget of the hotspot. </td></tr>
    <tr><td></td><td valign=top><em>hot_y</em>&nbsp;</td><td>The Y offset within widget of the hotspot.</td></tr>
  </table>
</dl>
<br>
GTK+ will not destroy the icon, so if you don't want it to persist, you should connect to the "drag_end" signal and destroy it yourself.     </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="gtk_2dnd_8hh-source.html">gtk/dnd.hh</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Aug 24 00:34:39 2004 for GFC-UI by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>