fltk.valuator
FLTK Valuator Base Class
This module provides the Valuator class, an abstract base class for all valuator widgets such as sliders, dials, counters, and scrollbars.
Valuator provides common functionality for widgets that control a single floating-point value within a defined range, with optional step increments.
License
Copyright
Types 2
Valuator orientation constants.
These values define whether a valuator widget operates vertically or horizontally.
Abstract base class for all valuator widgets.
Valuator controls a single floating-point value and provides a consistent interface to set the value, range, and step. All valuator-derived widgets (Slider, Dial, Counter, Scrollbar, etc.) inherit these capabilities.
The value is always clamped to the range minimum, maximum after rounding to the nearest step value.
Example:
// Valuator is typically used through derived classes like Slider
auto slider = new Slider(10, 10, 200, 25, "Value");
slider.range(0.0, 100.0);
slider.step(1.0);
slider.value = 50.0;void bounds(double min, double max) nothrow @nogcSets the minimum and maximum values of the range (alias for range).