|
TachyonUI 0.1.0
High-performance UI for building tools.
|
NumericFieldConfig for int16_t values. More...
#include <gui_core/text/gui_numeric_field_config.h>
Public Member Functions | |
| int16_t | Calculate (int32_t offset, double speedScale, int16_t startValue) const |
| The value after dragging offset pixels from startValue; speedScale is the modifier factor (Ctrl 0.1, Shift 10). | |
Public Attributes | |
| double | stepPerPixel = 1.00 |
| value change per pixel dragged | |
| int16_t | minVal = INT16_MIN |
| lowest allowed value | |
| int16_t | maxVal = INT16_MAX |
| highest allowed value | |
NumericFieldConfig for int16_t values.
|
inline |
The value after dragging offset pixels from startValue; speedScale is the modifier factor (Ctrl 0.1, Shift 10).
The result is clamped to the range.
| double tachyon::NumericFieldConfig< int16_t >::stepPerPixel = 1.00 |
value change per pixel dragged
| int16_t tachyon::NumericFieldConfig< int16_t >::minVal = INT16_MIN |
lowest allowed value
| int16_t tachyon::NumericFieldConfig< int16_t >::maxVal = INT16_MAX |
highest allowed value