UI_Lib
a1366e08a59cc549a65fa26081e6409aa12f26d5
This is a user interface library for graphical LCDs. It offers many different controls and indicators that can be nested depending on the element types.
|
This section lists all available controls. Base classes are not listed here.
The BoolControl can be used to toggle the value of an boolean variable. This control offers different style (classic "ON"/"OFF", toggle switch, check box).
![]()
ToggleSwitch Style (off) | ![]()
ToggleSwitch Style (on) |
![]()
Classic Style (off) | ![]()
Classic Style (on) |
![]()
Checkbox Style (off) | ![]()
Checkbox Style (on) |
The ButtonControl can be used to display a button that the user can press. When pressed, a callback function is executed.
maxStringLength * sizeof(char)
(_buttonText)The EnumControl can be used to choose a value from an enumeration.
![]()
EnumControl | ![]()
EnumControl in edit mode |
The MessageDialog control can be used to show a message dialog including a severity icon (info, warning, error), a message text and 0, 1 or 2 buttons (OK, Cancel).
5 * sizeof(UIElement)
(_page._items)5 * sizeof(PageItemConfig)
(_page._itemConfiguration)maxMsgLength * sizeof(char)
(_message.Text)3 * sizeof(char)
(_buttonOk._buttonText)7 * sizeof(char)
(_buttonCancel._buttonText)![]()
MessageDialog (info) | ![]()
MessageDialog (warning) | ![]()
MessageDialog (error) |
The NumericControl can be used to change the value of a numeric variable.
maxStringBufferLength * sizeof(char)
(_stringDrawBuffer)![]()
NumericControl | ![]()
NumericControl in edit mode |
The VirtualKeys control can be used to emulate key presses via touch inputs. It displays one UI_Element that receives all emulated key presses and a matrix with many BoolControl elements to input key presses.
21 * sizeof(UIElement)
(_grid._items)5 * sizeof(uint16_t)
(_grid._initialRowHeights)5 * sizeof(uint16_t)
(_grid._initialColumnWidths)5 * sizeof(uint16_t)
(_grid._rowHeights)5 * sizeof(uint16_t)
(_grid._columnWidths)21 * sizeof(GridItemConfig)
(_grid._itemConfiguration)2 * sizeof(char)
(_button0._buttonText)2 * sizeof(char)
(_button1._buttonText)2 * sizeof(char)
(_button2._buttonText)2 * sizeof(char)
(_button3._buttonText)2 * sizeof(char)
(_button4._buttonText)2 * sizeof(char)
(_button5._buttonText)2 * sizeof(char)
(_button6._buttonText)2 * sizeof(char)
(_button7._buttonText)2 * sizeof(char)
(_button8._buttonText)2 * sizeof(char)
(_button9._buttonText)3 * sizeof(char)
(_buttonLeft._buttonText)3 * sizeof(char)
(_buttonRight._buttonText)2 * sizeof(char)
(_buttonMilli._buttonText)2 * sizeof(char)
(_buttonKilo._buttonText)3 * sizeof(char)
(_buttonX1._buttonText)2 * sizeof(char)
(_buttonMinus._buttonText)3 * sizeof(char)
(_buttonUp._buttonText)3 * sizeof(char)
(_buttonOk._buttonText)5 * sizeof(char)
(_buttonDown._buttonText)5 * sizeof(char)
(_buttonExitVirtualKeys._buttonText)