CuteHMI - Graphical User Interface (CuteHMI.GUI.0)
CuteHMI::GUI::NumberDisplay Class Reference

Number display. More...

Inheritance diagram for CuteHMI::GUI::NumberDisplay:
CuteHMI::GUI::Element

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 CuteHMI::GUI::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 CuteHMI::GUI::Element
ColorSet currentStateColorSet ()
 Pick color set based on active, warning and alarm property states. More...
 

Detailed Description

Number display.

Since
0.0

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 the content.

Property Documentation

◆ bottomPadding

real CuteHMI::GUI::NumberDisplay::bottomPadding

Bottom padding.

◆ font

alias CuteHMI::GUI::NumberDisplay::font

Font.

Font that is used by the display. It may be desirable to set some monospace font.

◆ fractionalWidth

int CuteHMI::GUI::NumberDisplay::fractionalWidth

Fractional width.

◆ integralWidth

int CuteHMI::GUI::NumberDisplay::integralWidth

Integral width.

◆ leftPadding

real CuteHMI::GUI::NumberDisplay::leftPadding

Left padding.

◆ rightPadding

real CuteHMI::GUI::NumberDisplay::rightPadding

Right padding.

◆ textFormatter

var CuteHMI::GUI::NumberDisplay::textFormatter

Text formatter.

◆ topPadding

real CuteHMI::GUI::NumberDisplay::topPadding

Top padding.

◆ unit

string CuteHMI::GUI::NumberDisplay::unit

Unit of measurment.

◆ value

real CuteHMI::GUI::NumberDisplay::value

Value.