struct Gtk::Range::ChangeValueSignal

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:

auto/gtk-4.0/range.cr

Constructors

Instance Method Summary

Constructor Detail

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

Instance Method Detail

def [](detail : String) : self #

def connect(&block : Proc(Gtk::ScrollType, Float64, Bool)) #

def connect(handler : Proc(Gtk::ScrollType, Float64, Bool)) #

def connect(handler : Proc(Gtk::Range, Gtk::ScrollType, Float64, Bool)) #

def connect_after(&block : Proc(Gtk::ScrollType, Float64, Bool)) #

def connect_after(handler : Proc(Gtk::ScrollType, Float64, Bool)) #

def connect_after(handler : Proc(Gtk::Range, Gtk::ScrollType, Float64, Bool)) #

def emit(scroll : Gtk::ScrollType, value : Float64) : Nil #

def name #