Class: Gtk::DropTargetAsync

Inherits:
EventController show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from EventController

#current_event, #current_event_device, #current_event_state, #current_event_time, #name, #name=, #propagation_limit, #propagation_limit=, #propagation_phase, #propagation_phase=, #reset, #static_name=, #widget, #widget=

Constructor Details

#initialize(formats, actions) ⇒ Gtk::DropTargetAsync

Creates a new GtkDropTargetAsync object.

Parameters:

  • formats (Gdk::ContentFormats)

    the supported data formats

  • actions (Gdk::DragAction)

    the supported actions

Instance Method Details

#actionsGdk::DragAction

The GdkDragActions that this drop target supports.

Returns:

#actions=(actions) ⇒ Gdk::DragAction

The GdkDragActions that this drop target supports.

Parameters:

Returns:

#formatsGdk::ContentFormats

The GdkContentFormats that determines the supported data formats.

Returns:

  • (Gdk::ContentFormats)

    formats

#formats=(formats) ⇒ Gdk::ContentFormats

The GdkContentFormats that determines the supported data formats.

Parameters:

  • formats (Gdk::ContentFormats)

Returns:

  • (Gdk::ContentFormats)

    formats

  • (Gdk::ContentFormats)

    formats

#reject_drop(drop) ⇒ nil

Sets the drop as not accepted on this drag site.

This function should be used when delaying the decision on whether to accept a drag or not until after reading the data.

Parameters:

  • drop (Gdk::Drop)

    the GdkDrop of an ongoing drag operation

Returns:

  • (nil)