Gtk2::TargetEntry(3pm)

Gtk2::TargetEntry3pm

Usage

  # 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 ];

Overview

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.

Enums and flags

flags Gtk2::TargetFlags

•

'same-app' / 'GTK_TARGET_SAME_APP'

•

'same-widget' / 'GTK_TARGET_SAME_WIDGET'

•

'other-app' / 'GTK_TARGET_OTHER_APP'

•

'other-widget' / 'GTK_TARGET_OTHER_WIDGET'

Releases

7 releases since Debian 3.1 (Sarge); the text changed 6 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 9
  7. 10

From libgtk2-perl-doc 2:1.24992-1 in Debian 10 (Buster). Parsed by carta from the page's man source.