Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: DragIcon

[18:7] extends: object

A GtkRoot implementation for drag icons. A drag icon moves with the pointer during a Drag-and-Drop operation and is destroyed when the drag ends. To set up a drag icon and associate it with an ongoing drag operation, use [ctor@Gtk.DragIcon.get_for_drag] to get the icon for a drag. You can then use it like any other widget and use [method@Gtk.DragIcon.set_child] to set whatever widget should be used for the drag icon. Keep in mind that drag icons do not allow user input.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • DragIcon (drag = null)

    Gets the GtkDragIcon in use with @drag. If no drag icon exists yet, a new one will be created and shown.

    • @p drag is a GdkDrag.
  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asWidget ()

    Wraps this handle as Widget.

    • @r A Widget object.
  • asAccessible ()

    Wraps this handle as Accessible.

    • @r A Accessible object.
  • asBuildable ()

    Wraps this handle as Buildable.

    • @r A Buildable object.
  • asConstraintTarget ()

    Wraps this handle as ConstraintTarget.

    • @r A ConstraintTarget object.
  • asNative ()

    Wraps this handle as Native.

    • @r A Native object.
  • asRoot ()

    Wraps this handle as Root.

    • @r A Root object.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setChild (object Value)

    The widget to display as drag icon.

    • @p Value is the new property value.
    • @r None.
  • get_child ()

    Gets the widget currently used as drag icon.

  • set_child (object child)

    Sets the widget to display as the drag icon.

    • @p child is a GtkWidget.
    • @r None.

class: DragIconMeta

[197:14] static extends: object

Generated metadata helpers for DragIcon class surfaces.

Methods

  • properties ()

    Returns property metadata for DragIcon.

    • @r A list.