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 lv_obj_t * lv_win_add_title(lv_obj_t * win, const char * txt); 38 lv_obj_t * lv_win_add_btn(lv_obj_t * win, const void * icon, lv_coord_t btn_w); 39 40 lv_obj_t * lv_win_get_header(lv_obj_t * win); 41 lv_obj_t * lv_win_get_content(lv_obj_t * win); 42 /********************** 43 * MACROS 44 **********************/ 45 46 #ifdef __cplusplus 47 } /*extern "C"*/ 48 #endif 49 50 #endif /*LV_WIN_H*/ 51