89 lines
1.8 KiB
C
89 lines
1.8 KiB
C
#ifndef EEZ_LVGL_UI_SCREENS_H
|
|
#define EEZ_LVGL_UI_SCREENS_H
|
|
|
|
#include <../../lvgl/lvgl.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct _objects_t {
|
|
lv_obj_t *start;
|
|
lv_obj_t *configurations;
|
|
lv_obj_t *vote_wait;
|
|
lv_obj_t *vote_session;
|
|
lv_obj_t *vote_wait_results;
|
|
lv_obj_t *vote_results;
|
|
lv_obj_t *ibvs_mode;
|
|
lv_obj_t *ibvs_processor;
|
|
lv_obj_t *obj0;
|
|
lv_obj_t *obj1;
|
|
lv_obj_t *obj2;
|
|
lv_obj_t *orgenv_name;
|
|
lv_obj_t *name_name;
|
|
lv_obj_t *question_name;
|
|
lv_obj_t *picture;
|
|
lv_obj_t *item1;
|
|
lv_obj_t *item2;
|
|
lv_obj_t *item3;
|
|
lv_obj_t *item4;
|
|
lv_obj_t *item5;
|
|
lv_obj_t *obj3;
|
|
lv_obj_t *obj4;
|
|
lv_obj_t *obj5;
|
|
lv_obj_t *obj6;
|
|
lv_obj_t *obj7;
|
|
lv_obj_t *obj8;
|
|
lv_obj_t *obj9;
|
|
lv_obj_t *obj10;
|
|
lv_obj_t *obj11;
|
|
} objects_t;
|
|
|
|
extern objects_t objects;
|
|
|
|
enum ScreensEnum {
|
|
SCREEN_ID_START = 1,
|
|
SCREEN_ID_CONFIGURATIONS = 2,
|
|
SCREEN_ID_VOTE_WAIT = 3,
|
|
SCREEN_ID_VOTE_SESSION = 4,
|
|
SCREEN_ID_VOTE_WAIT_RESULTS = 5,
|
|
SCREEN_ID_VOTE_RESULTS = 6,
|
|
SCREEN_ID_IBVS_MODE = 7,
|
|
SCREEN_ID_IBVS_PROCESSOR = 8,
|
|
};
|
|
|
|
void create_screen_start();
|
|
void tick_screen_start();
|
|
|
|
void create_screen_configurations();
|
|
void tick_screen_configurations();
|
|
|
|
void create_screen_vote_wait();
|
|
void tick_screen_vote_wait();
|
|
|
|
void create_screen_vote_session();
|
|
void tick_screen_vote_session();
|
|
|
|
void create_screen_vote_wait_results();
|
|
void tick_screen_vote_wait_results();
|
|
|
|
void create_screen_vote_results();
|
|
void tick_screen_vote_results();
|
|
|
|
void create_screen_ibvs_mode();
|
|
void tick_screen_ibvs_mode();
|
|
|
|
void create_screen_ibvs_processor();
|
|
void tick_screen_ibvs_processor();
|
|
|
|
void tick_screen_by_id(enum ScreensEnum screenId);
|
|
void tick_screen(int screen_index);
|
|
|
|
void create_screens();
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /*EEZ_LVGL_UI_SCREENS_H*/ |