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_tabview.h (1158B)

      1 /**
      2  * @file lv_templ.h
      3  *
      4  */
      5 
      6 #ifndef LV_TABVIEW_H
      7 #define LV_TABVIEW_H
      8 
      9 #ifdef __cplusplus
     10 extern "C" {
     11 #endif
     12 
     13 /*********************
     14  *      INCLUDES
     15  *********************/
     16 #include "../../../lvgl.h"
     17 
     18 #if LV_USE_TABVIEW
     19 
     20 /*********************
     21  *      DEFINES
     22  *********************/
     23 
     24 /**********************
     25  *      TYPEDEFS
     26  **********************/
     27 
     28 typedef struct {
     29     lv_obj_t obj;
     30     char ** map;
     31     uint16_t tab_cnt;
     32     uint16_t tab_cur;
     33     lv_dir_t tab_pos;
     34 } lv_tabview_t;
     35 
     36 extern const lv_obj_class_t lv_tabview_class;
     37 
     38 /**********************
     39  * GLOBAL PROTOTYPES
     40  **********************/
     41 lv_obj_t * lv_tabview_create(lv_obj_t * parent, lv_dir_t tab_pos, lv_coord_t tab_size);
     42 
     43 lv_obj_t * lv_tabview_add_tab(lv_obj_t * tv, const char * name);
     44 
     45 lv_obj_t * lv_tabview_get_content(lv_obj_t * tv);
     46 
     47 lv_obj_t * lv_tabview_get_tab_btns(lv_obj_t * tv);
     48 
     49 void lv_tabview_set_act(lv_obj_t * obj, uint32_t id, lv_anim_enable_t anim_en);
     50 
     51 uint16_t lv_tabview_get_tab_act(lv_obj_t * tv);
     52 
     53 /**********************
     54  *      MACROS
     55  **********************/
     56 
     57 #endif /*LV_USE_TABVIEW*/
     58 
     59 #ifdef __cplusplus
     60 } /*extern "C"*/
     61 #endif
     62 
     63 #endif /*LV_TABVIEW_H*/