Range.connectChangeValue

Connect to ChangeValue signal.

Emitted when a scroll action is performed on a range.

It allows an application to determine the type of scroll event that occurred and the resultant new value. The application can handle the event itself and return true to prevent further processing. Or, by returning false, it can pass the event to other handlers until the default GTK handler is reached.

The value parameter is unrounded. An application that overrides the ::change-value signal is responsible for clamping the value to the desired number of decimal digits; the default GTK handler clamps the value based on propertyGtk.Range:round-digits.

class Range
ulong
connectChangeValue
(
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.types.ScrollType)
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] == double)
)
)
&&
(
Parameters!T.length < 3 ||
(
ParameterStorageClassTuple!T[2] == ParameterStorageClass.none &&
is(Parameters!T[2] : gtk.range.Range)
)
)
&&
Parameters!T.length < 4
)

Parameters

callback T

signal callback delegate or function to connect

bool callback(gtk.types.ScrollType scroll, double value, gtk.range.Range range)

scroll the type of scroll action that was performed (optional)

value the new value resulting from the scroll action (optional)

range the instance the signal is connected to (optional)

Returns true to prevent other handlers from being invoked for the signal, false to propagate the signal further

after Flag!"After"

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

Return Value

Type: ulong

Signal ID