Create  Edit  FrontPage  Index  Search  Changes  History  RSS  Back  Login

Gtk::TargetList - History


  • Added words are showed as here.
  • Removed words are showed as here.
= class Gtk::TargetList

== Object Hierarchy

* Object
  * GLib::Boxed
    * 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
       * target: the drag type (String)
       * flags: Gtk::Drag#TargetFlags
       * info: an application assigned integer ID.
    * Returns: the new Gtk::TargetList.  
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
       * target: the drag type (String)
       * flags: Gtk::Drag#TargetFlags
       * info: an application assigned integer ID.
    * 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

--- add_image_targets

     * Returns: self: ((*FIXME*))

--- add_rich_text_targets

     * Returns: self: ((*FIXME*))

--- add_text_targets

     * Returns: self: ((*FIXME*))

--- add_uri_targets

     * Returns: self: ((*FIXME*))

== 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.

== ChangeLog

- ((<Masao>))
Last modified:2021/12/01 20:19:11
Keyword(s):
References: