1Gtk2::Clipboard(3)    User Contributed Perl Documentation   Gtk2::Clipboard(3)
2
3
4

NAME

6       Gtk2::Clipboard - wrapper for GtkClipboard
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::Clipboard
11

METHODS

13   $clipboard->set_can_store (...)
14       •   ... (list) of Gtk2::TargetEntry's
15
16       Since: gtk+ 2.6
17
18   $clipboard->clear
19   display = $clipboard->get_display
20       Since: gtk+ 2.2
21
22   clipboard = Gtk2::Clipboard->get_for_display ($display, $selection)
23       •   $display (Gtk2::Gdk::Display)
24
25       •   $selection (Gtk2::Gdk::Atom)
26
27       Since: gtk+ 2.2
28
29   clipboard = Gtk2::Clipboard->get ($selection)
30       •   $selection (Gtk2::Gdk::Atom)
31
32   $clipboard->set_image ($pixbuf)
33       •   $pixbuf (Gtk2::Gdk::Pixbuf)
34
35       Since: gtk+ 2.6
36
37   object = $clipboard->get_owner
38   $clipboard->request_contents ($target, $callback, $user_data=undef)
39       •   $target (Gtk2::Gdk::Atom)
40
41       •   $callback (scalar)
42
43       •   $user_data (scalar)
44
45   $clipboard->request_image ($callback, $user_data=undef)
46       •   $callback (scalar)
47
48       •   $user_data (scalar)
49
50       Since: gtk+ 2.6
51
52   $clipboard->request_rich_text ($buffer, $callback, $user_data=undef)
53       •   $buffer (Gtk2::TextBuffer)
54
55       •   $callback (scalar)
56
57       •   $user_data (scalar)
58
59       Since: gtk+ 2.10
60
61   $clipboard->request_targets ($callback, $user_data=undef)
62       •   $callback (scalar)
63
64       •   $user_data (scalar)
65
66       Since: gtk+ 2.4
67
68   $clipboard->request_text ($callback, $user_data=undef)
69       •   $callback (scalar)
70
71       •   $user_data (scalar)
72
73   $clipboard->request_uris ($func, $data=undef)
74       •   $func (scalar)
75
76       •   $data (scalar)
77
78       Since: gtk+ 2.14
79
80   $clipboard->store
81       Since: gtk+ 2.6
82
83   $clipboard->set_text ($text)
84       •   $text (string)
85
86   selectiondata or undef = $clipboard->wait_for_contents ($target)
87       •   $target (Gtk2::Gdk::Atom)
88
89   pixbuf or undef = $clipboard->wait_for_image
90       Since: gtk+ 2.6
91
92   list = $clipboard->wait_for_rich_text ($buffer)
93       •   $buffer (Gtk2::TextBuffer)
94
95       Since: gtk+ 2.10
96
97   list = $clipboard->wait_for_targets
98       Returns a list of GdkAtom's.
99
100       Since: gtk+ 2.4
101
102   string = $clipboard->wait_for_text
103   scalar = $clipboard->wait_for_uris
104       Since: gtk+ 2.14
105
106   boolean = $clipboard->wait_is_image_available
107       Since: gtk+ 2.6
108
109   boolean = $clipboard->wait_is_rich_text_available ($buffer)
110       •   $buffer (Gtk2::TextBuffer)
111
112       Since: gtk+ 2.10
113
114   boolean = $clipboard->wait_is_target_available ($target)
115       •   $target (Gtk2::Gdk::Atom)
116
117       Since: gtk+ 2.6
118
119   boolean = $clipboard->wait_is_text_available
120   boolean = $clipboard->wait_is_uris_available
121       Since: gtk+ 2.14
122
123   boolean = $clipboard->set_with_data ($get_func, $clear_func, $user_data,
124       ...)
125       •   $get_func (scalar)
126
127       •   $clear_func (scalar)
128
129       •   $user_data (scalar)
130
131       •   ... (list) of Gtk2::TargetEntry's
132
133   boolean = $clipboard->set_with_owner ($get_func, $clear_func, $owner, ...)
134       •   $get_func (scalar)
135
136       •   $clear_func (scalar)
137
138       •   $owner (Glib::Object)
139
140       •   ... (list) of Gtk2::TargetEntry's
141

SIGNALS

143       owner-change (Gtk2::Clipboard, Gtk2::Gdk::Event)
144

SEE ALSO

146       Gtk2, Glib::Object
147
149       Copyright (C) 2003-2011 by the gtk2-perl team.
150
151       This software is licensed under the LGPL.  See Gtk2 for a full notice.
152
153
154
155perl v5.34.0                      2021-07-22                Gtk2::Clipboard(3)
Impressum