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:

auto/gtk-4.0/drag_source.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source, detail = nil) #

Instance Method Detail

def [](detail : String) : self #

def connect(&block : Proc(Gdk::Drag, Gdk::DragCancelReason, Bool)) #

def connect(handler : Proc(Gdk::Drag, Gdk::DragCancelReason, Bool)) #

def connect(handler : Proc(Gtk::DragSource, Gdk::Drag, Gdk::DragCancelReason, Bool)) #

def connect_after(&block : Proc(Gdk::Drag, Gdk::DragCancelReason, Bool)) #

def connect_after(handler : Proc(Gdk::Drag, Gdk::DragCancelReason, Bool)) #

def connect_after(handler : Proc(Gtk::DragSource, Gdk::Drag, Gdk::DragCancelReason, Bool)) #

def emit(drag : Gdk::Drag, reason : Gdk::DragCancelReason) : Nil #

def name #