TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::NumericFieldConfig< double > Struct Reference

NumericFieldConfig for double values. More...

#include <gui_core/text/gui_numeric_field_config.h>

Public Member Functions

double Calculate (int32_t offset, double speedScale, double startValue) const
 The value after dragging offset pixels from startValue; speedScale is the modifier factor (Ctrl 0.1, Shift 10).

Public Attributes

double stepPerPixel = 0.01
 value change per pixel dragged
double minVal = -DBL_MAX
 lowest allowed value
double maxVal = DBL_MAX
 highest allowed value

Detailed Description

NumericFieldConfig for double values.

Member Function Documentation

◆ Calculate()

double tachyon::NumericFieldConfig< double >::Calculate ( int32_t offset,
double speedScale,
double startValue ) const
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.

Member Data Documentation

◆ stepPerPixel

double tachyon::NumericFieldConfig< double >::stepPerPixel = 0.01

value change per pixel dragged

◆ minVal

double tachyon::NumericFieldConfig< double >::minVal = -DBL_MAX

lowest allowed value

◆ maxVal

double tachyon::NumericFieldConfig< double >::maxVal = DBL_MAX

highest allowed value


The documentation for this struct was generated from the following file: