Class (GI Struct)

Gtk-3.0GtkTargetList

A Gtk.TargetList-struct is a reference counted list of Gtk.TargetPair and should be treated as opaque.

Index

Constructors

Properties

$gtype: GType<TargetList>

Methods

  • Appends another target to a Gtk.TargetList.

    Parameters

    • target: Gdk.Atom

      the interned atom representing the target

    • flags: number

      the flags for this target

    • info: number

      an ID that will be passed back to the application

    Returns void

  • Appends the image targets supported by Gtk.SelectionData to the target list. All targets are added with the same info.

    Parameters

    • info: number

      an ID that will be passed back to the application

    • writable: boolean

      whether to add only targets for which GTK+ knows how to convert a pixbuf into the format

    Returns void

  • Appends the rich text targets registered with gtk_text_buffer_register_serialize_format() or gtk_text_buffer_register_deserialize_format() to the target list. All targets are added with the same info.

    Parameters

    • info: number

      an ID that will be passed back to the application

    • deserializable: boolean

      if true, then deserializable rich text formats will be added, serializable formats otherwise.

    • buffer: Gtk.TextBuffer

    Returns void

  • Appends the text targets supported by Gtk.SelectionData to the target list. All targets are added with the same info.

    Parameters

    • info: number

      an ID that will be passed back to the application

    Returns void

  • Appends the URI targets supported by Gtk.SelectionData to the target list. All targets are added with the same info.

    Since 3.24.37, this includes the application/vnd.portal.files target when possible, to allow sending files between sandboxed apps via the FileTransfer portal.

    Parameters

    • info: number

      an ID that will be passed back to the application

    Returns void

  • Looks up a given target in a Gtk.TargetList.

    Parameters

    • target: Gdk.Atom

      an interned atom representing the target to search for

    Returns [boolean, number]

    true if the target was found, otherwise false