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_imgfont.h (1271B)
1 /** 2 * @file lv_imgfont.h 3 * 4 */ 5 6 #ifndef LV_IMGFONT_H 7 #define LV_IMGFONT_H 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /********************* 14 * INCLUDES 15 *********************/ 16 #include "../../../lvgl.h" 17 18 #if LV_USE_IMGFONT 19 20 /********************* 21 * DEFINES 22 *********************/ 23 24 /********************** 25 * TYPEDEFS 26 **********************/ 27 28 /* gets the image path name of this character */ 29 typedef bool (*lv_get_imgfont_path_cb_t)(const lv_font_t * font, void * img_src, 30 uint16_t len, uint32_t unicode, uint32_t unicode_next); 31 32 /********************** 33 * GLOBAL PROTOTYPES 34 **********************/ 35 36 /** 37 * Creates a image font with info parameter specified. 38 * @param height font size 39 * @param path_cb a function to get the image path name of character. 40 * @return pointer to the new imgfont or NULL if create error. 41 */ 42 lv_font_t * lv_imgfont_create(uint16_t height, lv_get_imgfont_path_cb_t path_cb); 43 44 /** 45 * Destroy a image font that has been created. 46 * @param font pointer to image font handle. 47 */ 48 void lv_imgfont_destroy(lv_font_t * font); 49 50 /********************** 51 * MACROS 52 **********************/ 53 54 #endif /*LV_USE_IMGFONT*/ 55 56 #ifdef __cplusplus 57 } /*extern "C"*/ 58 #endif 59 60 #endif /* LV_IMGFONT_H */