SpinRow.connectInput
gulong connectInput(T)(T callback, 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] : adw.spin_row.SpinRow)))
&& Parameters!T.length < 3)Connect to Input signal.
Emitted to convert the user's 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 funcGLib.strtod.
See [gtk.spin_button.SpinButton.input].
Parameters
callback | signal callback delegate or function to connect int callback(out double newValue, adw.spin_row.SpinRow spinRow) newValue return location for the new value (optional) spinRow 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 | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID