TB2026-YDS Firmware
Toggle main menu visibility
Loading...
Searching...
No Matches
navigator.h
Go to the documentation of this file.
1
9
#pragma once
10
11
#include "
screen.h
"
12
#include <stdint.h>
13
20
25
void
navigator_push
(
screen_t
*screen);
26
30
void
navigator_pop
(
void
);
31
36
void
navigator_tick
(
ui_event_t
event);
37
44
void
navigator_render
(
void
);
45
56
uint32_t
navigator_refresh_ticks
(
void
);
57
ui_event_t
ui_event_t
A single UI input event, produced from button/encoder input.
Definition
event.h:19
navigator_refresh_ticks
uint32_t navigator_refresh_ticks(void)
How long the UI task should wait for input before a live re-render.
Definition
navigator.c:53
navigator_render
void navigator_render(void)
Re-render the top screen and the status bar, without an input event.
Definition
navigator.c:34
navigator_push
void navigator_push(screen_t *screen)
Push a screen onto the stack and call its on_enter.
Definition
navigator.c:20
navigator_tick
void navigator_tick(ui_event_t event)
Deliver one input event to the top screen, then render it.
Definition
navigator.c:42
navigator_pop
void navigator_pop(void)
Pop the top screen and call its on_exit. No-op if the stack is empty.
Definition
navigator.c:27
screen.h
Screen interface contract: the vtable every screen implements.
screen_t
A screen's behaviour, as a table of function pointers.
Definition
screen.h:31
components
ui
navigator.h
Generated by
1.17.0