The
gtk:range class is the common base class for widgets which visualize an adjustment, for example the
gtk:scale widget.
Apart from signals for monitoring the parameters of the adjustment, the
gtk:range class provides properties and methods for influencing the
sensitivity of the "steppers". It also provides properties and methods for setting a "fill level" on range widgets. See the
gtk:range-fill-level
function.
Signal Details
The "adjust-bounds" signal
lambda (range value) :run-last
- range
- The gtk:range widget that received the signal.
- value
- The double float with the value before we clamp.
Emitted before clamping a value, to give the application a chance to
adjust the bounds.
The "change-value" signal
lambda (range scroll value) :run-last
- range
- The gtk:range widget that received the signal.
- scroll
- The gtk:scroll-type value of scroll action that was performed.
- value
- The double float resulting from the scroll action.
- Returns
- True to prevent other handlers from being invoked for the signal, false to propagate the signal further.
The signal is 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 "round-digits". It is not possible to use delayed update policies in an overridden
"change-value" signal
handler.
The "move-slider" signal
lambda (range step) :action
- range
- The gtk:range widget that received the signal.
- step
- The gtk:scroll-type value how to move the slider.
Virtual function that moves the slider. Used for key bindings.
The "value-changed" signal
lambda (range) :run-last
- range
- The gtk:range widget that received the signal.
Emitted when the range value changes.