struct Gtk::SpinButton::InputSignal

Overview

Emitted to convert the users input into a double value.

The signal handler is expected to use Gtk::Editable#text to retrieve the text of the spinbutton and set new_value to the new value.

The default conversion uses g_strtod().

Defined in:

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

Instance Method Detail

def connect(*, after : Bool = false, &block : Proc(Float64, Int32)) : GObject::SignalConnection #

[View source]
def connect(handler : Proc(Float64, Int32), *, after : Bool = false) : GObject::SignalConnection #

[View source]
def connect(handler : Proc(Gtk::SpinButton, Float64, Int32), *, after : Bool = false) : GObject::SignalConnection #

[View source]
def emit(new_value : Float64) : Nil #

[View source]
def name : String #
Description copied from struct GObject::Signal

The signal name


[View source]