File: classGtk_1_1Clipboard.html

package info (click to toggle)
gtkmm2.4 1%3A2.20.3-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 73,860 kB
  • ctags: 20,553
  • sloc: xml: 79,575; sh: 10,120; cpp: 8,347; makefile: 290
file content (1215 lines) | stat: -rw-r--r-- 101,420 bytes parent folder | download
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
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>gtkmm: Gtk::Clipboard Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceGtk.html">Gtk</a>::<a class="el" href="classGtk_1_1Clipboard.html">Clipboard</a>
  </div>
</div>
<div class="contents">
<h1>Gtk::Clipboard Class Reference</h1><!-- doxytag: class="Gtk::Clipboard" --><!-- doxytag: inherits="Glib::Object" -->
<p>The <a class="el" href="classGtk_1_1Clipboard.html" title="The Clipboard object represents a clipboard of data shared between different processes...">Clipboard</a> object represents a clipboard of data shared between different processes or between different widgets in the same process. <a href="#_details">More...</a></p>

<p>Inherits <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html">Glib::Object</a>.</p>
<div class="dynheader">
Collaboration diagram for Gtk::Clipboard:</div>
<div class="dynsection">
<div class="center"><img src="classGtk_1_1Clipboard__coll__graph.png" border="0" usemap="#Gtk_1_1Clipboard_coll__map" alt="Collaboration graph"/></div>
<map name="Gtk_1_1Clipboard_coll__map" id="Gtk_1_1Clipboard_coll__map">
<area shape="rect" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="20,160,111,189"/><area shape="rect" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,125,112"/><area shape="rect" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="12,5,119,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classGtk_1_1Clipboard-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; void, <br class="typebreak"/>
<a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>&amp;, guint &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a231514c83a1a1d1b14aaee247e522a1f">SlotGet</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">For instance: void on_get(Gtk::SelectionData&amp; selection_data, guint info);. <a href="#a231514c83a1a1d1b14aaee247e522a1f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; void &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a325cb088c615bec5f8d143b44d4741ce">SlotClear</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">For instance: void on_clear();. <a href="#a325cb088c615bec5f8d143b44d4741ce"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; void, <br class="typebreak"/>
const <a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>&amp; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a424180e2d14d2bb2f096be10ca2f7059">SlotReceived</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">For instance: void on_received(const SelectionData&amp; selection_data);. <a href="#a424180e2d14d2bb2f096be10ca2f7059"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; void, <br class="typebreak"/>
const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>&amp; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a8878452bd75d07a5dc2f239ff67e5d9e">SlotTextReceived</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">For instance: void on_text_received(const Glib::ustring&amp; text);. <a href="#a8878452bd75d07a5dc2f239ff67e5d9e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; void, <br class="typebreak"/>
const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> &amp;, const <br class="typebreak"/>
<a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01116.html#a32db3d9898c44d3b3a578b560f7758cc">std::string</a>&amp; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a39efb49b4cf08d2f08f62aebf368fa32">SlotRichTextReceived</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">For instance: void on_rich_text_received(const Glib::ustring&amp; format, const std::string&amp; text);. <a href="#a39efb49b4cf08d2f08f62aebf368fa32"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; void, <br class="typebreak"/>
const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ArrayHandle.html">Glib::StringArrayHandle</a>&amp; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a7ec97f4e16280484d0075885c2ca317b">SlotUrisReceived</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">For instance: void on_uris_received(const Glib::StringArrayHandle&amp; uris);. <a href="#a7ec97f4e16280484d0075885c2ca317b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; void, <br class="typebreak"/>
const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak"/>
&lt; <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> &gt;&amp; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a2e92912fa27405ef4efafc1d7fe19fe3">SlotImageReceived</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">For instance: void on_image_received(const Glib::RefPtr&lt;Gdk::Pixbuf&gt;&amp; text);. <a href="#a2e92912fa27405ef4efafc1d7fe19fe3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; void, <br class="typebreak"/>
const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ArrayHandle.html">Glib::StringArrayHandle</a>&amp; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#ad63a6dd13efe8bce4c824c5fb2bbec9f">SlotTargetsReceived</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">For instance: void on_targetsreceived(const Glib::StringArrayHandle&amp; targets);. <a href="#ad63a6dd13efe8bce4c824c5fb2bbec9f"></a><br/></td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a4753c62ad3aea992476feaf84574ca05">~Clipboard</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GtkClipboard*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#aeb465195991ea12f2ee81733a1fa03b0">gobj</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#aeb465195991ea12f2ee81733a1fa03b0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const GtkClipboard*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a307fb72e6fd57d378a981ef0604e4568">gobj</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a307fb72e6fd57d378a981ef0604e4568"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GtkClipboard*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a487b4d31a656a355286187b216d643cd">gobj_copy</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#a487b4d31a656a355286187b216d643cd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Display.html">Gdk::Display</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a696d084d1ef3c7cbe298b4e78e8ea167">get_display</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the <a class="el" href="classGdk_1_1Display.html" title="Gdk::Display object&#39;s purpose is two fold: To grab/ungrab keyboard focus and...">Gdk::Display</a> associated with <em>clipboard</em>. <a href="#a696d084d1ef3c7cbe298b4e78e8ea167"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; const <a class="el" href="classGdk_1_1Display.html">Gdk::Display</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#ac9a759c0daf584d22c8af18c24031f0b">get_display</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the <a class="el" href="classGdk_1_1Display.html" title="Gdk::Display object&#39;s purpose is two fold: To grab/ungrab keyboard focus and...">Gdk::Display</a> associated with <em>clipboard</em>. <a href="#ac9a759c0daf584d22c8af18c24031f0b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a6eed4302482ee376daf47bf5fcc42605">set</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ArrayHandle.html">ArrayHandle_TargetEntry</a>&amp; targets, const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotGet</a>&amp; slot_get, const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotClear</a>&amp; slot_clear)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtually sets the contents of the specified clipboard by providing a list of supported formats for the clipboard data and a function to call to get the actual data when it is requested. <a href="#a6eed4302482ee376daf47bf5fcc42605"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html">Glib::Object</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a77714f58487355b0f34ad154b1a99138">get_owner</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">If the clipboard contents callbacks were set with set_with_owner(), and the set_with_data() or <a class="el" href="classGtk_1_1Clipboard.html#abf8118f4098f9565f1d85d8d88409a1c" title="Clears the contents of the clipboard.">clear()</a> has not subsequently called, returns the owner set by set_with_owner(). <a href="#a77714f58487355b0f34ad154b1a99138"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html">Glib::Object</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a6c68c91213f935715c5c9b1a612d98f6">get_owner</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">If the clipboard contents callbacks were set with set_with_owner(), and the set_with_data() or <a class="el" href="classGtk_1_1Clipboard.html#abf8118f4098f9565f1d85d8d88409a1c" title="Clears the contents of the clipboard.">clear()</a> has not subsequently called, returns the owner set by set_with_owner(). <a href="#a6c68c91213f935715c5c9b1a612d98f6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#abf8118f4098f9565f1d85d8d88409a1c">clear</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the contents of the clipboard. <a href="#abf8118f4098f9565f1d85d8d88409a1c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#aaeee306b25ea1e0206e3ffb30af93c32">set_text</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>&amp; text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the contents of the clipboard to the given UTF-8 string. <a href="#aaeee306b25ea1e0206e3ffb30af93c32"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a49841702b88e06547f48b7f0b9c1fe5d">set_image</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> &gt;&amp; pixbuf)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the contents of the clipboard to the given <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>. <a href="#a49841702b88e06547f48b7f0b9c1fe5d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a7b89b96071d9d6019eb35203538ac6a6">request_contents</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>&amp; target, const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotReceived</a>&amp; slot)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Requests the contents of clipboard as the given target. <a href="#a7b89b96071d9d6019eb35203538ac6a6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a922ca2e0595b10ec7bcad59632b00f34">request_text</a> (const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotTextReceived</a>&amp; slot)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Requests the contents of the clipboard as text. <a href="#a922ca2e0595b10ec7bcad59632b00f34"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a2fe9763417d17a586bcae713567800d8">request_rich_text</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1TextBuffer.html">TextBuffer</a> &gt;&amp; buffer, const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotRichTextReceived</a>&amp; slot)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Requests the contents of the clipboard as rich text. <a href="#a2fe9763417d17a586bcae713567800d8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a482e597790498098d3d42751267418bc">request_uris</a> (const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotUrisReceived</a>&amp; slot)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Requests the contents of the clipboard as URIs. <a href="#a482e597790498098d3d42751267418bc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#acf9daec8f085ea57218a0ced6bc9e949">request_image</a> (const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotImageReceived</a>&amp; slot)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Requests the contents of the clipboard as image. <a href="#acf9daec8f085ea57218a0ced6bc9e949"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#ae3be3a0d85849117a284f8a1cbfdb98e">request_targets</a> (const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotTargetsReceived</a>&amp; slot)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Requests the contents of the clipboard as list of supported targets. <a href="#ae3be3a0d85849117a284f8a1cbfdb98e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a2110b8de6c2e61a1cf7d71cc02ef9e47">wait_for_contents</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>&amp; target) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Requests the contents of the clipboard using the given target. <a href="#a2110b8de6c2e61a1cf7d71cc02ef9e47"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#aeac490f4cbb988fe5b6e5eefb33c2201">wait_for_text</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Requests the contents of the clipboard as text and converts the result to UTF-8 if necessary. <a href="#aeac490f4cbb988fe5b6e5eefb33c2201"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01116.html#a32db3d9898c44d3b3a578b560f7758cc">std::string</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a0f02a96840cfe953d1ef30d64c8e1409">wait_for_rich_text</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1TextBuffer.html">TextBuffer</a> &gt;&amp; buffer, <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01116.html#a32db3d9898c44d3b3a578b560f7758cc">std::string</a>&amp; format)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#acd3d40ebf095dc8ec7e0ba786ea99b0d">wait_for_image</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Requests the contents of the clipboard as image and converts the result to a <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>. <a href="#acd3d40ebf095dc8ec7e0ba786ea99b0d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#ac30a1145696f41b5feccbbe0346702fc">wait_is_text_available</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Test to see if there is text available to be pasted This is done by requesting the TARGETS atom and checking if it contains any of the supported text targets. <a href="#ac30a1145696f41b5feccbbe0346702fc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a05294bafc2322b3688dcc85523ae37db">wait_is_rich_text_available</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1TextBuffer.html">TextBuffer</a> &gt;&amp; buffer) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Test to see if there is rich text available to be pasted This is done by requesting the TARGETS atom and checking if it contains any of the supported rich text targets. <a href="#a05294bafc2322b3688dcc85523ae37db"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#afcc67f894892de4918e9f8e7fb6813e7">wait_is_image_available</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Test to see if there is an image available to be pasted This is done by requesting the TARGETS atom and checking if it contains any of the supported image targets. <a href="#afcc67f894892de4918e9f8e7fb6813e7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#af0c118eea5e64eabf911558d915af8be">wait_is_uris_available</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Test to see if there is a list of URIs available to be pasted This is done by requesting the TARGETS atom and checking if it contains the URI targets. <a href="#af0c118eea5e64eabf911558d915af8be"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#ab1c3c7516af21ecb6a2db4db6cb8012b">wait_is_target_available</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>&amp; target)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if a clipboard supports pasting data of a given type. <a href="#ab1c3c7516af21ecb6a2db4db6cb8012b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ArrayHandle.html">Glib::StringArrayHandle</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a168e8bd1b2d97e58ed2ad465dc2f1bf8">wait_for_targets</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a list of targets that are present on the clipboard. <a href="#a168e8bd1b2d97e58ed2ad465dc2f1bf8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ArrayHandle.html">Glib::StringArrayHandle</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#adc50aa1d428322a50d307fc6c0d23dc9">wait_for_uris</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Requests the contents of the clipboard as URIs. <a href="#adc50aa1d428322a50d307fc6c0d23dc9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a89ddaa80ac9aa1664aff952d4f25630f">set_can_store</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ArrayHandle.html">ArrayHandle_TargetEntry</a>&amp; targets)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Hints that the clipboard data should be stored somewhere when the application exits or when <a class="el" href="classGtk_1_1Clipboard.html#a47f0293ba7f80821537797537d5b6408" title="Stores the current clipboard data somewhere so that it will stay around after the...">store()</a> is called. <a href="#a89ddaa80ac9aa1664aff952d4f25630f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a5f2fc04281ab4e2370098bfeb10108ac">set_can_store</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Hints that all forms of clipboard data should be stored somewhere when the application exits or when <a class="el" href="classGtk_1_1Clipboard.html#a47f0293ba7f80821537797537d5b6408" title="Stores the current clipboard data somewhere so that it will stay around after the...">store()</a> is called. <a href="#a5f2fc04281ab4e2370098bfeb10108ac"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a47f0293ba7f80821537797537d5b6408">store</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores the current clipboard data somewhere so that it will stay around after the application has quit. <a href="#a47f0293ba7f80821537797537d5b6408"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1SignalProxy1.html">Glib::SignalProxy1</a>&lt; void, <br class="typebreak"/>
GdkEventOwnerChange* &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a3d19cb78841fd7e73fdddca0daeac22b">signal_owner_change</a> ()</td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Clipboard.html">Clipboard</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a163dde254aec1314c6aee6bbdb47fefe">get</a> (GdkAtom selection=GDK_SELECTION_CLIPBOARD)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the clipboard object for the given selection. <a href="#a163dde254aec1314c6aee6bbdb47fefe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Clipboard.html">Clipboard</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#a880ad980703636e3aed1f25c066ebbc9">get_for_display</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Display.html">Gdk::Display</a> &gt;&amp; display, GdkAtom selection=GDK_SELECTION_CLIPBOARD)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the clipboard object for the given selection. <a href="#a880ad980703636e3aed1f25c066ebbc9"></a><br/></td></tr>
<tr><td colspan="2"><h2>Related Functions</h2></td></tr>
<tr><td colspan="2"><p>(Note that these are not member functions.) </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Clipboard.html">Gtk::Clipboard</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Clipboard.html#ad2c721a5e6f7cee3edc204c496a66044">wrap</a> (GtkClipboard* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#ad2c721a5e6f7cee3edc204c496a66044"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>The <a class="el" href="classGtk_1_1Clipboard.html" title="The Clipboard object represents a clipboard of data shared between different processes...">Clipboard</a> object represents a clipboard of data shared between different processes or between different widgets in the same process. </p>
<p>Each clipboard is identified by a name encoded as a GdkAtom. * (Conversion to and from strings can be done with gdk_atom_intern() and gdk_atom_name().) The default clipboard corresponds to the "CLIPBOARD" atom; another commonly used clipboard is the "PRIMARY" clipboard, which, in X, traditionally contains the currently selected text.</p>
<p>To support having a number of different formats on the clipboard at the same time, the clipboard mechanism allows providing callbacks instead of the actual data. When you set the contents of the clipboard, you can either supply the data directly (via functions like <a class="el" href="classGtk_1_1Clipboard.html#aaeee306b25ea1e0206e3ffb30af93c32" title="Sets the contents of the clipboard to the given UTF-8 string.">set_text()</a>), or you can supply a callback to be called at a later time when the data is needed (via <a class="el" href="classGtk_1_1Clipboard.html#a6eed4302482ee376daf47bf5fcc42605" title="Virtually sets the contents of the specified clipboard by providing a list of supported...">set()</a>.) Providing a callback also avoids having to make copies of the data when it is not needed.</p>
<p>Requesting the data from the clipboard is essentially asynchronous. If the contents of the clipboard are provided within the same process, then a direct function call will be made to retrieve the data, but if they are provided by another process, then the data needs to be retrieved from the other process, which may take some time. To avoid blocking the user interface, the call to request the selection, <a class="el" href="classGtk_1_1Clipboard.html#a7b89b96071d9d6019eb35203538ac6a6" title="Requests the contents of clipboard as the given target.">request_contents()</a> takes a callback that will be called when the contents are received (or when the request fails.) If you don't want to deal with providing a separate callback, you can also use <a class="el" href="classGtk_1_1Clipboard.html#a2110b8de6c2e61a1cf7d71cc02ef9e47" title="Requests the contents of the clipboard using the given target.">wait_for_contents()</a>. This runs the GLib main loop recursively waiting for the contents. This can simplify the code flow, but you still have to be aware that other callbacks in your program can be called while this recursive mainloop is running.</p>
<p>Along with the functions to get the clipboard contents as an arbitrary data chunk, there are also functions to retrieve it as text, <a class="el" href="classGtk_1_1Clipboard.html#a922ca2e0595b10ec7bcad59632b00f34" title="Requests the contents of the clipboard as text.">request_text()</a> and <a class="el" href="classGtk_1_1Clipboard.html#aeac490f4cbb988fe5b6e5eefb33c2201" title="Requests the contents of the clipboard as text and converts the result to UTF-8 if...">wait_for_text()</a>. These functions take care of determining which formats are advertised by the clipboard provider, asking for the clipboard in the best available format and converting the results into the UTF-8 encoding. </p>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a325cb088c615bec5f8d143b44d4741ce"></a><!-- doxytag: member="Gtk::Clipboard::SlotClear" ref="a325cb088c615bec5f8d143b44d4741ce" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt;void&gt; <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">Gtk::Clipboard::SlotClear</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>For instance: void on_clear();. </p>

</div>
</div>
<a class="anchor" id="a231514c83a1a1d1b14aaee247e522a1f"></a><!-- doxytag: member="Gtk::Clipboard::SlotGet" ref="a231514c83a1a1d1b14aaee247e522a1f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt;void, <a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>&amp;, guint&gt; <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">Gtk::Clipboard::SlotGet</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>For instance: void on_get(Gtk::SelectionData&amp; selection_data, guint info);. </p>

</div>
</div>
<a class="anchor" id="a2e92912fa27405ef4efafc1d7fe19fe3"></a><!-- doxytag: member="Gtk::Clipboard::SlotImageReceived" ref="a2e92912fa27405ef4efafc1d7fe19fe3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt;void, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>&gt;&amp;&gt; <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">Gtk::Clipboard::SlotImageReceived</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>For instance: void on_image_received(const Glib::RefPtr&lt;Gdk::Pixbuf&gt;&amp; text);. </p>

</div>
</div>
<a class="anchor" id="a424180e2d14d2bb2f096be10ca2f7059"></a><!-- doxytag: member="Gtk::Clipboard::SlotReceived" ref="a424180e2d14d2bb2f096be10ca2f7059" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt;void, const <a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>&amp;&gt; <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">Gtk::Clipboard::SlotReceived</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>For instance: void on_received(const SelectionData&amp; selection_data);. </p>

</div>
</div>
<a class="anchor" id="a39efb49b4cf08d2f08f62aebf368fa32"></a><!-- doxytag: member="Gtk::Clipboard::SlotRichTextReceived" ref="a39efb49b4cf08d2f08f62aebf368fa32" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt;void, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>&amp;, const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01116.html#a32db3d9898c44d3b3a578b560f7758cc">std::string</a>&amp;&gt; <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">Gtk::Clipboard::SlotRichTextReceived</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>For instance: void on_rich_text_received(const Glib::ustring&amp; format, const std::string&amp; text);. </p>

</div>
</div>
<a class="anchor" id="ad63a6dd13efe8bce4c824c5fb2bbec9f"></a><!-- doxytag: member="Gtk::Clipboard::SlotTargetsReceived" ref="ad63a6dd13efe8bce4c824c5fb2bbec9f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt;void, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ArrayHandle.html">Glib::StringArrayHandle</a>&amp;&gt; <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">Gtk::Clipboard::SlotTargetsReceived</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>For instance: void on_targetsreceived(const Glib::StringArrayHandle&amp; targets);. </p>

</div>
</div>
<a class="anchor" id="a8878452bd75d07a5dc2f239ff67e5d9e"></a><!-- doxytag: member="Gtk::Clipboard::SlotTextReceived" ref="a8878452bd75d07a5dc2f239ff67e5d9e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt;void, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>&amp;&gt; <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">Gtk::Clipboard::SlotTextReceived</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>For instance: void on_text_received(const Glib::ustring&amp; text);. </p>

</div>
</div>
<a class="anchor" id="a7ec97f4e16280484d0075885c2ca317b"></a><!-- doxytag: member="Gtk::Clipboard::SlotUrisReceived" ref="a7ec97f4e16280484d0075885c2ca317b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt;void, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ArrayHandle.html">Glib::StringArrayHandle</a>&amp;&gt; <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">Gtk::Clipboard::SlotUrisReceived</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>For instance: void on_uris_received(const Glib::StringArrayHandle&amp; uris);. </p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4753c62ad3aea992476feaf84574ca05"></a><!-- doxytag: member="Gtk::Clipboard::~Clipboard" ref="a4753c62ad3aea992476feaf84574ca05" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gtk::Clipboard::~Clipboard </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="abf8118f4098f9565f1d85d8d88409a1c"></a><!-- doxytag: member="Gtk::Clipboard::clear" ref="abf8118f4098f9565f1d85d8d88409a1c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::Clipboard::clear </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Clears the contents of the clipboard. </p>
<p>Generally this should only be called between the time you call <a class="el" href="classGtk_1_1Clipboard.html#a6eed4302482ee376daf47bf5fcc42605" title="Virtually sets the contents of the specified clipboard by providing a list of supported...">set()</a> and when the slot_clear you supplied is called. Otherwise, the clipboard may be owned by someone else. </p>

</div>
</div>
<a class="anchor" id="a163dde254aec1314c6aee6bbdb47fefe"></a><!-- doxytag: member="Gtk::Clipboard::get" ref="a163dde254aec1314c6aee6bbdb47fefe" args="(GdkAtom selection=GDK_SELECTION_CLIPBOARD)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGtk_1_1Clipboard.html">Clipboard</a>&gt; Gtk::Clipboard::get </td>
          <td>(</td>
          <td class="paramtype">GdkAtom&#160;</td>
          <td class="paramname"> <em>selection</em> = <code>GDK_SELECTION_CLIPBOARD</code></td>
          <td>&#160;)&#160;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the clipboard object for the given selection. </p>
<p>See <a class="el" href="classGtk_1_1Clipboard.html#a880ad980703636e3aed1f25c066ebbc9" title="Returns the clipboard object for the given selection.">get_for_display()</a> for complete details. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>selection</em>&#160;</td><td>A Gdk::Atom which identifies the clipboard to use. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The appropriate clipboard object. If no clipboard already exists, a new one will be created. Once a clipboard object has been created, it is persistent and, since it is owned by GTK+, must not be freed or unreffed. </dd></dl>

</div>
</div>
<a class="anchor" id="ac9a759c0daf584d22c8af18c24031f0b"></a><!-- doxytag: member="Gtk::Clipboard::get_display" ref="ac9a759c0daf584d22c8af18c24031f0b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classGdk_1_1Display.html">Gdk::Display</a>&gt; Gtk::Clipboard::get_display </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the <a class="el" href="classGdk_1_1Display.html" title="Gdk::Display object&#39;s purpose is two fold: To grab/ungrab keyboard focus and...">Gdk::Display</a> associated with <em>clipboard</em>. </p>
<dl class="since_2_2"><dt><b><a class="el" href="since_2_2.html#_since_2_2000093">Since gtkmm 2.2:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGdk_1_1Display.html" title="Gdk::Display object&#39;s purpose is two fold: To grab/ungrab keyboard focus and...">Gdk::Display</a> associated with <em>clipboard</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="a696d084d1ef3c7cbe298b4e78e8ea167"></a><!-- doxytag: member="Gtk::Clipboard::get_display" ref="a696d084d1ef3c7cbe298b4e78e8ea167" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Display.html">Gdk::Display</a>&gt; Gtk::Clipboard::get_display </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the <a class="el" href="classGdk_1_1Display.html" title="Gdk::Display object&#39;s purpose is two fold: To grab/ungrab keyboard focus and...">Gdk::Display</a> associated with <em>clipboard</em>. </p>
<dl class="since_2_2"><dt><b><a class="el" href="since_2_2.html#_since_2_2000092">Since gtkmm 2.2:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGdk_1_1Display.html" title="Gdk::Display object&#39;s purpose is two fold: To grab/ungrab keyboard focus and...">Gdk::Display</a> associated with <em>clipboard</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="a880ad980703636e3aed1f25c066ebbc9"></a><!-- doxytag: member="Gtk::Clipboard::get_for_display" ref="a880ad980703636e3aed1f25c066ebbc9" args="(const Glib::RefPtr&lt; Gdk::Display &gt; &amp;display, GdkAtom selection=GDK_SELECTION_CLIPBOARD)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGtk_1_1Clipboard.html">Clipboard</a>&gt; Gtk::Clipboard::get_for_display </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Display.html">Gdk::Display</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>display</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GdkAtom&#160;</td>
          <td class="paramname"> <em>selection</em> = <code>GDK_SELECTION_CLIPBOARD</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the clipboard object for the given selection. </p>
<p>Cut/copy/paste menu items and keyboard shortcuts should use the default clipboard, returned by passing Gdk::SELECTION_CLIPBOARD for <em>selection</em>. (Gdk::NONE is supported as a synonym for GDK_SELECTION_CLIPBOARD for backwards compatibility reasons.) The currently-selected object or text should be provided on the clipboard identified by Gdk::SELECTION_PRIMARY. Cut/copy/paste menu items conceptually copy the contents of the Gdk::SELECTION_PRIMARY clipboard to the default clipboard, i.e. they copy the selection to what the user sees as the clipboard.</p>
<p>(Passing Gdk::NONE is the same as using &lt;literal&gt;gdk_atom_intern ("CLIPBOARD", <code>false</code>)&lt;/literal&gt;. See &lt;ulink url="http://www.freedesktop.org/Standards/clipboards-spec"&gt; <a href="http://www.freedesktop.org/Standards/clipboards-spec">http://www.freedesktop.org/Standards/clipboards-spec</a>&lt;/ulink&gt; for a detailed discussion of the "CLIPBOARD" vs. "PRIMARY" selections under the X window system. On Win32 the Gdk::SELECTION_PRIMARY clipboard is essentially ignored.)</p>
<p>It's possible to have arbitrary named clipboards; if you do invent new clipboards, you should prefix the selection name with an underscore (because the ICCCM requires that nonstandard atoms are underscore-prefixed), and namespace it as well. For example, if your application called "Foo" has a special-purpose clipboard, you might call it "_FOO_SPECIAL_CLIPBOARD".</p>
<dl class="since_2_2"><dt><b><a class="el" href="since_2_2.html#_since_2_2000091">Since gtkmm 2.2:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>display</em>&#160;</td><td>The display for which the clipboard is to be retrieved or created. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>selection</em>&#160;</td><td>A Gdk::Atom which identifies the clipboard to use. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The appropriate clipboard object. If no clipboard already exists, a new one will be created. Once a clipboard object has been created, it is persistent and, since it is owned by GTK+, must not be freed or unrefd. </dd></dl>

</div>
</div>
<a class="anchor" id="a6c68c91213f935715c5c9b1a612d98f6"></a><!-- doxytag: member="Gtk::Clipboard::get_owner" ref="a6c68c91213f935715c5c9b1a612d98f6" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html">Glib::Object</a>&gt; Gtk::Clipboard::get_owner </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>If the clipboard contents callbacks were set with set_with_owner(), and the set_with_data() or <a class="el" href="classGtk_1_1Clipboard.html#abf8118f4098f9565f1d85d8d88409a1c" title="Clears the contents of the clipboard.">clear()</a> has not subsequently called, returns the owner set by set_with_owner(). </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The owner of the clipboard, if any; otherwise <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a77714f58487355b0f34ad154b1a99138"></a><!-- doxytag: member="Gtk::Clipboard::get_owner" ref="a77714f58487355b0f34ad154b1a99138" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html">Glib::Object</a>&gt; Gtk::Clipboard::get_owner </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>If the clipboard contents callbacks were set with set_with_owner(), and the set_with_data() or <a class="el" href="classGtk_1_1Clipboard.html#abf8118f4098f9565f1d85d8d88409a1c" title="Clears the contents of the clipboard.">clear()</a> has not subsequently called, returns the owner set by set_with_owner(). </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The owner of the clipboard, if any; otherwise <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a307fb72e6fd57d378a981ef0604e4568"></a><!-- doxytag: member="Gtk::Clipboard::gobj" ref="a307fb72e6fd57d378a981ef0604e4568" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GtkClipboard* Gtk::Clipboard::gobj </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C GObject. </p>

<p>Reimplemented from <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html#a778a94181132976bbfb0519793f3b32e">Glib::ObjectBase</a>.</p>

</div>
</div>
<a class="anchor" id="aeb465195991ea12f2ee81733a1fa03b0"></a><!-- doxytag: member="Gtk::Clipboard::gobj" ref="aeb465195991ea12f2ee81733a1fa03b0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GtkClipboard* Gtk::Clipboard::gobj </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C GObject. </p>

<p>Reimplemented from <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html#a4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.</p>

</div>
</div>
<a class="anchor" id="a487b4d31a656a355286187b216d643cd"></a><!-- doxytag: member="Gtk::Clipboard::gobj_copy" ref="a487b4d31a656a355286187b216d643cd" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GtkClipboard* Gtk::Clipboard::gobj_copy </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. </p>

</div>
</div>
<a class="anchor" id="a7b89b96071d9d6019eb35203538ac6a6"></a><!-- doxytag: member="Gtk::Clipboard::request_contents" ref="a7b89b96071d9d6019eb35203538ac6a6" args="(const Glib::ustring &amp;target, const SlotReceived &amp;slot)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::Clipboard::request_contents </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"> <em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotReceived</a> &amp;&#160;</td>
          <td class="paramname"> <em>slot</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Requests the contents of clipboard as the given target. </p>
<p>When the results of the result are later received the supplied callback will be called.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>target</em>&#160;</td><td>The form into which the clipboard owner should convert the selection. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>slot</em>&#160;</td><td>A function to call when the results are received (or the retrieval fails). If the retrieval fails the length field of selection_data will be negative. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="acf9daec8f085ea57218a0ced6bc9e949"></a><!-- doxytag: member="Gtk::Clipboard::request_image" ref="acf9daec8f085ea57218a0ced6bc9e949" args="(const SlotImageReceived &amp;slot)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::Clipboard::request_image </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotImageReceived</a> &amp;&#160;</td>
          <td class="paramname"> <em>slot</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Requests the contents of the clipboard as image. </p>
<p>When the image is later received, it will be converted to a <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>. This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait.</p>
<p>The pixbuf parameter to slot will contain the resulting pixbuf if the request succeeded, or will be empty if it failed. This could happen for various reasons, in particular if the clipboard was empty or if the contents of the clipboard could not be converted into image form.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>slot,:</em>&#160;</td><td>a function to call when the text is received, or the retrieval fails. (It will always be called one way or the other.) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2fe9763417d17a586bcae713567800d8"></a><!-- doxytag: member="Gtk::Clipboard::request_rich_text" ref="a2fe9763417d17a586bcae713567800d8" args="(const Glib::RefPtr&lt; TextBuffer &gt; &amp;buffer, const SlotRichTextReceived &amp;slot)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::Clipboard::request_rich_text </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1TextBuffer.html">TextBuffer</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotRichTextReceived</a> &amp;&#160;</td>
          <td class="paramname"> <em>slot</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Requests the contents of the clipboard as rich text. </p>
<p>When the rich text is later received, callback will be called.</p>
<p>The text parameter to the callback will contain the resulting rich text if the request succeeded, or an empty string if it failed. This function can fail for various reasons, in particular if the clipboard was empty or if the contents of the clipboard could not be converted into rich text form.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>slot,:</em>&#160;</td><td>a function to call when the text is received, or the retrieval fails. (It will always be called one way or the other.) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae3be3a0d85849117a284f8a1cbfdb98e"></a><!-- doxytag: member="Gtk::Clipboard::request_targets" ref="ae3be3a0d85849117a284f8a1cbfdb98e" args="(const SlotTargetsReceived &amp;slot)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::Clipboard::request_targets </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotTargetsReceived</a> &amp;&#160;</td>
          <td class="paramname"> <em>slot</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Requests the contents of the clipboard as list of supported targets. </p>
<p>When the list is later received, callback will be called.</p>
<p>The targets parameter to slot will contain the resulting targets if the request succeeded.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>slot</em>&#160;</td><td>a function to call when the targets are received, or the retrieval fails. (It will always be called one way or the other.) Remember that <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/group__ContHandles.html#ga8e243b697be740f5f7d4b578ae50db41">Glib::StringArrayHandle</a> is an intermediate type, so you should convert it to a standard C++ container.</td></tr>
  </table>
  </dd>
</dl>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000061">Since gtkmm 2.4:</a></b></dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a922ca2e0595b10ec7bcad59632b00f34"></a><!-- doxytag: member="Gtk::Clipboard::request_text" ref="a922ca2e0595b10ec7bcad59632b00f34" args="(const SlotTextReceived &amp;slot)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::Clipboard::request_text </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotTextReceived</a> &amp;&#160;</td>
          <td class="paramname"> <em>slot</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Requests the contents of the clipboard as text. </p>
<p>When the text is later received, it will be converted to UTF-8 if necessary, and slot will be called.</p>
<p>The text parameter to slot will contain the resulting text if the request succeeded, or will be empty if it failed. This could happen for various reasons, in particular if the clipboard was empty or if the contents of the clipboard could not be converted into text form.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>slot,:</em>&#160;</td><td>a function to call when the text is received, or the retrieval fails. (It will always be called one way or the other.) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a482e597790498098d3d42751267418bc"></a><!-- doxytag: member="Gtk::Clipboard::request_uris" ref="a482e597790498098d3d42751267418bc" args="(const SlotUrisReceived &amp;slot)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::Clipboard::request_uris </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotUrisReceived</a> &amp;&#160;</td>
          <td class="paramname"> <em>slot</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Requests the contents of the clipboard as URIs. </p>
<p>When the URIs are later received <em>slot</em> will be called.</p>
<p>The uris parameter to <em>slot</em> will contain the resulting array of URIs if the request succeeded, or an empty list if it failed. This could happen for various reasons, in particular if the clipboard was empty or if the contents of the clipboard could not be converted into URI form.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>slot</em>&#160;</td><td>A slot to call when the URIs are received, or the retrieval fails. (It will always be called one way or the other.)</td></tr>
  </table>
  </dd>
</dl>
<dl class="since_2_14"><dt><b><a class="el" href="since_2_14.html#_since_2_14000042">Since gtkmm 2.14:</a></b></dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a6eed4302482ee376daf47bf5fcc42605"></a><!-- doxytag: member="Gtk::Clipboard::set" ref="a6eed4302482ee376daf47bf5fcc42605" args="(const ArrayHandle_TargetEntry &amp;targets, const SlotGet &amp;slot_get, const SlotClear &amp;slot_clear)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gtk::Clipboard::set </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ArrayHandle.html">ArrayHandle_TargetEntry</a> &amp;&#160;</td>
          <td class="paramname"> <em>targets</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotGet</a> &amp;&#160;</td>
          <td class="paramname"> <em>slot_get</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotClear</a> &amp;&#160;</td>
          <td class="paramname"> <em>slot_clear</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Virtually sets the contents of the specified clipboard by providing a list of supported formats for the clipboard data and a function to call to get the actual data when it is requested. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>targets</em>&#160;</td><td>Information about the available forms for the clipboard data. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>slot_get</em>&#160;</td><td>method to call to get the actual clipboard data. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>slot_clear</em>&#160;</td><td>When the clipboard contents are set again, this method will be called, and slot_get will not be subsequently called.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if setting the clipboard data succeeded. If setting the clipboard data failed then the provided callback methods will be ignored. </dd></dl>

</div>
</div>
<a class="anchor" id="a5f2fc04281ab4e2370098bfeb10108ac"></a><!-- doxytag: member="Gtk::Clipboard::set_can_store" ref="a5f2fc04281ab4e2370098bfeb10108ac" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::Clipboard::set_can_store </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Hints that all forms of clipboard data should be stored somewhere when the application exits or when <a class="el" href="classGtk_1_1Clipboard.html#a47f0293ba7f80821537797537d5b6408" title="Stores the current clipboard data somewhere so that it will stay around after the...">store()</a> is called. </p>
<p>This value is reset when the clipboard owner changes. Where the clipboard data is stored is platform dependent, see <a class="el" href="classGdk_1_1Display.html#a0d31c8b4dfc1aca3b747497bfa2e60de" title="Issues a request to the clipboard manager to store the clipboard data, saving all...">Gdk::Display::store_clipboard()</a> for more information. </p>

</div>
</div>
<a class="anchor" id="a89ddaa80ac9aa1664aff952d4f25630f"></a><!-- doxytag: member="Gtk::Clipboard::set_can_store" ref="a89ddaa80ac9aa1664aff952d4f25630f" args="(const ArrayHandle_TargetEntry &amp;targets)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::Clipboard::set_can_store </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ArrayHandle.html">ArrayHandle_TargetEntry</a> &amp;&#160;</td>
          <td class="paramname"> <em>targets</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Hints that the clipboard data should be stored somewhere when the application exits or when <a class="el" href="classGtk_1_1Clipboard.html#a47f0293ba7f80821537797537d5b6408" title="Stores the current clipboard data somewhere so that it will stay around after the...">store()</a> is called. </p>
<p>This value is reset when the clipboard owner changes. Where the clipboard data is stored is platform dependent, see <a class="el" href="classGdk_1_1Display.html#a0d31c8b4dfc1aca3b747497bfa2e60de" title="Issues a request to the clipboard manager to store the clipboard data, saving all...">Gdk::Display::store_clipboard()</a> for more information.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>targets</em>&#160;</td><td>Array containing information about which forms should be stored. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a49841702b88e06547f48b7f0b9c1fe5d"></a><!-- doxytag: member="Gtk::Clipboard::set_image" ref="a49841702b88e06547f48b7f0b9c1fe5d" args="(const Glib::RefPtr&lt; Gdk::Pixbuf &gt; &amp;pixbuf)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::Clipboard::set_image </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>pixbuf</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the contents of the clipboard to the given <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>. </p>
<p>GTK+ will take responsibility for responding for requests for the image, and for converting the image into the requested format.</p>
<dl class="since_2_6"><dt><b><a class="el" href="since_2_6.html#_since_2_6000053">Since gtkmm 2.6:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pixbuf</em>&#160;</td><td>A <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aaeee306b25ea1e0206e3ffb30af93c32"></a><!-- doxytag: member="Gtk::Clipboard::set_text" ref="aaeee306b25ea1e0206e3ffb30af93c32" args="(const Glib::ustring &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::Clipboard::set_text </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"> <em>text</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the contents of the clipboard to the given UTF-8 string. </p>
<p>GTK+ will make a copy of the text and take responsibility for responding for requests for the text, and for converting the text into the requested format.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>text</em>&#160;</td><td>A UTF-8 string. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a3d19cb78841fd7e73fdddca0daeac22b"></a><!-- doxytag: member="Gtk::Clipboard::signal_owner_change" ref="a3d19cb78841fd7e73fdddca0daeac22b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1SignalProxy1.html">Glib::SignalProxy1</a>&lt; void,GdkEventOwnerChange* &gt; Gtk::Clipboard::signal_owner_change </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="user"><dt><b>Prototype:</b></dt><dd><code>void on_my_owner_change(GdkEventOwnerChange* event)</code> </dd></dl>

</div>
</div>
<a class="anchor" id="a47f0293ba7f80821537797537d5b6408"></a><!-- doxytag: member="Gtk::Clipboard::store" ref="a47f0293ba7f80821537797537d5b6408" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::Clipboard::store </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Stores the current clipboard data somewhere so that it will stay around after the application has quit. </p>
<dl class="since_2_6"><dt><b><a class="el" href="since_2_6.html#_since_2_6000057">Since gtkmm 2.6:</a></b></dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a2110b8de6c2e61a1cf7d71cc02ef9e47"></a><!-- doxytag: member="Gtk::Clipboard::wait_for_contents" ref="a2110b8de6c2e61a1cf7d71cc02ef9e47" args="(const Glib::ustring &amp;target) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a> Gtk::Clipboard::wait_for_contents </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"> <em>target</em></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Requests the contents of the clipboard using the given target. </p>
<p>This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>target</em>&#160;</td><td>The form into which the clipboard owner should convert the selection.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a> object, which will be invalid if retrieving the given target failed. </dd></dl>

</div>
</div>
<a class="anchor" id="acd3d40ebf095dc8ec7e0ba786ea99b0d"></a><!-- doxytag: member="Gtk::Clipboard::wait_for_image" ref="acd3d40ebf095dc8ec7e0ba786ea99b0d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>&gt; Gtk::Clipboard::wait_for_image </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Requests the contents of the clipboard as image and converts the result to a <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>. </p>
<p>This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait.</p>
<dl class="since_2_6"><dt><b><a class="el" href="since_2_6.html#_since_2_6000054">Since gtkmm 2.6:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A newly-allocated <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> object which must be disposed with Glib::object_unref(), or <code>0</code> if retrieving the selection data failed. (This could happen for various reasons, in particular if the clipboard was empty or if the contents of the clipboard could not be converted into an image.). </dd></dl>

</div>
</div>
<a class="anchor" id="a0f02a96840cfe953d1ef30d64c8e1409"></a><!-- doxytag: member="Gtk::Clipboard::wait_for_rich_text" ref="a0f02a96840cfe953d1ef30d64c8e1409" args="(const Glib::RefPtr&lt; TextBuffer &gt; &amp;buffer, std::string &amp;format)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01116.html#a32db3d9898c44d3b3a578b560f7758cc">std::string</a> Gtk::Clipboard::wait_for_rich_text </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1TextBuffer.html">TextBuffer</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01116.html#a32db3d9898c44d3b3a578b560f7758cc">std::string</a> &amp;&#160;</td>
          <td class="paramname"> <em>format</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a168e8bd1b2d97e58ed2ad465dc2f1bf8"></a><!-- doxytag: member="Gtk::Clipboard::wait_for_targets" ref="a168e8bd1b2d97e58ed2ad465dc2f1bf8" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ArrayHandle.html">Glib::StringArrayHandle</a> Gtk::Clipboard::wait_for_targets </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a list of targets that are present on the clipboard. </p>
<p>This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>targets: The targets.</dd></dl>
<dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000062">Since gtkmm 2.4:</a></b></dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="aeac490f4cbb988fe5b6e5eefb33c2201"></a><!-- doxytag: member="Gtk::Clipboard::wait_for_text" ref="aeac490f4cbb988fe5b6e5eefb33c2201" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> Gtk::Clipboard::wait_for_text </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Requests the contents of the clipboard as text and converts the result to UTF-8 if necessary. </p>
<p>This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A UTF-8 string, which is empty if retrieving the selection data failed. (This could happen for various reasons, in particular if the clipboard was empty or if the contents of the clipboard could not be converted into text form.). </dd></dl>

</div>
</div>
<a class="anchor" id="adc50aa1d428322a50d307fc6c0d23dc9"></a><!-- doxytag: member="Gtk::Clipboard::wait_for_uris" ref="adc50aa1d428322a50d307fc6c0d23dc9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ArrayHandle.html">Glib::StringArrayHandle</a> Gtk::Clipboard::wait_for_uris </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Requests the contents of the clipboard as URIs. </p>
<p>This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait.</p>
<dl class="since_2_14"><dt><b><a class="el" href="since_2_14.html#_since_2_14000044">Since gtkmm 2.14:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A newly-allocated <code>0</code>-terminated array of strings which must be freed with Glib::strfreev(), or <code>0</code> if retrieving the selection data failed. (This could happen for various reasons, in particular if the clipboard was empty or if the contents of the clipboard could not be converted into URI form.). </dd></dl>

</div>
</div>
<a class="anchor" id="afcc67f894892de4918e9f8e7fb6813e7"></a><!-- doxytag: member="Gtk::Clipboard::wait_is_image_available" ref="afcc67f894892de4918e9f8e7fb6813e7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gtk::Clipboard::wait_is_image_available </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Test to see if there is an image available to be pasted This is done by requesting the TARGETS atom and checking if it contains any of the supported image targets. </p>
<p>This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait.</p>
<p>This function is a little faster than calling <a class="el" href="classGtk_1_1Clipboard.html#acd3d40ebf095dc8ec7e0ba786ea99b0d" title="Requests the contents of the clipboard as image and converts the result to a Gdk::Pixbuf...">wait_for_image()</a> since it doesn't need to retrieve the actual image data.</p>
<dl class="since_2_6"><dt><b><a class="el" href="since_2_6.html#_since_2_6000055">Since gtkmm 2.6:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> is there is an image available, <code>false</code> otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a05294bafc2322b3688dcc85523ae37db"></a><!-- doxytag: member="Gtk::Clipboard::wait_is_rich_text_available" ref="a05294bafc2322b3688dcc85523ae37db" args="(const Glib::RefPtr&lt; TextBuffer &gt; &amp;buffer) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gtk::Clipboard::wait_is_rich_text_available </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1TextBuffer.html">TextBuffer</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>buffer</em></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Test to see if there is rich text available to be pasted This is done by requesting the TARGETS atom and checking if it contains any of the supported rich text targets. </p>
<p>This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait.</p>
<p>This function is a little faster than calling <a class="el" href="classGtk_1_1Clipboard.html#a0f02a96840cfe953d1ef30d64c8e1409">wait_for_rich_text()</a> since it doesn't need to retrieve the actual text.</p>
<dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000049">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>buffer</em>&#160;</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>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> is there is rich text available, <code>false</code> otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="ab1c3c7516af21ecb6a2db4db6cb8012b"></a><!-- doxytag: member="Gtk::Clipboard::wait_is_target_available" ref="ab1c3c7516af21ecb6a2db4db6cb8012b" args="(const Glib::ustring &amp;target)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gtk::Clipboard::wait_is_target_available </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"> <em>target</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Checks if a clipboard supports pasting data of a given type. </p>
<p>This function can be used to determine if a "Paste" menu item should be insensitive or not.</p>
<p>If you want to see if there's text available on the clipboard, use <a class="el" href="classGtk_1_1Clipboard.html#ac30a1145696f41b5feccbbe0346702fc" title="Test to see if there is text available to be pasted This is done by requesting the...">wait_is_text_available()</a> instead.</p>
<dl class="since_2_6"><dt><b><a class="el" href="since_2_6.html#_since_2_6000056">Since gtkmm 2.6:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>target</em>&#160;</td><td>A Gdk::Atom indicating which target to look for. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the target is available, <code>false</code> otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="ac30a1145696f41b5feccbbe0346702fc"></a><!-- doxytag: member="Gtk::Clipboard::wait_is_text_available" ref="ac30a1145696f41b5feccbbe0346702fc" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gtk::Clipboard::wait_is_text_available </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Test to see if there is text available to be pasted This is done by requesting the TARGETS atom and checking if it contains any of the supported text targets. </p>
<p>This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait.</p>
<p>This function is a little faster than calling <a class="el" href="classGtk_1_1Clipboard.html#aeac490f4cbb988fe5b6e5eefb33c2201" title="Requests the contents of the clipboard as text and converts the result to UTF-8 if...">wait_for_text()</a> since it doesn't need to retrieve the actual text. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> is there is text available, <code>false</code> otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="af0c118eea5e64eabf911558d915af8be"></a><!-- doxytag: member="Gtk::Clipboard::wait_is_uris_available" ref="af0c118eea5e64eabf911558d915af8be" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gtk::Clipboard::wait_is_uris_available </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Test to see if there is a list of URIs available to be pasted This is done by requesting the TARGETS atom and checking if it contains the URI targets. </p>
<p>This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait.</p>
<p>This function is a little faster than calling <a class="el" href="classGtk_1_1Clipboard.html#adc50aa1d428322a50d307fc6c0d23dc9" title="Requests the contents of the clipboard as URIs.">wait_for_uris()</a> since it doesn't need to retrieve the actual URI data.</p>
<dl class="since_2_14"><dt><b><a class="el" href="since_2_14.html#_since_2_14000043">Since gtkmm 2.14:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> is there is an URI list available, <code>false</code> otherwise. </dd></dl>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="ad2c721a5e6f7cee3edc204c496a66044"></a><!-- doxytag: member="Gtk::Clipboard::wrap" ref="ad2c721a5e6f7cee3edc204c496a66044" args="(GtkClipboard *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Clipboard.html">Gtk::Clipboard</a> &gt; wrap </td>
          <td>(</td>
          <td class="paramtype">GtkClipboard *&#160;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>object</em>&#160;</td><td>The C instance. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>take_copy</em>&#160;</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>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>gtkmm/clipboard.h</li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue May 4 13:21:49 2010 for gtkmm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>