TB2026-YDS Firmware
Toggle main menu visibility
Loading...
Searching...
No Matches
screen.h
Go to the documentation of this file.
1
12
#pragma once
13
14
#include "
event.h
"
15
22
24
typedef
struct
screen_t
screen_t
;
25
31
struct
screen_t
{
32
void (*
on_enter
)(
screen_t
*self);
33
void (*
on_exit
)(
screen_t
*self);
34
void (*
handle_input
)(
screen_t
*self,
ui_event_t
event);
35
void (*
render
)(
screen_t
*self);
36
unsigned
refresh_ms
;
39
};
40
event.h
Input event vocabulary shared by screens and the navigator.
ui_event_t
ui_event_t
A single UI input event, produced from button/encoder input.
Definition
event.h:19
screen_t
A screen's behaviour, as a table of function pointers.
Definition
screen.h:31
screen_t::handle_input
void(* handle_input)(screen_t *self, ui_event_t event)
Definition
screen.h:34
screen_t::on_enter
void(* on_enter)(screen_t *self)
Definition
screen.h:32
screen_t::refresh_ms
unsigned refresh_ms
Definition
screen.h:36
screen_t::on_exit
void(* on_exit)(screen_t *self)
Definition
screen.h:33
screen_t::render
void(* render)(screen_t *self)
Definition
screen.h:35
components
ui
screen.h
Generated by
1.17.0