acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
lv_win.h (928B)
1 /** 2 * @file lv_win.h 3 * 4 */ 5 6 #ifndef LV_WIN_H 7 #define LV_WIN_H 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /********************* 14 * INCLUDES 15 *********************/ 16 #include "../../../lvgl.h" 17 18 /********************* 19 * DEFINES 20 *********************/ 21 22 /********************** 23 * TYPEDEFS 24 **********************/ 25 typedef struct { 26 lv_obj_t obj; 27 } lv_win_t; 28 29 extern const lv_obj_class_t lv_win_class; 30 31 /********************** 32 * GLOBAL PROTOTYPES 33 **********************/ 34 35 lv_obj_t * lv_win_create(lv_obj_t * parent, lv_coord_t header_height); 36 37 38 lv_obj_t * lv_win_add_title(lv_obj_t * win, const char * txt); 39 lv_obj_t * lv_win_add_btn(lv_obj_t * win, const void * icon, lv_coord_t btn_w); 40 41 lv_obj_t * lv_win_get_header(lv_obj_t * win); 42 lv_obj_t * lv_win_get_content(lv_obj_t * win); 43 /********************** 44 * MACROS 45 **********************/ 46 47 #ifdef __cplusplus 48 } /*extern "C"*/ 49 #endif 50 51 #endif /*LV_WIN_H*/