ZEReader 0.1.0
A Zephyr-based E-Book-Reader
Loading...
Searching...
No Matches
ui.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025 Anna-Lena Marx <mail@marx.engineer>
3 *
4 * SPDX-License-Identifier: MPL-2.0
5 */
6
7#ifndef _UI_H_
8#define _UI_H_
9
10#include <lvgl.h>
11#include <lvgl_input_device.h>
12#include <zephyr/drivers/display.h>
13
14#include "context.h"
15
23
24extern const struct device *display_dev;
25
26#define BT_OK "ok"
27#define BT_EXIT "exit"
28#define BT_NEXT "next"
29#define BT_PREV "prev"
30#define BT_UP "up"
31#define BT_DOWN "down"
32#define BT_MENU "books"
33#define BT_NONE " "
34
41
46
51
56
61
66
68
69#endif
The UI's context.
context_t
UI context definition.
Definition context.h:22
void zereader_setup_control_buttons(context_t *context)
Setup and configure the control buttons.
void zereader_clean_page()
Clean out the page contents.
void zereader_print_current_page()
Show the current page.
void zereader_setup_page()
Setup the page UI elements.
void zereader_clean_logo()
Clean out the logo.
void zereader_show_logo()
Show the configured logo.