struct Gtk::DropTarget::DropSignal
- Gtk::DropTarget::DropSignal
- GObject::Signal
- 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 is responsible for using the given value
and performing the drop operation.
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/drop_target.crInstance Method Summary
- #connect(*, after : Bool = false, &block : Proc(GObject::Value, Float64, Float64, Bool)) : GObject::SignalConnection
- #connect(handler : Proc(GObject::Value, Float64, Float64, Bool), *, after : Bool = false) : GObject::SignalConnection
- #connect(handler : Proc(Gtk::DropTarget, GObject::Value, Float64, Float64, Bool), *, after : Bool = false) : GObject::SignalConnection
- #emit(value : _, x : Float64, y : Float64) : Nil
-
#name : String
The signal name
Instance methods inherited from struct GObject::Signal
[](detail : String) : self
[],
name : String
name
Constructor methods inherited from struct GObject::Signal
new(source : GObject::Object, detail : Nil | String = nil)
new
Instance Method Detail
def connect(*, after : Bool = false, &block : Proc(GObject::Value, Float64, Float64, Bool)) : GObject::SignalConnection
#
def connect(handler : Proc(GObject::Value, Float64, Float64, Bool), *, after : Bool = false) : GObject::SignalConnection
#
def connect(handler : Proc(Gtk::DropTarget, GObject::Value, Float64, Float64, Bool), *, after : Bool = false) : GObject::SignalConnection
#