TB2026-YDS Firmware
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
25void navigator_push(screen_t *screen);
26
30void navigator_pop(void);
31
36void navigator_tick(ui_event_t event);
37
44void navigator_render(void);
45
56uint32_t navigator_refresh_ticks(void);
57
ui_event_t
A single UI input event, produced from button/encoder input.
Definition event.h:19
uint32_t navigator_refresh_ticks(void)
How long the UI task should wait for input before a live re-render.
Definition navigator.c:53
void navigator_render(void)
Re-render the top screen and the status bar, without an input event.
Definition navigator.c:34
void navigator_push(screen_t *screen)
Push a screen onto the stack and call its on_enter.
Definition navigator.c:20
void navigator_tick(ui_event_t event)
Deliver one input event to the top screen, then render it.
Definition navigator.c:42
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 interface contract: the vtable every screen implements.
A screen's behaviour, as a table of function pointers.
Definition screen.h:31