SpinButton.connectInput

Connect to Input signal.

Emitted to convert the users input into a double value.

The signal handler is expected to use gtk.editable.Editable.getText to retrieve the text of the spinbutton and set new_value to the new value.

The default conversion uses glib.global.strtod.

class SpinButton
gulong
connectInput
(
T
)
(,
Flag!"After" after = No.After
)
if (
isCallable!T &&
is(ReturnType!T == int)
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.out_ &&
is(Parameters!T[0] == double)
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] : gtk.spin_button.SpinButton)
)
)
&&
Parameters!T.length < 3
)

Parameters

callback T

signal callback delegate or function to connect

int callback(out double newValue, gtk.spin_button.SpinButton spinButton)

newValue return location for the new value (optional)

spinButton the instance the signal is connected to (optional)

Returns true for a successful conversion, false if the input was not handled, and gtk.types.INPUT_ERROR if the conversion failed.

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: gulong

Signal ID