File: classGFC_1_1Gdk_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 (741 lines) | stat: -rw-r--r-- 36,312 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
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
<!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::Gdk::DragContext Class Reference</h1>A GdkDragContext C++ wrapper class.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="gtk_2dnd_8hh-source.html">gfc/gdk/dnd.hh</a>&gt;</code>
<p>
<p>Inheritance diagram for GFC::Gdk::DragContext:
<p><center><img src="classGFC_1_1Gdk_1_1DragContext.png" usemap="#GFC::Gdk::DragContext_map" border="0" alt=""></center>
<map name="GFC::Gdk::DragContext_map">
<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">
<area href="classGFC_1_1Gtk_1_1DragContext.html" alt="GFC::Gtk::DragContext" shape="rect" coords="0,224,142,248">
</map>
<a href="classGFC_1_1Gdk_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="z129_0" doxytag="GFC::Gdk::DragContext::~DragContext" ></a>
virtual <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z129_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="anchor" name="z130_0" doxytag="GFC::Gdk::DragContext::gdk_drag_context" ></a>
GdkDragContext * <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z130_0">gdk_drag_context</a> () const
<dl class="el"><dd class="mdescRight">Get a pointer to the GdkDragContext structure. <br></dl><li><a class="anchor" name="z130_1" doxytag="GFC::Gdk::DragContext::operator GdkDragContext *" ></a>
<a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z130_1">operator GdkDragContext *</a> () const
<dl class="el"><dd class="mdescRight">Conversion operator; safely converts a <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html">DragContext</a> to a GdkDragContext pointer. <br></dl><li><a class="anchor" name="z130_2" doxytag="GFC::Gdk::DragContext::protocol" ></a>
<a class="el" href="namespaceGFC_1_1Gdk.html#a281">DragProtocol</a> <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z130_2">protocol</a> () const
<dl class="el"><dd class="mdescRight">Returns the DND protocol which governs this drag. <br></dl><li><a class="anchor" name="z130_3" doxytag="GFC::Gdk::DragContext::is_source" ></a>
bool <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z130_3">is_source</a> () const
<dl class="el"><dd class="mdescRight">Returns <em>true</em> if the context is used on the source side. <br></dl><li><a class="anchor" name="z130_4" doxytag="GFC::Gdk::DragContext::source_window" ></a>
<a class="el" href="classGFC_1_1Gdk_1_1Window.html">Window</a> * <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z130_4">source_window</a> () const
<dl class="el"><dd class="mdescRight">Returns the source window of this drag. <br></dl><li><a class="anchor" name="z130_5" doxytag="GFC::Gdk::DragContext::dest_window" ></a>
<a class="el" href="classGFC_1_1Gdk_1_1Window.html">Window</a> * <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z130_5">dest_window</a> () const
<dl class="el"><dd class="mdescRight">Returns the destination window of this drag. <br></dl><li>bool <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z130_6">targets</a> (std::vector&lt; <a class="el" href="namespaceGFC_1_1Gdk.html#a134">Atom</a> &gt; &amp;target_list) const
<dl class="el"><dd class="mdescRight">Gets a list of targets offered by the source.  <a href="#z130_6"></a><br></dl><li><a class="anchor" name="z130_7" doxytag="GFC::Gdk::DragContext::actions" ></a>
<a class="el" href="namespaceGFC_1_1Gdk.html#a135">DragActionField</a> <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z130_7">actions</a> () const
<dl class="el"><dd class="mdescRight">Returns a bitmask of actions proposed by the source when suggested_action is ACTION_ASK. <br></dl><li><a class="anchor" name="z130_8" doxytag="GFC::Gdk::DragContext::suggested_action" ></a>
<a class="el" href="namespaceGFC_1_1Gdk.html#a135">DragActionField</a> <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z130_8">suggested_action</a> () const
<dl class="el"><dd class="mdescRight">Returns the action suggested by the source. <br></dl><li><a class="anchor" name="z130_9" doxytag="GFC::Gdk::DragContext::action" ></a>
<a class="el" href="namespaceGFC_1_1Gdk.html#a135">DragActionField</a> <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z130_9">action</a> () const
<dl class="el"><dd class="mdescRight">Returns the action chosen by the destination. <br></dl><li><a class="anchor" name="z130_10" doxytag="GFC::Gdk::DragContext::start_time" ></a>
unsigned int <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z130_10">start_time</a> () const
<dl class="el"><dd class="mdescRight">Returns a timestamp recording the start time of this drag. <br></dl><li><a class="el" href="namespaceGFC_1_1Gdk.html#a134">Atom</a> <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z130_11">get_selection</a> () const
<dl class="el"><dd class="mdescRight">Gets the selection atom for the current source window.  <a href="#z130_11"></a><br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Methods</div></td></tr>
<ul>
<li>void <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z131_0">drag_status</a> (<a class="el" href="namespaceGFC_1_1Gdk.html#a135">DragActionField</a> action, unsigned int time)
<dl class="el"><dd class="mdescRight">Selects one of the actions offered by the drag source.  <a href="#z131_0"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z131_1">drop_reply</a> (bool ok, unsigned int time)
<dl class="el"><dd class="mdescRight">Accepts or rejects a drop.  <a href="#z131_1"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z131_2">drop_finish</a> (bool success, unsigned int time)
<dl class="el"><dd class="mdescRight">Ends the drag operation after a drop.  <a href="#z131_2"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z131_3">find_window</a> (int x_root, int y_root, <a class="el" href="classGFC_1_1Gdk_1_1Window.html">Window</a> **dest_window, <a class="el" href="namespaceGFC_1_1Gdk.html#a281">DragProtocol</a> *protocol, const <a class="el" href="classGFC_1_1Gdk_1_1Screen.html">Screen</a> *screen=0)
<dl class="el"><dd class="mdescRight">Finds the destination window and DND protocol to use at the given pointer position.  <a href="#z131_3"></a><br></dl><li>bool <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z131_4">drag_motion</a> (const <a class="el" href="classGFC_1_1Gdk_1_1Window.html">Window</a> &amp;dest_window, <a class="el" href="namespaceGFC_1_1Gdk.html#a281">DragProtocol</a> protocol, int x_root, int y_root, <a class="el" href="namespaceGFC_1_1Gdk.html#a135">DragActionField</a> suggested_action, <a class="el" href="namespaceGFC_1_1Gdk.html#a135">DragActionField</a> possible_actions, unsigned int time)
<dl class="el"><dd class="mdescRight">Updates the drag context when the pointer moves or the set of actions changes.  <a href="#z131_4"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z131_5">drag_drop</a> (unsigned int time)
<dl class="el"><dd class="mdescRight">Drops on the current destination.  <a href="#z131_5"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z131_6">drag_abort</a> (unsigned int time)
<dl class="el"><dd class="mdescRight">Aborts a drag without dropping.  <a href="#z131_6"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z131_7">set_action</a> (<a class="el" href="namespaceGFC_1_1Gdk.html#a135">DragActionField</a> action)
<dl class="el"><dd class="mdescRight">Set the drag action value that specifies what destination should do with the dropped data.  <a href="#z131_7"></a><br></dl></ul>
<h2>Static Public Member Functions</h2>
<ul>
<li><a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a>&lt; <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html">DragContext</a> &gt; <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#e0">drag_begin</a> (const <a class="el" href="classGFC_1_1Gdk_1_1Window.html">Window</a> &amp;window, const std::vector&lt; <a class="el" href="namespaceGFC_1_1Gdk.html#a134">Atom</a> &gt; &amp;targets)
<dl class="el"><dd class="mdescRight">Starts a drag and creates a new drag context for it.  <a href="#e0"></a><br></dl><li>unsigned int <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#e1">drag_get_protocol</a> (unsigned int xid, <a class="el" href="namespaceGFC_1_1Gdk.html#a281">DragProtocol</a> *protocol, const <a class="el" href="classGFC_1_1Gdk_1_1Display.html">Display</a> *display=0)
<dl class="el"><dd class="mdescRight">Finds out the DND protocol supported by a window.  <a href="#e1"></a><br></dl></ul>
<h2>Protected Member Functions</h2>
<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
<ul>
<li><a class="anchor" name="z128_0" doxytag="GFC::Gdk::DragContext::DragContext" ></a>
<a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z128_0">DragContext</a> ()
<dl class="el"><dd class="mdescRight">Constructs a new drag context. <br></dl><li><a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z128_1">DragContext</a> (GdkDragContext *drag_context, bool <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Trackable.html#z143_1">owns_reference</a>=true)
<dl class="el"><dd class="mdescRight">Construct a new <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html">DragContext</a> from an existing GdkDragContext.  <a href="#z128_1"></a><br></dl></ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A GdkDragContext C++ wrapper class. 
<p>
<a class="el" href="classGFC_1_1Gdk_1_1DragContext.html">DragContext</a> provides a low level interface for drag and drop. The X backend of GDK supports both the Xdnd and Motif drag and drop protocols transparently, the Win32 backend supports the WM_DROPFILES protocol.<p>
GTK+ provides a higher level abstraction based on top of this inteface, so it's not normally needed in GTK+ applications. 
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="z128_1" doxytag="GFC::Gdk::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::Gdk::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>owns_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_1Gdk_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>owns_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 in <a class="el" href="classGFC_1_1Gtk_1_1DragContext.html#z482_0">GFC::Gtk::DragContext</a>.
<p>
    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="z131_6" doxytag="GFC::Gdk::DragContext::drag_abort" ></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::Gdk::DragContext::drag_abort           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">unsigned int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>time</em>          </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>
Aborts a drag without dropping. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>time</em>&nbsp;</td><td>The timestamp for this operation.</td></tr>
  </table>
</dl>
<br>
This method is called by the drag source.     </td>
  </tr>
</table>
<a class="anchor" name="e0" doxytag="GFC::Gdk::DragContext::drag_begin" ></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="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a>&lt;<a class="el" href="classGFC_1_1Gdk_1_1DragContext.html">DragContext</a>&gt; GFC::Gdk::DragContext::drag_begin           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Gdk_1_1Window.html">Window</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>window</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const std::vector&lt; <a class="el" href="namespaceGFC_1_1Gdk.html#a134">Atom</a> &gt; &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>targets</em></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>
Starts a drag and creates a new drag context for it. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>window</em>&nbsp;</td><td>The source window for this drag. </td></tr>
    <tr><td></td><td valign=top><em>targets</em>&nbsp;</td><td>A reference to a vector of Atom holding the list of offered targets. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A smart pointer to a newly created <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html">DragContext</a>.</dd></dl>
<br>
This method is called by the drag source.     </td>
  </tr>
</table>
<a class="anchor" name="z131_5" doxytag="GFC::Gdk::DragContext::drag_drop" ></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::Gdk::DragContext::drag_drop           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">unsigned int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>time</em>          </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>
Drops on the current destination. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>time</em>&nbsp;</td><td>The timestamp for this operation.</td></tr>
  </table>
</dl>
<br>
This method is called by the drag source.     </td>
  </tr>
</table>
<a class="anchor" name="e1" doxytag="GFC::Gdk::DragContext::drag_get_protocol" ></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"> unsigned int GFC::Gdk::DragContext::drag_get_protocol           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">unsigned int&nbsp;</td>
          <td class="mdname" nowrap> <em>xid</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceGFC_1_1Gdk.html#a281">DragProtocol</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>protocol</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="classGFC_1_1Gdk_1_1Display.html">Display</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>display</em> = <code>0</code></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>
Finds out the DND protocol supported by a window. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>xid</em>&nbsp;</td><td>The X id of the destination window. </td></tr>
    <tr><td></td><td valign=top><em>protocol</em>&nbsp;</td><td>The location where the supported DND protocol is returned. </td></tr>
    <tr><td></td><td valign=top><em>display</em>&nbsp;</td><td>The <a class="el" href="classGFC_1_1Gdk_1_1Display.html">Display</a> where the destination window resides, or null for the defualt display. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The X id of the window where the drop should happen.</dd></dl>
<br>
The X id may be <em>xid</em> or the X id of a proxy window, or none if xid doesn't support Drag and Drop.     </td>
  </tr>
</table>
<a class="anchor" name="z131_4" doxytag="GFC::Gdk::DragContext::drag_motion" ></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"> bool GFC::Gdk::DragContext::drag_motion           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Gdk_1_1Window.html">Window</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>dest_window</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceGFC_1_1Gdk.html#a281">DragProtocol</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>protocol</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>x_root</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>y_root</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceGFC_1_1Gdk.html#a135">DragActionField</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>suggested_action</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceGFC_1_1Gdk.html#a135">DragActionField</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>possible_actions</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>
Updates the drag context when the pointer moves or the set of actions changes. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>dest_window</em>&nbsp;</td><td>The new destination window, obtained by <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z131_3">find_window()</a>. </td></tr>
    <tr><td></td><td valign=top><em>protocol</em>&nbsp;</td><td>The DND protocol in use, obtained by <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z131_3">find_window()</a>. </td></tr>
    <tr><td></td><td valign=top><em>x_root</em>&nbsp;</td><td>The X position of the pointer in root coordinates. </td></tr>
    <tr><td></td><td valign=top><em>y_root</em>&nbsp;</td><td>The y position of the pointer in root coordinates. </td></tr>
    <tr><td></td><td valign=top><em>suggested_action</em>&nbsp;</td><td>The suggested action. </td></tr>
    <tr><td></td><td valign=top><em>possible_actions</em>&nbsp;</td><td>The possible actions. </td></tr>
    <tr><td></td><td valign=top><em>time</em>&nbsp;</td><td>The timestamp for this operation. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd></dd></dl>
<br>
This method is called by the drag source.     </td>
  </tr>
</table>
<a class="anchor" name="z131_0" doxytag="GFC::Gdk::DragContext::drag_status" ></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::Gdk::DragContext::drag_status           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="namespaceGFC_1_1Gdk.html#a135">DragActionField</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>action</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>
Selects one of the actions offered by the drag source. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>action</em>&nbsp;</td><td>The selected action which will be taken when a drop happens, or 0 to indicate that a drop will not be accepted. </td></tr>
    <tr><td></td><td valign=top><em>time</em>&nbsp;</td><td>The timestamp for this operation.</td></tr>
  </table>
</dl>
<br>
This method is called by the drag destination in response to <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z131_4">drag_motion()</a> called by the drag source.     </td>
  </tr>
</table>
<a class="anchor" name="z131_2" doxytag="GFC::Gdk::DragContext::drop_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::Gdk::DragContext::drop_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>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>
Ends the drag operation after a drop. 
<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>set <em>true</em> if the data was successfully received. </td></tr>
    <tr><td></td><td valign=top><em>time</em>&nbsp;</td><td>The timestamp for this operation.</td></tr>
  </table>
</dl>
<br>
This method is called by the drag destination.     </td>
  </tr>
</table>
<a class="anchor" name="z131_1" doxytag="GFC::Gdk::DragContext::drop_reply" ></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::Gdk::DragContext::drop_reply           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname" nowrap> <em>ok</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>
Accepts or rejects a drop. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>ok</em>&nbsp;</td><td>Set <em>true</em> if the drop is accepted. </td></tr>
    <tr><td></td><td valign=top><em>time</em>&nbsp;</td><td>The timestamp for this operation.</td></tr>
  </table>
</dl>
<br>
This method is called by the drag destination in response to a drop initiated by the drag source.     </td>
  </tr>
</table>
<a class="anchor" name="z131_3" doxytag="GFC::Gdk::DragContext::find_window" ></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::Gdk::DragContext::find_window           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname" nowrap> <em>x_root</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>y_root</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_1Window.html">Window</a> **&nbsp;</td>
          <td class="mdname" nowrap> <em>dest_window</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceGFC_1_1Gdk.html#a281">DragProtocol</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>protocol</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="classGFC_1_1Gdk_1_1Screen.html">Screen</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>screen</em> = <code>0</code></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>
Finds the destination window and DND protocol to use at the given pointer position. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>x_root</em>&nbsp;</td><td>The X position of the pointer in root coordinates. </td></tr>
    <tr><td></td><td valign=top><em>y_root</em>&nbsp;</td><td>The Y position of the pointer in root coordinates. </td></tr>
    <tr><td></td><td valign=top><em>dest_window</em>&nbsp;</td><td>The location to store the destination window in. </td></tr>
    <tr><td></td><td valign=top><em>protocol</em>&nbsp;</td><td>The location to store the DND protocol in. </td></tr>
    <tr><td></td><td valign=top><em>screen</em>&nbsp;</td><td>The screen where the destination window is sought, or null for the screen the source window is on.</td></tr>
  </table>
</dl>
<br>
This method is called by the drag source to obtain the dest_window and protocol parameters for motion().     </td>
  </tr>
</table>
<a class="anchor" name="z130_11" doxytag="GFC::Gdk::DragContext::get_selection" ></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="namespaceGFC_1_1Gdk.html#a134">Atom</a> GFC::Gdk::DragContext::get_selection           </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>
Gets the selection atom for the current source window. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The selection atom. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="z131_7" doxytag="GFC::Gdk::DragContext::set_action" ></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::Gdk::DragContext::set_action           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="namespaceGFC_1_1Gdk.html#a135">DragActionField</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>action</em>          </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>
Set the drag action value that specifies what destination should do with the dropped data. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>action</em>&nbsp;</td><td>The new <a class="el" href="namespaceGFC_1_1Gdk.html#a280">Gdk::DragAction</a> value to set.</td></tr>
  </table>
</dl>
<br>
You would typically call this method from within a <a class="el" href="classGFC_1_1Gtk_1_1Widget.html">Gtk::Widget</a> <em>drag_data_received</em> signal handler. By calling <a class="el" href="classGFC_1_1Gdk_1_1DragContext.html#z130_9">action()</a>, you can inspect the drag action chosen by the drop site and modify its value.     </td>
  </tr>
</table>
<a class="anchor" name="z130_6" doxytag="GFC::Gdk::DragContext::targets" ></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"> bool GFC::Gdk::DragContext::targets           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">std::vector&lt; <a class="el" href="namespaceGFC_1_1Gdk.html#a134">Atom</a> &gt; &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>target_list</em>          </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>
Gets a list of targets offered by the source. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>target_list</em>&nbsp;</td><td>A reference to a vector of Atom to hold the list of targets. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><em>true</em> if the vector is not empty. </dd></dl>
    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="gdk_2dnd_8hh-source.html">gdk/dnd.hh</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Aug 24 00:34:35 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>