|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
A numeric keypad: what it was opened with, what is typed, and the press it holds. More...
#include <ui_keypad.h>
Data Fields | |
| bool | open |
| gfx_rect_t | area |
| char | title [48] |
| char | unit [6] |
| float | value |
| float | min |
| float | max |
| int | decimals |
| char | entry [UI_KEYPAD_ENTRY_MAX+1] |
| What has been typed, '\0'-ended. | |
| int | len |
| bool | refused |
| char | reason [64] |
| Why the caller refused the last OK, drawn in place of the range while refused; "" for a value outside the range. | |
| bool | sign |
| int | pressed |
| uint8_t | press_id |
| uint32_t | revision |
| Bumped on every change a render would show. | |
A numeric keypad: what it was opened with, what is typed, and the press it holds.
| gfx_rect_t ui_keypad_t::area |
where it draws, screen coordinates
| int ui_keypad_t::decimals |
digits it takes after the point
| int ui_keypad_t::len |
bytes in entry
| float ui_keypad_t::max |
the highest value OK hands back
| float ui_keypad_t::min |
the lowest value OK hands back
| bool ui_keypad_t::open |
drawn and taking events
| uint8_t ui_keypad_t::press_id |
the touch id of that press
| int ui_keypad_t::pressed |
the key under the press, or -1
| bool ui_keypad_t::refused |
the last OK was refused: outside the range, or by the caller
| bool ui_keypad_t::sign |
opened signed: the +/- key is there
| char ui_keypad_t::title[48] |
the setting's name, top left
| char ui_keypad_t::unit[6] |
beside the entry and the range
| float ui_keypad_t::value |
shown faint while nothing is typed