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

NAME

6       Gtk2::SelectionData
7

HIERARCHY

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

METHODS

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

SEE ALSO

80       Gtk2, Glib::Boxed
81
83       Copyright (C) 2003-2007 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.8.8                       2007-03-18            Gtk2::SelectionData(3)
Impressum