CuteHMI - Graphical User Interface (CuteHMI.GUI.1)
|
Number display. More...
Properties | |
alias | font |
Font. More... | |
real | leftPadding |
Left padding. More... | |
real | rightPadding |
Right padding. More... | |
real | topPadding |
Top padding. More... | |
real | bottomPadding |
Bottom padding. More... | |
real | value |
Value. More... | |
int | fractionalWidth |
Fractional width. More... | |
int | integralWidth |
Integral width. More... | |
string | unit |
Unit of measurment. More... | |
var | textFormatter |
Text formatter. More... | |
Properties inherited from Element | |
Units | units |
Units used by the element. More... | |
Palette | palette |
Palette. More... | |
ColorSet | color |
This property defines current colors that should be used to draw element contents. More... | |
ColorSet | colorSet |
Active color set. More... | |
bool | neutral |
Denotes if element is neutral (it does not distinguish between active, inactive, warning and alarm states). More... | |
bool | active |
Denotes if an item is in active state. More... | |
bool | warning |
Denotes if an item is in warning state. More... | |
bool | alarm |
Denotes if an item is in alarm state. More... | |
bool | indirectWarning |
Denotes if item is in indirect warning state. More... | |
bool | indirectAlarm |
Denotes if item is in indirect alarm state. More... | |
Additional Inherited Members | |
Public Member Functions inherited from Element | |
ColorSet | currentStateColorSet () |
Pick color set based on active, warning and alarm property states. More... | |
Number display.
Number display can be used to conveniently display numerical values with corresponding units of measurement. Number display tries to keep constant width. If that's not possible it expands to fit to its contents.
Above image has been obtained with the following sample code demonstrating basic use of number display.
|
read |
Bottom padding.
|
read |
Font.
Font that is used by the display. It may be desirable to set some monospace font.
|
read |
Fractional width.
|
read |
Integral width.
|
read |
Left padding.
|
read |
Right padding.
|
read |
Text formatter.
|
read |
Top padding.
|
read |
Unit of measurment.
|
read |
Value.