SpinButton.connectOutput

Connect to Output signal.

Emitted to tweak the formatting of the value for display.

// show leading zeros
static gboolean
on_output (GtkSpinButton *spin,
           gpointer       data)
{
   char *text;
   int value;

   value = gtk_spin_button_get_value_as_int (spin);
   text = g_strdup_printf ("%02d", value);
   gtk_editable_set_text (GTK_EDITABLE (spin), text):
   g_free (text);

   return TRUE;
}
class SpinButton
ulong
connectOutput
(
T
)
(,
Flag!"After" after = No.After
)
if (
isCallable!T &&
is(ReturnType!T == bool)
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.none &&
is(Parameters!T[0] : gtk.spin_button.SpinButton)
)
)
&&
Parameters!T.length < 2
)

Parameters

callback T

signal callback delegate or function to connect

bool callback(gtk.spin_button.SpinButton spinButton)

spinButton the instance the signal is connected to (optional)

Returns true if the value has been displayed

after Flag!"After"

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

Return Value

Type: ulong

Signal ID