33#define UI_TARGET_LABEL_W 64
41#define UI_TARGET_TALL_H 40
44#define UI_TARGET_LABEL_W_TALL 88
126 const char *label,
const char *value,
bool warn,
143size_t ui_target_text(
char *out,
size_t size,
const char *protocol,
144 uint64_t pins,
unsigned cells);
gfx: an RGB565 (16-bit red, green, blue) rasteriser with no dependencies.
A DOWN, MOVE or UP of one contact.
Definition touch_types.h:69
A TARGET row: where it is and the press it holds.
Definition ui_target_row.h:47
uint8_t id
Definition ui_target_row.h:50
gfx_rect_t rect
Definition ui_target_row.h:48
bool down
Definition ui_target_row.h:49
Plain data types shared by the touch controller driver, the coordinate mapper and the event tracker....
gfx_rect_t ui_target_row_value_rect(const ui_target_row_t *t)
The value box: the row less the label's share.
Definition ui_target_row.c:36
const gfx_font_t * ui_target_row_font(const ui_target_row_t *t)
The face the row draws its label and its value in.
Definition ui_target_row.c:47
ui_target_ev_t
What a touch event was to the row.
Definition ui_target_row.h:54
@ UI_TARGET_NONE
Definition ui_target_row.h:55
@ UI_TARGET_TAKEN
Definition ui_target_row.h:56
@ UI_TARGET_TAP
Definition ui_target_row.h:57
void ui_target_row_init(ui_target_row_t *t, gfx_rect_t row)
The row at row, with no press.
Definition ui_target_row.c:17
size_t ui_target_text(char *out, size_t size, const char *protocol, uint64_t pins, unsigned cells)
protocol pins into out: "SERVO PWM GPIO 2 GPIO 4", with as many pins as fit after the protocol and a ...
Definition ui_target_row.c:132
void ui_target_row_cancel(ui_target_row_t *t)
Drop a press under way, as touch events went missing.
Definition ui_target_row.c:89
void ui_target_row_render(const ui_target_row_t *t, gfx_canvas_t *c, const char *label, const char *value, bool warn, bool locked)
The row: label at the left, value centred in its box, both in ui_target_row_font().
Definition ui_target_row.c:96
unsigned ui_target_row_cells(const ui_target_row_t *t)
How many cells of text the value box holds, in the row's face.
Definition ui_target_row.c:52
ui_target_ev_t ui_target_row_event(ui_target_row_t *t, const touch_event_t *evt, bool locked)
A touch event.
Definition ui_target_row.c:60