struct Gtk::DragSource::DragCancelSignal

Overview

Emitted on the drag source when a drag has failed.

The signal handler may handle a failed drag operation based on the type of error. It should return true if the failure has been handled and the default "drag operation failed" animation should not be shown.

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/drag_source.cr

Instance Method Summary

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(Gdk::Drag, Gdk::DragCancelReason, Bool)) : GObject::SignalConnection #

[View source]
def connect(handler : Proc(Gdk::Drag, Gdk::DragCancelReason, Bool), *, after : Bool = false) : GObject::SignalConnection #

[View source]
def connect(handler : Proc(Gtk::DragSource, Gdk::Drag, Gdk::DragCancelReason, Bool), *, after : Bool = false) : GObject::SignalConnection #

[View source]
def emit(drag : Gdk::Drag, reason : Gdk::DragCancelReason) : Nil #

[View source]
def name : String #
Description copied from struct GObject::Signal

The signal name


[View source]