Crea  Modifica  FrontPage  Indici  Cerca  Ultime modifiche  History  RSS  Login

Gtk::TargetList

Class Methods

Gtk::TargetList.new(targets)
Creates a new Gtk::TargetList from an array of targets.
  • targets: [[target1, flags1, info1], [target2, flags2, info2], ...]: a table of targets to add
  • Returns: the new Gtk::TargetList.

Instance Methods

add(target, flags, info)
Adds another target to a Gtk::TargetList.
  • target : the interned atom(Gdk::Atom) representing the target
  • flags : the flags for this target
  • info : an ID that will be passed back to the application
  • Returns: self
add_table(targets)
Adds a table of targets into a target list.
  • targets: [[target1, flags1, info1], [target2, flags2, info2], ...]: a table of targets to add
  • Returns: self
remove(target)
Removes a target from a target list.
  • target: the interned atom(Gdk::Atom) representing the target
  • Returns: self
find(target)
Looks up a given target in a Gtk::TargetList.
  • target: an interned atom(Gdk::Atom) representing the target to search for
  • Returns: an application info for target, or nil

See Also

Gtk::Selection, Gtk::SelectionData.

Gtk::Widget - Much of the operation of selections happens via signals for Gtk::Widget. In particular, if you are using the methods in this section, you may need to pay attention to ::selection_get, ::selection_received, and :selection_clear_event signals.

- Masao

Ultima modifica:2008/04/06 03:58:06
Parola chiave:
Referenze:[Gtk::TargetList] [Gtk::Selection] [Gtk::Drag] [Gtk::SelectionData]