lvgl.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. #define LVGL_VERSION_MAJOR 8
  14. #define LVGL_VERSION_MINOR 3
  15. #define LVGL_VERSION_PATCH 11
  16. #define LVGL_VERSION_INFO ""
  17. /*********************
  18. * INCLUDES
  19. *********************/
  20. #include "src/misc/lv_log.h"
  21. #include "src/misc/lv_timer.h"
  22. #include "src/misc/lv_math.h"
  23. #include "src/misc/lv_mem.h"
  24. #include "src/misc/lv_async.h"
  25. #include "src/misc/lv_anim_timeline.h"
  26. #include "src/misc/lv_printf.h"
  27. #include "src/misc/lv_strace.h"
  28. #include "src/hal/lv_hal.h"
  29. #include "src/core/lv_obj.h"
  30. #include "src/core/lv_group.h"
  31. #include "src/core/lv_indev.h"
  32. #include "src/core/lv_refr.h"
  33. #include "src/core/lv_disp.h"
  34. #include "src/core/lv_theme.h"
  35. #include "src/font/lv_font.h"
  36. #include "src/font/lv_font_loader.h"
  37. #include "src/font/lv_font_fmt_txt.h"
  38. #include "src/widgets/lv_arc.h"
  39. #include "src/widgets/lv_btn.h"
  40. #include "src/widgets/lv_img.h"
  41. #include "src/widgets/lv_label.h"
  42. #include "src/widgets/lv_line.h"
  43. #include "src/widgets/lv_table.h"
  44. #include "src/widgets/lv_checkbox.h"
  45. #include "src/widgets/lv_bar.h"
  46. #include "src/widgets/lv_slider.h"
  47. #include "src/widgets/lv_btnmatrix.h"
  48. #include "src/widgets/lv_dropdown.h"
  49. #include "src/widgets/lv_roller.h"
  50. #include "src/widgets/lv_textarea.h"
  51. #include "src/widgets/lv_canvas.h"
  52. #include "src/widgets/lv_switch.h"
  53. #include "src/draw/lv_draw.h"
  54. #include "src/lv_api_map.h"
  55. /*-----------------
  56. * EXTRAS
  57. *----------------*/
  58. #include "src/extra/lv_extra.h"
  59. /*********************
  60. * DEFINES
  61. *********************/
  62. /**********************
  63. * TYPEDEFS
  64. **********************/
  65. /**********************
  66. * GLOBAL PROTOTYPES
  67. **********************/
  68. /**********************
  69. * MACROS
  70. **********************/
  71. /** Gives 1 if the x.y.z version is supported in the current version
  72. * Usage:
  73. *
  74. * - Require v6
  75. * #if LV_VERSION_CHECK(6,0,0)
  76. * new_func_in_v6();
  77. * #endif
  78. *
  79. *
  80. * - Require at least v5.3
  81. * #if LV_VERSION_CHECK(5,3,0)
  82. * new_feature_from_v5_3();
  83. * #endif
  84. *
  85. *
  86. * - Require v5.3.2 bugfixes
  87. * #if LV_VERSION_CHECK(5,3,2)
  88. * bugfix_in_v5_3_2();
  89. * #endif
  90. *
  91. */
  92. #define LV_VERSION_CHECK(x,y,z) (x == LVGL_VERSION_MAJOR && (y < LVGL_VERSION_MINOR || (y == LVGL_VERSION_MINOR && z <= LVGL_VERSION_PATCH)))
  93. /**
  94. * Wrapper functions for VERSION macros
  95. */
  96. static inline int lv_version_major(void)
  97. {
  98. return LVGL_VERSION_MAJOR;
  99. }
  100. static inline int lv_version_minor(void)
  101. {
  102. return LVGL_VERSION_MINOR;
  103. }
  104. static inline int lv_version_patch(void)
  105. {
  106. return LVGL_VERSION_PATCH;
  107. }
  108. static inline const char *lv_version_info(void)
  109. {
  110. return LVGL_VERSION_INFO;
  111. }
  112. #ifdef __cplusplus
  113. } /*extern "C"*/
  114. #endif
  115. #endif /*LVGL_H*/