rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
ui_band.h
Go to the documentation of this file.
1
8#pragma once
9
10#include <stdbool.h>
11#include <stddef.h>
12#include <stdint.h>
13
14#include "gfx.h"
15#include "ui_screen.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
23
29const char *ui_band_mode(bool link_up);
30
31#ifdef RCBENCH_TOUCH_INJECTOR
38const char *ui_band_mode_inject(void);
39#endif
40
46const char *ui_band_armed_label(uint8_t roles);
47
55bool ui_link_refused_label(const ui_bench_status_t *st, char *out, size_t n);
56
63 gfx_rect_t *out);
64
75ui_band_chip_t ui_band_chip_at(const ui_bench_status_t *st, int x, int y);
76
84 gfx_rect_t *out);
85
92 ui_band_chip_t chip);
93
108 gfx_color_t *fill, gfx_color_t *ink);
109
123uint32_t ui_band_key(const char *title, bool show_home,
124 const ui_bench_status_t *st, bool stop_pressed,
125 bool home_pressed);
126
131void ui_band_render(gfx_canvas_t *c, const char *title, bool show_home,
132 const ui_bench_status_t *st, bool stop_pressed,
133 bool home_pressed);
134
135#ifdef __cplusplus
136}
137#endif
gfx: an RGB565 (16-bit red, green, blue) rasteriser with no dependencies.
Definition gfx.h:129
Definition gfx.h:81
Definition ui_screen.h:222
bool ui_band_chip_colors(const ui_bench_status_t *st, ui_band_chip_t chip, gfx_color_t *fill, gfx_color_t *ink)
The fill and the text colour ui_band_render() draws chip in for st, in the theme in force.
Definition ui_band.c:521
bool ui_band_chip_rect(const ui_bench_status_t *st, ui_band_chip_t chip, gfx_rect_t *out)
Definition ui_band.c:177
void ui_band_help_render(gfx_canvas_t *c, const ui_bench_status_t *st, ui_band_chip_t chip)
Definition ui_band.c:455
bool ui_band_help_rect(const ui_bench_status_t *st, ui_band_chip_t chip, gfx_rect_t *out)
Definition ui_band.c:430
void ui_band_render(gfx_canvas_t *c, const char *title, bool show_home, const ui_bench_status_t *st, bool stop_pressed, bool home_pressed)
Definition ui_band.c:587
gfx_rect_t ui_band_stop_rect(void)
Definition ui_band.c:31
const char * ui_band_mode(bool link_up)
Definition ui_band.c:42
uint32_t ui_band_key(const char *title, bool show_home, const ui_bench_status_t *st, bool stop_pressed, bool home_pressed)
A number for what ui_band_render() draws from the same arguments: the title, the home tag's and STOP'...
Definition ui_band.c:549
bool ui_link_refused_label(const ui_bench_status_t *st, char *out, size_t n)
Definition ui_band.c:63
const char * ui_band_armed_label(uint8_t roles)
Definition ui_band.c:54
ui_band_chip_t ui_band_chip_at(const ui_bench_status_t *st, int x, int y)
The chip a touch lands on.
Definition ui_band.c:192
const char * ui_band_mode_inject(void)
Definition ui_band.c:48
Screen router.
ui_band_chip_t
Definition ui_screen.h:279