rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
ui_keypad_t Struct Reference

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.

Detailed Description

A numeric keypad: what it was opened with, what is typed, and the press it holds.

Field Documentation

◆ area

gfx_rect_t ui_keypad_t::area

where it draws, screen coordinates

◆ decimals

int ui_keypad_t::decimals

digits it takes after the point

◆ len

int ui_keypad_t::len

bytes in entry

◆ max

float ui_keypad_t::max

the highest value OK hands back

◆ min

float ui_keypad_t::min

the lowest value OK hands back

◆ open

bool ui_keypad_t::open

drawn and taking events

◆ press_id

uint8_t ui_keypad_t::press_id

the touch id of that press

◆ pressed

int ui_keypad_t::pressed

the key under the press, or -1

◆ refused

bool ui_keypad_t::refused

the last OK was refused: outside the range, or by the caller

◆ sign

bool ui_keypad_t::sign

opened signed: the +/- key is there

◆ title

char ui_keypad_t::title[48]

the setting's name, top left

◆ unit

char ui_keypad_t::unit[6]

beside the entry and the range

◆ value

float ui_keypad_t::value

shown faint while nothing is typed


The documentation for this struct was generated from the following file: