lvgl.h 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. /**
  2. * @file lvgl.h
  3. * Include all LVGL related headers
  4. */
  5. #ifndef LVGL_H
  6. #define LVGL_H
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. /***************************
  11. * CURRENT VERSION OF LVGL
  12. ***************************/
  13. #include "lv_version.h"
  14. /*********************
  15. * INCLUDES
  16. *********************/
  17. #include "src/lv_init.h"
  18. #include "src/stdlib/lv_mem.h"
  19. #include "src/stdlib/lv_string.h"
  20. #include "src/stdlib/lv_sprintf.h"
  21. #include "src/misc/lv_log.h"
  22. #include "src/misc/lv_timer.h"
  23. #include "src/misc/lv_math.h"
  24. #include "src/misc/lv_array.h"
  25. #include "src/misc/lv_async.h"
  26. #include "src/misc/lv_anim_timeline.h"
  27. #include "src/misc/lv_profiler_builtin.h"
  28. #include "src/misc/lv_rb.h"
  29. #include "src/misc/lv_utils.h"
  30. #include "src/misc/lv_iter.h"
  31. #include "src/misc/lv_circle_buf.h"
  32. #include "src/misc/lv_tree.h"
  33. #include "src/osal/lv_os.h"
  34. #include "src/tick/lv_tick.h"
  35. #include "src/core/lv_obj.h"
  36. #include "src/core/lv_group.h"
  37. #include "src/indev/lv_indev.h"
  38. #include "src/indev/lv_indev_gesture.h"
  39. #include "src/core/lv_refr.h"
  40. #include "src/display/lv_display.h"
  41. #include "src/font/lv_font.h"
  42. #include "src/font/lv_binfont_loader.h"
  43. #include "src/font/lv_font_fmt_txt.h"
  44. #include "src/widgets/animimage/lv_animimage.h"
  45. #include "src/widgets/arc/lv_arc.h"
  46. #include "src/widgets/arclabel/lv_arclabel.h"
  47. #include "src/widgets/bar/lv_bar.h"
  48. #include "src/widgets/button/lv_button.h"
  49. #include "src/widgets/buttonmatrix/lv_buttonmatrix.h"
  50. #include "src/widgets/calendar/lv_calendar.h"
  51. #include "src/widgets/canvas/lv_canvas.h"
  52. #include "src/widgets/chart/lv_chart.h"
  53. #include "src/widgets/checkbox/lv_checkbox.h"
  54. #include "src/widgets/dropdown/lv_dropdown.h"
  55. #include "src/widgets/image/lv_image.h"
  56. #include "src/widgets/imagebutton/lv_imagebutton.h"
  57. #include "src/widgets/keyboard/lv_keyboard.h"
  58. #include "src/widgets/label/lv_label.h"
  59. #include "src/widgets/led/lv_led.h"
  60. #include "src/widgets/line/lv_line.h"
  61. #include "src/widgets/list/lv_list.h"
  62. #include "src/widgets/lottie/lv_lottie.h"
  63. #include "src/widgets/menu/lv_menu.h"
  64. #include "src/widgets/msgbox/lv_msgbox.h"
  65. #include "src/widgets/roller/lv_roller.h"
  66. #include "src/widgets/scale/lv_scale.h"
  67. #include "src/widgets/slider/lv_slider.h"
  68. #include "src/widgets/span/lv_span.h"
  69. #include "src/widgets/spinbox/lv_spinbox.h"
  70. #include "src/widgets/spinner/lv_spinner.h"
  71. #include "src/widgets/switch/lv_switch.h"
  72. #include "src/widgets/table/lv_table.h"
  73. #include "src/widgets/tabview/lv_tabview.h"
  74. #include "src/widgets/textarea/lv_textarea.h"
  75. #include "src/widgets/tileview/lv_tileview.h"
  76. #include "src/widgets/win/lv_win.h"
  77. #include "src/widgets/3dtexture/lv_3dtexture.h"
  78. #include "src/others/snapshot/lv_snapshot.h"
  79. #include "src/others/sysmon/lv_sysmon.h"
  80. #include "src/others/monkey/lv_monkey.h"
  81. #include "src/others/gridnav/lv_gridnav.h"
  82. #include "src/others/fragment/lv_fragment.h"
  83. #include "src/others/imgfont/lv_imgfont.h"
  84. #include "src/others/observer/lv_observer.h"
  85. #include "src/others/ime/lv_ime_pinyin.h"
  86. #include "src/others/file_explorer/lv_file_explorer.h"
  87. #include "src/others/font_manager/lv_font_manager.h"
  88. #include "src/others/translation/lv_translation.h"
  89. #include "src/others/xml/lv_xml.h"
  90. #include "src/others/test/lv_test.h"
  91. #include "src/libs/barcode/lv_barcode.h"
  92. #include "src/libs/bin_decoder/lv_bin_decoder.h"
  93. #include "src/libs/bmp/lv_bmp.h"
  94. #include "src/libs/rle/lv_rle.h"
  95. #include "src/libs/fsdrv/lv_fsdrv.h"
  96. #include "src/libs/lodepng/lv_lodepng.h"
  97. #include "src/libs/libpng/lv_libpng.h"
  98. #include "src/libs/gltf/gltf_data/lv_gltf_model.h"
  99. #include "src/libs/gltf/gltf_view/lv_gltf.h"
  100. #include "src/libs/gif/lv_gif.h"
  101. #include "src/libs/gstreamer/lv_gstreamer.h"
  102. #include "src/libs/qrcode/lv_qrcode.h"
  103. #include "src/libs/tjpgd/lv_tjpgd.h"
  104. #include "src/libs/libjpeg_turbo/lv_libjpeg_turbo.h"
  105. #include "src/libs/freetype/lv_freetype.h"
  106. #include "src/libs/rlottie/lv_rlottie.h"
  107. #include "src/libs/ffmpeg/lv_ffmpeg.h"
  108. #include "src/libs/tiny_ttf/lv_tiny_ttf.h"
  109. #include "src/libs/svg/lv_svg.h"
  110. #include "src/libs/svg/lv_svg_render.h"
  111. #include "src/layouts/lv_layout.h"
  112. #include "src/draw/lv_draw_buf.h"
  113. #include "src/draw/lv_draw_vector.h"
  114. #include "src/draw/sw/lv_draw_sw_utils.h"
  115. #include "src/draw/eve/lv_draw_eve_target.h"
  116. #include "src/themes/lv_theme.h"
  117. #include "src/drivers/lv_drivers.h"
  118. /* Define LV_DISABLE_API_MAPPING using a compiler option
  119. * to make sure your application is not using deprecated names */
  120. #ifndef LV_DISABLE_API_MAPPING
  121. #include "src/lv_api_map_v8.h"
  122. #include "src/lv_api_map_v9_0.h"
  123. #include "src/lv_api_map_v9_1.h"
  124. #include "src/lv_api_map_v9_2.h"
  125. #include "src/lv_api_map_v9_3.h"
  126. #endif /*LV_DISABLE_API_MAPPING*/
  127. #if LV_USE_PRIVATE_API
  128. #include "src/lvgl_private.h"
  129. #endif
  130. /*********************
  131. * DEFINES
  132. *********************/
  133. /**********************
  134. * TYPEDEFS
  135. **********************/
  136. /**********************
  137. * GLOBAL PROTOTYPES
  138. **********************/
  139. /**********************
  140. * MACROS
  141. **********************/
  142. /** Gives 1 if the x.y.z version is supported in the current version
  143. * Usage:
  144. *
  145. * - Require v6
  146. * #if LV_VERSION_CHECK(6,0,0)
  147. * new_func_in_v6();
  148. * #endif
  149. *
  150. *
  151. * - Require at least v5.3
  152. * #if LV_VERSION_CHECK(5,3,0)
  153. * new_feature_from_v5_3();
  154. * #endif
  155. *
  156. *
  157. * - Require v5.3.2 bugfixes
  158. * #if LV_VERSION_CHECK(5,3,2)
  159. * bugfix_in_v5_3_2();
  160. * #endif
  161. *
  162. */
  163. #define LV_VERSION_CHECK(x,y,z) (x == LVGL_VERSION_MAJOR && (y < LVGL_VERSION_MINOR || (y == LVGL_VERSION_MINOR && z <= LVGL_VERSION_PATCH)))
  164. /**
  165. * Wrapper functions for VERSION macros
  166. */
  167. static inline int lv_version_major(void)
  168. {
  169. return LVGL_VERSION_MAJOR;
  170. }
  171. static inline int lv_version_minor(void)
  172. {
  173. return LVGL_VERSION_MINOR;
  174. }
  175. static inline int lv_version_patch(void)
  176. {
  177. return LVGL_VERSION_PATCH;
  178. }
  179. static inline const char * lv_version_info(void)
  180. {
  181. return LVGL_VERSION_INFO;
  182. }
  183. #ifdef __cplusplus
  184. } /*extern "C"*/
  185. #endif
  186. #endif /*LVGL_H*/