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

NumericFieldConfig for uint32_t values. More...

#include <gui_core/text/gui_numeric_field_config.h>

Public Member Functions

uint32_t Calculate (int32_t offset, double speedScale, uint32_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
uint32_t minVal = 0
 lowest allowed value
uint32_t maxVal = UINT32_MAX
 highest allowed value

Detailed Description

NumericFieldConfig for uint32_t values.

Member Function Documentation

◆ Calculate()

uint32_t tachyon::NumericFieldConfig< uint32_t >::Calculate ( int32_t offset,
double speedScale,
uint32_t 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< uint32_t >::stepPerPixel = 1.00

value change per pixel dragged

◆ minVal

uint32_t tachyon::NumericFieldConfig< uint32_t >::minVal = 0

lowest allowed value

◆ maxVal

uint32_t tachyon::NumericFieldConfig< uint32_t >::maxVal = UINT32_MAX

highest allowed value


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