1Gtk2::SelectionData(3)User Contributed Perl DocumentationGtk2::SelectionData(3)
2
3
4

NAME

6       Gtk2::SelectionData - wrapper for GtkSelectionData
7

HIERARCHY

9         Glib::Boxed
10         +----Gtk2::SelectionData
11

METHODS

13   scalar = $d->get_data
14   scalar = $d->get_data_type
15   scalar = $d->get_display
16   scalar = $d->get_format
17   $selection_data->set ($type, $format, $data)
18       ·   $type (Gtk2::Gdk::Atom)
19
20       ·   $format (integer)
21
22       ·   $data (Glib::UChar)
23
24   scalar = $d->get_length
25   pixbuf or undef = $selection_data->get_pixbuf
26       Since: gtk+ 2.6
27
28   boolean = $selection_data->set_pixbuf ($pixbuf)
29       ·   $pixbuf (Gtk2::Gdk::Pixbuf)
30
31       Since: gtk+ 2.6
32
33   (tree_model, path) = $selection_data->get_row_drag_data
34       If $selection_data is not of target type GTK_TREE_MODEL_ROW then the
35       return is an empty list.
36
37   boolean = $selection_data->set_row_drag_data ($tree_model, $path)
38       ·   $tree_model (Gtk2::TreeModel)
39
40       ·   $path (Gtk2::TreePath)
41
42   scalar = $d->get_selection
43   scalar = $d->get_target
44   list = $selection_data->get_targets
45       Gets the contents of selection_data as an array of targets. This can be
46       used to interpret the results of getting the standard TARGETS target
47       that is always supplied for any selection.
48
49       Returns a list of GdkAtoms, the targets.
50
51   boolean = $selection_data->targets_include_image ($writable)
52       ·   $writable (boolean)
53
54       Since: gtk+ 2.6
55
56   boolean = $selection_data->targets_include_rich_text ($buffer)
57       ·   $buffer (Gtk2::TextBuffer)
58
59       Since: gtk+ 2.10
60
61   boolean = $selection_data->targets_include_text
62   boolean = $selection_data->targets_include_uri
63       Since: gtk+ 2.10
64
65   string = $selection_data->get_text
66   boolean = $selection_data->set_text ($str, $len=-1)
67       ·   $str (string)
68
69       ·   $len (integer)
70
71   list = $selection_data->get_uris
72       Since: gtk+ 2.6
73
74   boolean = $selection_data->set_uris (...)
75       ·   ... (list) of strings
76
77       Since: gtk+ 2.6
78

SEE ALSO

80       Gtk2, Glib::Boxed
81
83       Copyright (C) 2003-2011 by the gtk2-perl team.
84
85       This software is licensed under the LGPL.  See Gtk2 for a full notice.
86
87
88
89perl v5.30.0                      2019-07-26            Gtk2::SelectionData(3)
Impressum