Gjsify LogoGjsify Logo

A #GtkTargetList-struct is a reference counted list of #GtkTargetPair and should be treated as opaque.

record

Hierarchy

  • TargetList

Index

Constructors

Properties

name: string

Methods

  • add(target: Gdk.Atom, flags: number, info: number): void
  • Appends another target to a #GtkTargetList.

    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

  • add_image_targets(info: number, writable: boolean): void
  • Appends the image targets supported by #GtkSelectionData 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

  • add_rich_text_targets(info: number, deserializable: boolean, buffer: Gtk.TextBuffer): 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

      a #GtkTextBuffer.

    Returns void

  • add_text_targets(info: number): void
  • Appends the text targets supported by #GtkSelectionData 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

  • add_uri_targets(info: number): void
  • Appends the URI targets supported by #GtkSelectionData 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

  • find(target: Gdk.Atom): [boolean, number]
  • Looks up a given target in a #GtkTargetList.

    Parameters

    • target: Gdk.Atom

      an interned atom representing the target to search for

    Returns [boolean, number]

  • unref(): void
  • Decreases the reference count of a #GtkTargetList by one. If the resulting reference count is zero, frees the list.

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method