View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Ross McFarland > Gtk2-1.043 > xs/GtkSelection.xs


Annotate this POD


New  2
Open  8
View/Report Bugs
Source   Latest Release: Gtk2-1.203


  # as a HASH
  $target_entry = {
      target => 'text/plain', # some string representing the drag type
      flags => [], # Gtk2::TargetFlags
      info => 42,  # some app-defined integer identifier

  # as an ARRAY, for compactness
  $target_entry = [ $target, $flags, $info ];


A Gtk2::TargetEntry data structure represents a single type of data than can be supplied for by a widget for a selection or for supplied or received during drag-and-drop. It contains a string representing the drag type, a flags field (used only for drag and drop - see Gtk2::TargetFlags), and an application assigned integer ID. The integer ID will later be passed as a signal parameter for signals like "selection_get". It allows the application to identify the target type without extensive string compares.

Returns a list of GdkAtoms, the targets.

syntax highlighting: