1 /** 2 * @file lv_templ.h 3 * 4 */ 5 6 /** 7 * TODO Remove these instructions 8 * Search and replace: templ -> object short name with lower case(e.g. btn, label etc) 9 * TEMPL -> object short name with upper case (e.g. BTN, LABEL etc.) 10 * 11 */ 12 13 #ifndef LV_TEMPL_H 14 #define LV_TEMPL_H 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 /********************* 21 * INCLUDES 22 *********************/ 23 #include "../lv_conf_internal.h" 24 25 #if LV_USE_TEMPL != 0 26 27 #include "../core/lv_obj.h" 28 29 /********************* 30 * DEFINES 31 *********************/ 32 33 /********************** 34 * TYPEDEFS 35 **********************/ 36 /*Data of template*/ 37 typedef struct { 38 lv_ANCESTOR_t ancestor; /*The ancestor widget, e.g. lv_slider_t slider*/ 39 /*New data for this type*/ 40 } lv_templ_t; 41 42 extern const lv_obj_class_t lv_templ_class; 43 44 /********************** 45 * GLOBAL PROTOTYPES 46 **********************/ 47 48 /** 49 * Create a templ object 50 * @param parent pointer to an object, it will be the parent of the new templ 51 * @return pointer to the created bar 52 */ 53 lv_obj_t * lv_templ_create(lv_obj_t * parent); 54 55 /*====================== 56 * Add/remove functions 57 *=====================*/ 58 59 /*===================== 60 * Setter functions 61 *====================*/ 62 63 /*===================== 64 * Getter functions 65 *====================*/ 66 67 /*===================== 68 * Other functions 69 *====================*/ 70 71 /********************** 72 * MACROS 73 **********************/ 74 75 #endif /*LV_USE_TEMPL*/ 76 77 #ifdef __cplusplus 78 } /*extern "C"*/ 79 #endif 80 81 #endif /*LV_TEMPL_H*/ 82