struct Gtk::EventControllerScroll::DecelerateSignal
- Gtk::EventControllerScroll::DecelerateSignal
- GObject::Signal
- Struct
- Value
- Object
Overview
Emitted after scroll is finished if the %GTK_EVENT_CONTROLLER_SCROLL_KINETIC flag is set. vel_x and vel_y express the initial velocity that was imprinted by the scroll events. vel_x and vel_y are expressed in pixels/ms.
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/event_controller_scroll.crInstance Method Summary
- #connect(*, after : Bool = false, &block : Proc(Float64, Float64, Nil)) : GObject::SignalConnection
- #connect(handler : Proc(Float64, Float64, Nil), *, after : Bool = false) : GObject::SignalConnection
- #connect(handler : Proc(Gtk::EventControllerScroll, Float64, Float64, Nil), *, after : Bool = false) : GObject::SignalConnection
- #emit(vel_x : Float64, vel_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(Float64, Float64, Nil)) : GObject::SignalConnection
#
def connect(handler : Proc(Float64, Float64, Nil), *, after : Bool = false) : GObject::SignalConnection
#
def connect(handler : Proc(Gtk::EventControllerScroll, Float64, Float64, Nil), *, after : Bool = false) : GObject::SignalConnection
#