This repository was archived by the owner on Mar 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathcustom_widget.h
More file actions
67 lines (52 loc) · 1.23 KB
/
Copy pathcustom_widget.h
File metadata and controls
67 lines (52 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* @file gencode.h
*
*/
#ifndef _CUSTOM_WIDGET_H_
#define _CUSTOM_WIDGET_H_
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#ifdef LV_CONF_INCLUDE_SIMPLE
#include "lvgl.h"
#include "lv_ex_conf.h"
#else
#include "./lvgl/lvgl.h"
#include "./lv_ex_conf.h"
#endif
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
typedef struct
{
lv_cont_ext_t cont;
lv_obj_t * title;
lv_obj_t * bind;
lv_obj_t * left, * right; //Brother LayerView
lv_obj_t * child; //Child LayerView
}layerview_ext_t;
/**********************
* GLOBAL PROTOTYPES
**********************/
lv_obj_t * tbox_create(lv_obj_t * par, char * title);
lv_obj_t * tbox_get_ta(lv_obj_t * tbox);
lv_obj_t * layerview_init(lv_obj_t * win);
lv_obj_t * layerview_add(lv_obj_t * par, lv_obj_t * obj);
void layerview_add_bro(lv_obj_t * left_layer, lv_obj_t * layer);
lv_obj_t * layerview_get_sel_obj(void);
lv_obj_t * layerview_get_sel_layer(void);
void layerview_del_sel(void);
lv_obj_t * layerview_get_base(void);
/**********************
* MACROS
**********************/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif