SpinButton.connectInput

Connect to Input signal.

The ::input signal can be used to influence the conversion of the users input into a double value. The signal handler is expected to use gtk.entry.Entry.getText to retrieve the text of the entry 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