|
|
#define | UPD_FONT_LABEL (&gfx_font_10x20) |
| | The buttons and the IOmcu section: 10 x 20.
|
|
#define | UPD_FONT_BODY UI_FONT_BODY |
| | The card's text and the reminder's lines: 12 x 24.
|
|
#define | BX 16 |
| | The buttons' left edge.
|
|
#define | BW 460 |
| | The buttons' width, px.
|
|
#define | BH 56 |
| | The buttons' height, px.
|
|
#define | BPITCH 64 |
| | The step from one button to the next, px.
|
|
#define | RX 484 |
| | The card's left edge.
|
|
#define | RY 16 |
| | The card's top, and the first button's.
|
|
#define | RW 532 |
| | The card's width, px.
|
|
#define | RH 472 |
| | The card's height, px.
|
|
#define | RPAD 16 |
| | The card's inner padding, px.
|
|
#define | PITCH 28 |
| | A UPD_FONT_BODY line's pitch, px.
|
|
#define | DL_ROW 3 |
| | The download's hold's row.
|
|
#define | CU_HEAD_Y 280 |
| | The IOmcu section's heading.
|
|
#define | CU_RUN_Y 304 |
| | The version the IOmcu runs.
|
|
#define | CU_CAR_Y 328 |
| | The version this panel carries.
|
|
#define | CU_LINE_Y 356 |
| | The first line of state.
|
|
#define | CU_PITCH 24 |
| | The state's line pitch, px.
|
|
#define | CU_BTN gfx_rect_make(BX, 428, BW, BH) |
| | HOLD 2s: UPDATE IOMCU.
|
|
#define | R_BOX gfx_rect_make(82, 8, 860, 480) |
| | The reminder's box, in the body.
|
|
#define | R_IGNORE gfx_rect_make(106, 328, 398, 56) |
| | NOT NOW.
|
|
#define | R_NEVER gfx_rect_make(520, 328, 398, 56) |
| | NEVER REMIND ME.
|
|
#define | R_HOLD gfx_rect_make(106, 400, 812, 64) |
| | The reminder's hold.
|
|
#define | UPD_FLOOR (UI_ALERT_Y - UI_BAND_H - 4) |
| | The body row 4px above the alert band: every control ends over it.
|
|
|
static void | touched (void) |
| void | upd_screen_invalidate (void) |
| bool | upd_busy (const upd_view_t *v) |
|
static bool | have_newer (void) |
|
static bool | download_allowed (void) |
|
static bool | check_allowed (void) |
|
static bool | cancel_allowed (void) |
|
static bool | coproc_allowed (void) |
|
static void | drop_holds_if_gone (void) |
| void | upd_screen_set (const upd_view_t *v) |
| const upd_view_t * | upd_screen_view (void) |
| void | upd_screen_set_coproc (const upd_cu_view_t *v) |
| const upd_cu_view_t * | upd_screen_coproc (void) |
| bool | upd_screen_take_coproc (void) |
| | Whether HOLD 2s: UPDATE IOMCU completed, once.
|
| unsigned | upd_screen_take (void) |
|
static const char * | rel_text (const upd_view_t *v) |
|
static const char * | join_text (const upd_view_t *v) |
|
static void | blocked_text (upd_why_t why, char *out, size_t n, char *second, size_t n2) |
|
static const char * | aborted_text (upd_why_t why) |
|
static const char * | phase_text (upd_phase_t ph) |
| bool | upd_result_said_above (const upd_view_t *v) |
| | Whether the result card leaves out upd_result_text()'s lines because the status lines above already say them: a check that ended for want of a home network while the card shows "No home
network saved." (Wi-Fi set up, no network kept).
|
| void | upd_result_text (const upd_view_t *v, char *out, size_t n, char *second, size_t n2) |
| | The line that says how the last job ended, or what it does now, and the line under it.
|
|
static gfx_color_t | result_colour (void) |
| static void | text_in (gfx_canvas_t *c, int x, int y, int w, const char *t, const gfx_font_t *f, gfx_color_t col) |
| | One line of t in f at (x, y), w wide.
|
| static int | para (gfx_canvas_t *c, int x, int y, int w, const char *t, gfx_color_t col) |
| | t in UPD_FONT_BODY from y, as many lines of w as it takes, PITCH apart.
|
|
static gfx_color_t | hold_fill (const ui_hold_t *h) |
| static void | button (gfx_canvas_t *c, gfx_rect_t r, const char *label, gfx_color_t fill, bool pressed, bool enabled) |
| | A button of these screens: ui_button_font() in UPD_FONT_LABEL.
|
| static gfx_rect_t | btn (int row) |
| | UPDATES' button in row row.
|
|
static bool | testing_set (void) |
|
static int | hit_at (int x, int y) |
|
static void | act (int hit) |
|
static void | reset (void) |
|
static void | event (const touch_event_t *evt) |
|
static void | tick (float dt_s) |
|
static void | cancel (void) |
|
static void | enter (void) |
|
static void | leave (void) |
| void | upd_cu_text (const upd_cu_view_t *v, const char **line, gfx_color_t *col) |
|
static void | cu_version_text (char *out, size_t n, bool known, cu_version_t v) |
| static void | render_coproc (gfx_canvas_t *c) |
| | The IOmcu section: heading, versions, state, hold.
|
| static void | render (gfx_canvas_t *c, int buffer_index) |
| | UPDATES, drawn whole once per framebuffer and again after every change and through a hold.
|
|
const ui_screen_t * | upd_screen (void) |
|
static int | r_hit_at (int x, int y) |
|
static void | r_reset (void) |
|
static void | r_event (const touch_event_t *evt) |
|
static void | r_tick (float dt_s) |
|
static void | r_cancel (void) |
|
static void | r_enter (void) |
|
static void | r_leave (void) |
| static void | r_render (gfx_canvas_t *c, int buffer_index) |
| | The reminder, drawn whole once per framebuffer and again after every change and through the hold's flash.
|
|
const ui_screen_t * | upd_remind_screen (void) |
| bool | upd_startup_due (upd_driver_t *d, const upd_feed_t *f) |
| void | upd_remind_drive (upd_driver_t *d, const upd_feed_t *f) |
upd_screen.h says what these two screens are for.
SPDX-License-Identifier: MIT