struct Gtk::Gesture::CancelSignal

Overview

Emitted whenever a sequence is cancelled.

This usually happens on active touches when Gtk::EventController#reset is called on @gesture (manually, due to grabs...), or the individual @sequence was claimed by parent widgets' controllers (see Gtk::Gesture#sequence_state=).

@gesture must forget everything about @sequence as in response to this signal.

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/gesture.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 : String? = nil) new

Instance Method Detail

def connect(*, after : Bool = false, &block : Proc(Gdk::EventSequence?, Nil)) : GObject::SignalConnection #

def connect(handler : Proc(Gdk::EventSequence?, Nil), *, after : Bool = false) : GObject::SignalConnection #

def connect(handler : Proc(Gtk::Gesture, Gdk::EventSequence?, Nil), *, after : Bool = false) : GObject::SignalConnection #

def emit(sequence : Gdk::EventSequence?) : Nil #

def name : String #
Description copied from struct GObject::Signal

The signal name