1 /** 2 * @file lvgl.h 3 * Include all LVGL related headers 4 */ 5 6 #ifndef LVGL_H 7 #define LVGL_H 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /*************************** 14 * CURRENT VERSION OF LVGL 15 ***************************/ 16 #define LVGL_VERSION_MAJOR 8 17 #define LVGL_VERSION_MINOR 2 18 #define LVGL_VERSION_PATCH 0 19 #define LVGL_VERSION_INFO "" 20 21 /********************* 22 * INCLUDES 23 *********************/ 24 25 #include "src/misc/lv_log.h" 26 #include "src/misc/lv_timer.h" 27 #include "src/misc/lv_math.h" 28 #include "src/misc/lv_mem.h" 29 #include "src/misc/lv_async.h" 30 #include "src/misc/lv_anim_timeline.h" 31 #include "src/misc/lv_printf.h" 32 33 #include "src/hal/lv_hal.h" 34 35 #include "src/core/lv_obj.h" 36 #include "src/core/lv_group.h" 37 #include "src/core/lv_indev.h" 38 #include "src/core/lv_refr.h" 39 #include "src/core/lv_disp.h" 40 #include "src/core/lv_theme.h" 41 42 #include "src/font/lv_font.h" 43 #include "src/font/lv_font_loader.h" 44 #include "src/font/lv_font_fmt_txt.h" 45 46 #include "src/widgets/lv_arc.h" 47 #include "src/widgets/lv_btn.h" 48 #include "src/widgets/lv_img.h" 49 #include "src/widgets/lv_label.h" 50 #include "src/widgets/lv_line.h" 51 #include "src/widgets/lv_table.h" 52 #include "src/widgets/lv_checkbox.h" 53 #include "src/widgets/lv_bar.h" 54 #include "src/widgets/lv_slider.h" 55 #include "src/widgets/lv_btnmatrix.h" 56 #include "src/widgets/lv_dropdown.h" 57 #include "src/widgets/lv_roller.h" 58 #include "src/widgets/lv_textarea.h" 59 #include "src/widgets/lv_canvas.h" 60 #include "src/widgets/lv_switch.h" 61 62 #include "src/draw/lv_draw.h" 63 64 #include "src/lv_api_map.h" 65 66 /*----------------- 67 * EXTRAS 68 *----------------*/ 69 #include "src/extra/lv_extra.h" 70 #include "src/extra/widgets/lv_widgets.h" 71 #include "src/extra/layouts/lv_layouts.h" 72 #include "src/extra/themes/lv_themes.h" 73 #include "src/extra/others/lv_others.h" 74 #include "src/extra/libs/lv_libs.h" 75 76 /********************* 77 * DEFINES 78 *********************/ 79 80 /********************** 81 * TYPEDEFS 82 **********************/ 83 84 /********************** 85 * GLOBAL PROTOTYPES 86 **********************/ 87 88 /********************** 89 * MACROS 90 **********************/ 91 92 /** Gives 1 if the x.y.z version is supported in the current version 93 * Usage: 94 * 95 * - Require v6 96 * #if LV_VERSION_CHECK(6,0,0) 97 * new_func_in_v6(); 98 * #endif 99 * 100 * 101 * - Require at least v5.3 102 * #if LV_VERSION_CHECK(5,3,0) 103 * new_feature_from_v5_3(); 104 * #endif 105 * 106 * 107 * - Require v5.3.2 bugfixes 108 * #if LV_VERSION_CHECK(5,3,2) 109 * bugfix_in_v5_3_2(); 110 * #endif 111 * 112 */ 113 #define LV_VERSION_CHECK(x,y,z) (x == LVGL_VERSION_MAJOR && (y < LVGL_VERSION_MINOR || (y == LVGL_VERSION_MINOR && z <= LVGL_VERSION_PATCH))) 114 115 /** 116 * Wrapper functions for VERSION macros 117 */ 118 lv_version_major(void)119static inline int lv_version_major(void) 120 { 121 return LVGL_VERSION_MAJOR; 122 } 123 lv_version_minor(void)124static inline int lv_version_minor(void) 125 { 126 return LVGL_VERSION_MINOR; 127 } 128 lv_version_patch(void)129static inline int lv_version_patch(void) 130 { 131 return LVGL_VERSION_PATCH; 132 } 133 lv_version_info(void)134static inline const char *lv_version_info(void) 135 { 136 return LVGL_VERSION_INFO; 137 } 138 139 #ifdef __cplusplus 140 } /*extern "C"*/ 141 #endif 142 143 #endif /*LVGL_H*/ 144