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

NAME

6       Gtk2::TargetEntry
7

SYNOPSIS

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

DESCRIPTION

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
24       Gtk2::TargetFlags), and an application assigned integer ID.  The
25       integer ID will later be passed as a signal parameter for signals like
26       "selection_get".  It allows the application to identify the target type
27       without extensive string compares.
28

ENUMS AND FLAGS

30   flags Gtk2::TargetFlags
31       •   'same-app' / 'GTK_TARGET_SAME_APP'
32
33       •   'same-widget' / 'GTK_TARGET_SAME_WIDGET'
34
35       •   'other-app' / 'GTK_TARGET_OTHER_APP'
36
37       •   'other-widget' / 'GTK_TARGET_OTHER_WIDGET'
38

SEE ALSO

40       Gtk2, Gtk2::TargetList
41
43       Copyright (C) 2003-2011 by the gtk2-perl team.
44
45       This software is licensed under the LGPL.  See Gtk2 for a full notice.
46
47
48
49perl v5.34.0                      2021-07-22              Gtk2::TargetEntry(3)
Impressum