struct Gtk::Range::ChangeValueSignal
- Gtk::Range::ChangeValueSignal
- GObject::Signal
- Struct
- Value
- Object
Overview
Emitted when a scroll action is performed on a range.
It allows an application to determine the type of scroll event
that occurred and the resultant new value. The application can
handle the event itself and return true
to prevent further
processing. Or, by returning false
, it can pass the event to
other handlers until the default GTK handler is reached.
The value parameter is unrounded. An application that overrides the ::change-value signal is responsible for clamping the value to the desired number of decimal digits; the default GTK handler clamps the value based on [property@Gtk.Range:round-digits].
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/range.crInstance Method Summary
- #connect(*, after : Bool = false, &block : Proc(Gtk::ScrollType, Float64, Bool)) : GObject::SignalConnection
- #connect(handler : Proc(Gtk::ScrollType, Float64, Bool), *, after : Bool = false) : GObject::SignalConnection
- #connect(handler : Proc(Gtk::Range, Gtk::ScrollType, Float64, Bool), *, after : Bool = false) : GObject::SignalConnection
- #emit(scroll : Gtk::ScrollType, value : 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(Gtk::ScrollType, Float64, Bool)) : GObject::SignalConnection
#
def connect(handler : Proc(Gtk::ScrollType, Float64, Bool), *, after : Bool = false) : GObject::SignalConnection
#
def connect(handler : Proc(Gtk::Range, Gtk::ScrollType, Float64, Bool), *, after : Bool = false) : GObject::SignalConnection
#