struct Gtk::DropTargetAsync::DropSignal
- Gtk::DropTargetAsync::DropSignal
- Struct
- Value
- Object
Overview
Emitted on the drop site when the user drops the data onto the widget.
The signal handler must determine whether the pointer position is in a drop zone or not. If it is not in a drop zone, it returns %FALSE and no further processing is necessary.
Otherwise, the handler returns %TRUE. In this case, this handler will
accept the drop. The handler must ensure that Gdk::Drop#finish
is called to let the source know that the drop is done. The call to
Gdk::Drop#finish
must only be done when all data has been received.
To receive the data, use one of the read functions provided by
Gdk#Drop
such as Gdk::Drop#read_async
or
Gdk::Drop#read_value_async
.
Defined in:
auto/gtk-4.0/drop_target_async.crConstructors
Instance Method Summary
- #[](detail : String) : self
- #connect(&block : Proc(Gdk::Drop, Float64, Float64, Bool))
- #connect(handler : Proc(Gdk::Drop, Float64, Float64, Bool))
- #connect(handler : Proc(Gtk::DropTargetAsync, Gdk::Drop, Float64, Float64, Bool))
- #connect_after(&block : Proc(Gdk::Drop, Float64, Float64, Bool))
- #connect_after(handler : Proc(Gdk::Drop, Float64, Float64, Bool))
- #connect_after(handler : Proc(Gtk::DropTargetAsync, Gdk::Drop, Float64, Float64, Bool))
- #emit(drop : Gdk::Drop, x : Float64, y : Float64) : Nil
- #name