ZEReader 0.1.0
A Zephyr-based E-Book-Reader
Loading...
Searching...
No Matches
control_bar.h
1/*
2 * SPDX-FileCopyrightText: 2025 Anna-Lena Marx <mail@marx.engineer>
3 *
4 * SPDX-License-Identifier: MPL-2.0
5 */
6
7#ifndef _UI_WIDGET_CONTROL_BAR_H_
8#define _UI_WIDGET_CONTROL_BAR_H_
9
10#include <lvgl.h>
11#include <ui/context/context.h>
12
16typedef struct {
17 lv_obj_t *button_1_label;
18 lv_obj_t *button_2_label;
19 lv_obj_t *button_3_label;
20 lv_obj_t *button_4_label;
22
26typedef struct {
27 lv_event_cb_t button_1_cb;
28 lv_event_cb_t button_2_cb;
29 lv_event_cb_t button_3_cb;
30 lv_event_cb_t button_4_cb;
32
42zereader_control_bar_t* zereader_control_bar_create(lv_obj_t *parent, const lv_style_t *style, context_t *context, const zereader_control_bar_callbacks_t *callbacks);
43
50void zereader_control_bar_update_labels(zereader_control_bar_t *control_bar, context_t context);
51
52#endif /* _UI_WIDGET_CONTROL_BAR_H_ */
The UI's context.
context_t
UI context definition.
Definition context.h:22
A structure to hold the control bar button callbacks.
Definition control_bar.h:26
A structure to hold the control bar widgets.
Definition control_bar.h:16