struct Gtk::DragSource::PrepareSignal
- Gtk::DragSource::PrepareSignal
- GObject::Signal
- Struct
- Value
- Object
Overview
Emitted when a drag is about to be initiated.
It returns the Gdk::ContentProvider
to use for the drag that is about
to start. The default handler for this signal returns the value of
the Gtk::DragSource#content
property, so if you set up that
property ahead of time, you don't need to connect to this signal.
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/drag_source.crInstance Method Summary
- #connect(*, after : Bool = false, &block : Proc(Float64, Float64, Gdk::ContentProvider)) : GObject::SignalConnection
- #connect(handler : Proc(Float64, Float64, Gdk::ContentProvider), *, after : Bool = false) : GObject::SignalConnection
- #connect(handler : Proc(Gtk::DragSource, Float64, Float64, Gdk::ContentProvider), *, after : Bool = false) : GObject::SignalConnection
- #emit(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 : String? = nil)
new
Instance Method Detail
def connect(*, after : Bool = false, &block : Proc(Float64, Float64, Gdk::ContentProvider)) : GObject::SignalConnection
#
def connect(handler : Proc(Float64, Float64, Gdk::ContentProvider), *, after : Bool = false) : GObject::SignalConnection
#
def connect(handler : Proc(Gtk::DragSource, Float64, Float64, Gdk::ContentProvider), *, after : Bool = false) : GObject::SignalConnection
#