NumberProps struct
#include <GGUI/Public/UIValues.h>
ui.Number: a numeric field that can be typed or dragged.
Integer or decimal according to the type shown. Dragging sideways steps by Step (x10 with Shift); click or Enter to type. Left and Right step; Up and Down are left for focus navigation, as with a slider.
Public variables
- std::optional<double> Min
- hard limit; unset = none
- std::optional<double> Max
- hard limit; unset = none
- std::optional<double> SoftMin
- limit for dragging; typing can go beyond, down to Min
- std::optional<double> SoftMax
- limit for dragging; typing can go beyond, up to Max
- double Step
- 0 = 1 for integers, one unit of the last decimal place otherwise
- int Decimals
- negative = 2, or 0 for integers
- std::string_view Units
- shown after the number
- GGSize Width
- its width
- std::string_view Class
- its style classes
- bool bDisabled
- shown disabled; takes no input
- bool bButtons
- adds - and + buttons