1Gtk2::TargetEntry(3) User Contributed Perl Documentation Gtk2::TargetEntry(3)
2
3
4
6 Gtk2::TargetEntry
7
9 # as a HASH
10 $target_entry = {
11 target => 'text/plain', # some string representing the drag type
12 flags => [], # Gtk2::TargetFlags
13 info => 42, # some app-defined integer identifier
14 };
15
16 # as an ARRAY, for compactness
17 $target_entry = [ $target, $flags, $info ];
18
20 A Gtk2::TargetEntry data structure represents a single type of data
21 than can be supplied for by a widget for a selection or for supplied or
22 received during drag-and-drop. It contains a string representing the
23 drag type, a flags field (used only for drag and drop - see Gtk2::Tar‐
24 getFlags), and an application assigned integer ID. The integer ID will
25 later be passed as a signal parameter for signals like "selection_get".
26 It allows the application to identify the target type without extensive
27 string compares.
28
30 flags Gtk2::TargetFlags
31
32 * 'same-app' / 'GTK_TARGET_SAME_APP'
33 * 'same-widget' / 'GTK_TARGET_SAME_WIDGET'
34
36 Gtk2, Gtk2::TargetList
37
39 Copyright (C) 2003-2007 by the gtk2-perl team.
40
41 This software is licensed under the LGPL. See Gtk2 for a full notice.
42
43
44
45perl v5.8.8 2007-03-18 Gtk2::TargetEntry(3)