lvgl.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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/tick/lv_tick.h"
  31. #include "src/core/lv_obj.h"
  32. #include "src/core/lv_group.h"
  33. #include "src/indev/lv_indev.h"
  34. #include "src/core/lv_refr.h"
  35. #include "src/display/lv_display.h"
  36. #include "src/font/lv_font.h"
  37. #include "src/font/lv_binfont_loader.h"
  38. #include "src/font/lv_font_fmt_txt.h"
  39. #include "src/widgets/animimage/lv_animimage.h"
  40. #include "src/widgets/arc/lv_arc.h"
  41. #include "src/widgets/bar/lv_bar.h"
  42. #include "src/widgets/button/lv_button.h"
  43. #include "src/widgets/buttonmatrix/lv_buttonmatrix.h"
  44. #include "src/widgets/calendar/lv_calendar.h"
  45. #include "src/widgets/canvas/lv_canvas.h"
  46. #include "src/widgets/carousel/lv_carousel.h"
  47. #include "src/widgets/chart/lv_chart.h"
  48. #include "src/widgets/checkbox/lv_checkbox.h"
  49. #include "src/widgets/dropdown/lv_dropdown.h"
  50. #include "src/widgets/image/lv_image.h"
  51. #include "src/widgets/imagebutton/lv_imagebutton.h"
  52. #include "src/widgets/keyboard/lv_keyboard.h"
  53. #include "src/widgets/label/lv_label.h"
  54. #include "src/widgets/led/lv_led.h"
  55. #include "src/widgets/line/lv_line.h"
  56. #include "src/widgets/list/lv_list.h"
  57. #include "src/widgets/lottie/lv_lottie.h"
  58. #include "src/widgets/menu/lv_menu.h"
  59. #include "src/widgets/msgbox/lv_msgbox.h"
  60. #include "src/widgets/roller/lv_roller.h"
  61. #include "src/widgets/scale/lv_scale.h"
  62. #include "src/widgets/slider/lv_slider.h"
  63. #include "src/widgets/span/lv_span.h"
  64. #include "src/widgets/spinbox/lv_spinbox.h"
  65. #include "src/widgets/spinner/lv_spinner.h"
  66. #include "src/widgets/switch/lv_switch.h"
  67. #include "src/widgets/table/lv_table.h"
  68. #include "src/widgets/tabview/lv_tabview.h"
  69. #include "src/widgets/textarea/lv_textarea.h"
  70. #include "src/widgets/tileview/lv_tileview.h"
  71. #include "src/widgets/win/lv_win.h"
  72. #include "src/others/snapshot/lv_snapshot.h"
  73. #include "src/others/sysmon/lv_sysmon.h"
  74. #include "src/others/monkey/lv_monkey.h"
  75. #include "src/others/gridnav/lv_gridnav.h"
  76. #include "src/others/fragment/lv_fragment.h"
  77. #include "src/others/imgfont/lv_imgfont.h"
  78. #include "src/others/observer/lv_observer.h"
  79. #include "src/others/ime/lv_ime_pinyin.h"
  80. #include "src/others/file_explorer/lv_file_explorer.h"
  81. #include "src/libs/barcode/lv_barcode.h"
  82. #include "src/libs/bin_decoder/lv_bin_decoder.h"
  83. #include "src/libs/bmp/lv_bmp.h"
  84. #include "src/libs/rle/lv_rle.h"
  85. #include "src/libs/fsdrv/lv_fsdrv.h"
  86. #include "src/libs/lodepng/lv_lodepng.h"
  87. #include "src/libs/libpng/lv_libpng.h"
  88. #include "src/libs/gif/lv_gif.h"
  89. #include "src/libs/qrcode/lv_qrcode.h"
  90. #include "src/libs/tjpgd/lv_tjpgd.h"
  91. #include "src/libs/libjpeg_turbo/lv_libjpeg_turbo.h"
  92. #include "src/libs/freetype/lv_freetype.h"
  93. #include "src/libs/rlottie/lv_rlottie.h"
  94. #include "src/libs/ffmpeg/lv_ffmpeg.h"
  95. #include "src/libs/tiny_ttf/lv_tiny_ttf.h"
  96. #include "src/layouts/lv_layout.h"
  97. #include "src/draw/lv_draw.h"
  98. #include "src/draw/lv_draw_buf.h"
  99. #include "src/draw/lv_draw_vector.h"
  100. #include "src/draw/sw/lv_draw_sw.h"
  101. #include "src/themes/lv_theme.h"
  102. #include "src/drivers/lv_drivers.h"
  103. #include "src/lv_api_map_v8.h"
  104. #include "src/lv_api_map_v9_0.h"
  105. #include "src/lv_api_map_v9_1.h"
  106. #if LV_USE_PRIVATE_API
  107. #include "src/lvgl_private.h"
  108. #endif
  109. /*********************
  110. * DEFINES
  111. *********************/
  112. /**********************
  113. * TYPEDEFS
  114. **********************/
  115. /**********************
  116. * GLOBAL PROTOTYPES
  117. **********************/
  118. /**********************
  119. * MACROS
  120. **********************/
  121. /** Gives 1 if the x.y.z version is supported in the current version
  122. * Usage:
  123. *
  124. * - Require v6
  125. * #if LV_VERSION_CHECK(6,0,0)
  126. * new_func_in_v6();
  127. * #endif
  128. *
  129. *
  130. * - Require at least v5.3
  131. * #if LV_VERSION_CHECK(5,3,0)
  132. * new_feature_from_v5_3();
  133. * #endif
  134. *
  135. *
  136. * - Require v5.3.2 bugfixes
  137. * #if LV_VERSION_CHECK(5,3,2)
  138. * bugfix_in_v5_3_2();
  139. * #endif
  140. *
  141. */
  142. #define LV_VERSION_CHECK(x,y,z) (x == LVGL_VERSION_MAJOR && (y < LVGL_VERSION_MINOR || (y == LVGL_VERSION_MINOR && z <= LVGL_VERSION_PATCH)))
  143. /**
  144. * Wrapper functions for VERSION macros
  145. */
  146. static inline int lv_version_major(void)
  147. {
  148. return LVGL_VERSION_MAJOR;
  149. }
  150. static inline int lv_version_minor(void)
  151. {
  152. return LVGL_VERSION_MINOR;
  153. }
  154. static inline int lv_version_patch(void)
  155. {
  156. return LVGL_VERSION_PATCH;
  157. }
  158. static inline const char * lv_version_info(void)
  159. {
  160. return LVGL_VERSION_INFO;
  161. }
  162. #ifdef __cplusplus
  163. } /*extern "C"*/
  164. #endif
  165. #endif /*LVGL_H*/