arch(lvgl_private): add lvgl_private inc folder and add missing includes for private headers (#10066)

This commit is contained in:
André Costa
2026-05-11 14:08:12 +02:00
committed by GitHub
parent f306d45e06
commit 48a6a6a871
6 changed files with 226 additions and 146 deletions
@@ -104,7 +104,7 @@ LV_USE_GIF 1
LV_USE_RLE 1
LV_USE_QRCODE 1
LV_USE_BARCODE 1
LV_USE_FREETYPE 1
LV_USE_FREETYPE 0
LV_USE_TINY_TTF 1
LV_USE_RLOTTIE 1
LV_USE_VECTOR_GRAPHIC 1
@@ -1,5 +1,5 @@
#include "../../lv_examples.h"
#if LV_USE_FONT_MANAGER && LV_BUILD_EXAMPLES
#if LV_USE_FONT_MANAGER && LV_USE_FREETYPE && LV_BUILD_EXAMPLES
#if defined(LV_FREETYPE_USE_LVGL_PORT) && LV_FREETYPE_USE_LVGL_PORT
#define PATH_PREFIX "A:"
@@ -45,13 +45,11 @@ void lv_example_font_manager_2(void)
&lv_builtin_font_class);
#endif
#if LV_USE_FREETYPE
/* Register FreeType font source */
lv_font_manager_add_src_static(g_font_manager,
"NotoColorEmoji",
PATH_PREFIX "lvgl/examples/libs/freetype/NotoColorEmoji-32.subset.ttf",
&lv_freetype_font_class);
#endif
#if LV_USE_TINY_TTF && LV_TINY_TTF_FILE_SUPPORT
/* Register TinyTTF font source */
@@ -93,7 +91,7 @@ void lv_example_font_manager_2(void)
void lv_example_font_manager_2(void)
{
lv_obj_t * label = lv_label_create(lv_screen_active());
lv_label_set_text(label, "Font Manager is not enabled");
lv_label_set_text(label, "FreeType is not installed");
lv_obj_center(label);
}
+7
View File
@@ -0,0 +1,7 @@
#ifndef LVGL_PRIVATE_H
#define LVGL_PRIVATE_H
/*Include every private header*/
#include "../../src/lvgl_private.h"
#endif /*LVGL_PRIVATE_H*/
+1 -136
View File
@@ -1,136 +1 @@
/**
* @file lvgl_private.h
*
*/
#ifndef LVGL_PRIVATE_H
#define LVGL_PRIVATE_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "src/core/lv_global.h"
#include "src/display/lv_display_private.h"
#include "src/indev/lv_indev_private.h"
#include "src/misc/lv_text_private.h"
#include "src/misc/lv_circle_buf_private.h"
#include "src/misc/lv_utils.h"
#include "src/misc/cache/lv_cache.h"
#include "src/misc/cache/lv_cache_entry.h"
#include "src/misc/cache/lv_cache_entry_private.h"
#include "src/misc/cache/instance/lv_cache_instance.h"
#include "src/misc/cache/instance/lv_image_cache.h"
#include "src/misc/cache/instance/lv_image_header_cache.h"
#include "src/libs/svg/lv_svg_decoder.h"
#include "src/libs/svg/lv_svg_parser.h"
#include "src/libs/svg/lv_svg_render.h"
#include "src/libs/svg/lv_svg_token.h"
#include "src/layouts/lv_layout_private.h"
#include "src/others/file_explorer/lv_file_explorer_private.h"
#include "src/others/fragment/lv_fragment_private.h"
#include "src/others/translation/lv_translation_private.h"
#include "src/libs/qrcode/lv_qrcode_private.h"
#include "src/libs/barcode/lv_barcode_private.h"
#include "src/draw/lv_draw_private.h"
#include "src/draw/lv_draw_image_private.h"
#include "src/draw/lv_image_decoder_private.h"
#include "src/draw/lv_draw_label_private.h"
#include "src/draw/lv_draw_vector_private.h"
#include "src/draw/lv_draw_buf_private.h"
#include "src/draw/sw/lv_draw_sw_private.h"
#include "src/draw/sw/lv_draw_sw_mask_private.h"
#include "src/draw/sw/blend/lv_draw_sw_blend_private.h"
#include "src/drivers/libinput/lv_xkb_private.h"
#include "src/drivers/libinput/lv_libinput_private.h"
#include "src/drivers/evdev/lv_evdev_private.h"
#include "src/themes/lv_theme_private.h"
#include "src/core/lv_refr_private.h"
#include "src/core/lv_obj_style_private.h"
#include "src/core/lv_obj_private.h"
#include "src/core/lv_obj_scroll_private.h"
#include "src/core/lv_obj_draw_private.h"
#include "src/core/lv_obj_class_private.h"
#include "src/core/lv_group_private.h"
#include "src/core/lv_obj_event_private.h"
#include "src/core/lv_observer_private.h"
#include "src/debugging/sysmon/lv_sysmon_private.h"
#include "src/debugging/monkey/lv_monkey_private.h"
#include "src/font/fmt_txt/lv_font_fmt_txt_private.h"
#include "src/misc/lv_timer_private.h"
#include "src/misc/lv_area_private.h"
#include "src/misc/lv_fs_private.h"
#include "src/misc/lv_profiler_builtin_private.h"
#include "src/misc/lv_event_private.h"
#include "src/misc/lv_bidi_private.h"
#include "src/misc/lv_rb_private.h"
#include "src/misc/lv_anim_private.h"
#include "src/misc/lv_anim_timeline_private.h"
#include "src/widgets/msgbox/lv_msgbox_private.h"
#include "src/widgets/buttonmatrix/lv_buttonmatrix_private.h"
#include "src/widgets/slider/lv_slider_private.h"
#include "src/widgets/switch/lv_switch_private.h"
#include "src/widgets/calendar/lv_calendar_private.h"
#include "src/widgets/imagebutton/lv_imagebutton_private.h"
#include "src/widgets/bar/lv_bar_private.h"
#include "src/widgets/image/lv_image_private.h"
#include "src/widgets/textarea/lv_textarea_private.h"
#include "src/widgets/table/lv_table_private.h"
#include "src/widgets/checkbox/lv_checkbox_private.h"
#include "src/widgets/roller/lv_roller_private.h"
#include "src/widgets/win/lv_win_private.h"
#include "src/widgets/keyboard/lv_keyboard_private.h"
#include "src/widgets/line/lv_line_private.h"
#include "src/widgets/animimage/lv_animimage_private.h"
#include "src/widgets/dropdown/lv_dropdown_private.h"
#include "src/widgets/menu/lv_menu_private.h"
#include "src/widgets/chart/lv_chart_private.h"
#include "src/widgets/button/lv_button_private.h"
#include "src/widgets/scale/lv_scale_private.h"
#include "src/widgets/led/lv_led_private.h"
#include "src/widgets/arc/lv_arc_private.h"
#include "src/widgets/tileview/lv_tileview_private.h"
#include "src/widgets/spinbox/lv_spinbox_private.h"
#include "src/widgets/span/lv_span_private.h"
#include "src/widgets/label/lv_label_private.h"
#include "src/widgets/canvas/lv_canvas_private.h"
#include "src/widgets/tabview/lv_tabview_private.h"
#include "src/widgets/3dtexture/lv_3dtexture_private.h"
#include "src/widgets/ime/lv_ime_pinyin_private.h"
#include "src/tick/lv_tick_private.h"
#include "src/stdlib/builtin/lv_tlsf_private.h"
#include "src/libs/rlottie/lv_rlottie_private.h"
#include "src/libs/ffmpeg/lv_ffmpeg_private.h"
#include "src/widgets/lottie/lv_lottie_private.h"
#include "src/osal/lv_os_private.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
/**********************
* GLOBAL PROTOTYPES
**********************/
/**********************
* MACROS
**********************/
#ifdef __cplusplus
} /*extern "C"*/
#endif
#endif /*LVGL_PRIVATE_H*/
#include "include/lvgl_private/lvgl_private.h"
+2 -2
View File
@@ -243,10 +243,10 @@ void lv_nanovg_draw_grad_helper(
* MACROS
**********************/
#endif /*LV_USE_DRAW_NANOVG*/
#ifdef __cplusplus
} /*extern "C"*/
#endif
#endif /*LV_USE_DRAW_NANOVG*/
#endif /*LV_DRAW_NANOVG_PRIVATE_H*/
+213 -3
View File
@@ -1,6 +1,5 @@
/**
* @file lvgl_private.h
* This file exists only to be compatible with Arduino's library structure
*/
#ifndef LVGL_PRIVATE_SRC_H
@@ -13,7 +12,219 @@ extern "C" {
/*********************
* INCLUDES
*********************/
#include "../lvgl_private.h"
/* Give access to the public API from the private API */
#include "lvgl_public.h"
#include "core/lv_global.h"
#include "core/lv_group_private.h"
#include "core/lv_obj_class_private.h"
#include "core/lv_obj_draw_private.h"
#include "core/lv_obj_event_private.h"
#include "core/lv_obj_private.h"
#include "core/lv_obj_scroll_private.h"
#include "core/lv_obj_style_private.h"
#include "core/lv_observer_private.h"
#include "core/lv_refr_private.h"
#include "debugging/monkey/lv_monkey_private.h"
#include "debugging/sysmon/lv_sysmon_private.h"
#include "debugging/test/lv_test_private.h"
#include "display/lv_display_private.h"
#include "draw/convert/helium/lv_draw_buf_convert_helium.h"
#include "draw/convert/lv_draw_buf_convert.h"
#include "draw/convert/neon/lv_draw_buf_convert_neon.h"
#include "draw/dma2d/lv_draw_dma2d.h"
#include "draw/dma2d/lv_draw_dma2d_private.h"
#include "draw/espressif/ppa/lv_draw_ppa.h"
#include "draw/espressif/ppa/lv_draw_ppa_private.h"
#include "draw/eve/lv_draw_eve.h"
#include "draw/eve/lv_draw_eve_private.h"
#include "draw/eve/lv_draw_eve_ram_g.h"
#include "draw/eve/lv_eve.h"
#include "draw/lv_draw_buf_private.h"
#include "draw/lv_draw_image_private.h"
#include "draw/lv_draw_label_private.h"
#include "draw/lv_draw_private.h"
#include "draw/lv_draw_vector_private.h"
#include "draw/lv_image_decoder_private.h"
#include "draw/nanovg/lv_draw_nanovg.h"
#include "draw/nanovg/lv_draw_nanovg_private.h"
#include "draw/nanovg/lv_nanovg_fbo_cache.h"
#include "draw/nanovg/lv_nanovg_image_cache.h"
#include "draw/nanovg/lv_nanovg_math.h"
#include "draw/nanovg/lv_nanovg_utils.h"
#include "draw/nema_gfx/lv_draw_nema_gfx.h"
#include "draw/nema_gfx/lv_draw_nema_gfx_utils.h"
#include "draw/nema_gfx/lv_nema_gfx_path.h"
#include "draw/nxp/g2d/lv_draw_g2d.h"
#include "draw/nxp/g2d/lv_g2d_buf_map.h"
#include "draw/nxp/g2d/lv_g2d_utils.h"
#include "draw/nxp/pxp/lv_draw_pxp.h"
#include "draw/nxp/pxp/lv_pxp_cfg.h"
#include "draw/nxp/pxp/lv_pxp_osa.h"
#include "draw/nxp/pxp/lv_pxp_utils.h"
#include "draw/opengles/lv_draw_opengles.h"
#include "draw/renesas/dave2d/lv_draw_dave2d.h"
#include "draw/renesas/dave2d/lv_draw_dave2d_utils.h"
#include "draw/sdl/lv_draw_sdl.h"
#include "draw/sw/arm2d/lv_draw_sw_arm2d.h"
#include "draw/sw/arm2d/lv_draw_sw_helium.h"
#include "draw/sw/blend/arm2d/lv_blend_arm2d.h"
#include "draw/sw/blend/helium/lv_blend_helium.h"
#include "draw/sw/blend/lv_draw_sw_blend.h"
#include "draw/sw/blend/lv_draw_sw_blend_private.h"
#include "draw/sw/blend/lv_draw_sw_blend_to_a8.h"
#include "draw/sw/blend/lv_draw_sw_blend_to_al88.h"
#include "draw/sw/blend/lv_draw_sw_blend_to_argb8888.h"
#include "draw/sw/blend/lv_draw_sw_blend_to_argb8888_premultiplied.h"
#include "draw/sw/blend/lv_draw_sw_blend_to_i1.h"
#include "draw/sw/blend/lv_draw_sw_blend_to_l8.h"
#include "draw/sw/blend/lv_draw_sw_blend_to_rgb565.h"
#include "draw/sw/blend/lv_draw_sw_blend_to_rgb565_swapped.h"
#include "draw/sw/blend/lv_draw_sw_blend_to_rgb888.h"
#include "draw/sw/blend/neon/lv_blend_neon.h"
#include "draw/sw/blend/neon/lv_draw_sw_blend_neon_to_rgb565.h"
#include "draw/sw/blend/neon/lv_draw_sw_blend_neon_to_rgb888.h"
#include "draw/sw/blend/riscv_v/lv_blend_riscv_v.h"
#include "draw/sw/blend/riscv_v/lv_blend_riscv_v_private.h"
#include "draw/sw/blend/riscv_v/lv_blend_riscv_vector_emulation.h"
#include "draw/sw/blend/riscv_v/lv_draw_sw_blend_riscv_v_to_rgb888.h"
#include "draw/sw/lv_draw_sw.h"
#include "draw/sw/lv_draw_sw_grad.h"
#include "draw/sw/lv_draw_sw_mask.h"
#include "draw/sw/lv_draw_sw_mask_private.h"
#include "draw/sw/lv_draw_sw_private.h"
#include "draw/vg_lite/lv_draw_vg_lite.h"
#include "draw/vg_lite/lv_draw_vg_lite_type.h"
#include "draw/vg_lite/lv_vg_lite_bitmap_font_cache.h"
#include "draw/vg_lite/lv_vg_lite_decoder.h"
#include "draw/vg_lite/lv_vg_lite_grad.h"
#include "draw/vg_lite/lv_vg_lite_math.h"
#include "draw/vg_lite/lv_vg_lite_path.h"
#include "draw/vg_lite/lv_vg_lite_pending.h"
#include "draw/vg_lite/lv_vg_lite_stroke.h"
#include "draw/vg_lite/lv_vg_lite_utils.h"
#include "drivers/display/drm/lv_linux_drm_egl_private.h"
#include "drivers/display/ft81x/lv_ft81x_defines.h"
#include "drivers/evdev/lv_evdev_private.h"
#include "drivers/libinput/lv_libinput_private.h"
#include "drivers/libinput/lv_xkb_private.h"
#include "drivers/nuttx/lv_nuttx_cache.h"
#include "drivers/nuttx/lv_nuttx_image_cache.h"
#include "drivers/nuttx/lv_nuttx_mouse.h"
#include "drivers/nuttx/lv_nuttx_profiler.h"
#include "drivers/opengles/assets/lv_opengles_shader.h"
#include "drivers/opengles/lv_opengles_debug.h"
#include "drivers/opengles/lv_opengles_egl.h"
#include "drivers/opengles/lv_opengles_egl_private.h"
#include "drivers/opengles/lv_opengles_private.h"
#include "drivers/opengles/lv_opengles_texture_private.h"
#include "drivers/opengles/opengl_shader/lv_opengl_shader_internal.h"
#include "drivers/sdl/lv_sdl_private.h"
#include "drivers/uefi/lv_uefi_private.h"
#include "drivers/wayland/lv_wayland_backend_private.h"
#include "drivers/wayland/lv_wayland_private.h"
#include "drivers/windows/lv_windows_context.h"
#include "drivers/windows/lv_windows_input_private.h"
#include "font/fmt_txt/lv_font_fmt_txt_private.h"
#include "font/font_manager/lv_font_manager_recycle.h"
#include "font/lv_font_private.h"
#include "indev/lv_indev_gesture_private.h"
#include "indev/lv_indev_private.h"
#include "indev/lv_indev_scroll.h"
#include "layouts/lv_layout_private.h"
#include "libs/barcode/lv_barcode_private.h"
#include "libs/ffmpeg/lv_ffmpeg_private.h"
#include "libs/freetype/lv_freetype_private.h"
#include "libs/gltf/gltf_data/lv_gltf_data_internal.h"
#include "libs/gltf/gltf_environment/lv_gltf_environment_private.h"
#include "libs/gltf/gltf_view/assets/lv_gltf_view_shader.h"
#include "libs/gltf/gltf_view/lv_gltf_view_internal.h"
#include "libs/gstreamer/lv_gstreamer_internal.h"
#include "libs/qrcode/lv_qrcode_private.h"
#include "libs/rle/lv_rle_private.h"
#include "libs/rlottie/lv_rlottie_private.h"
#include "libs/svg/lv_svg_decoder.h"
#include "libs/svg/lv_svg_parser.h"
#include "libs/svg/lv_svg_render.h"
#include "libs/svg/lv_svg_token.h"
#include "misc/cache/class/lv_cache_class.h"
#include "misc/cache/class/lv_cache_lru_ll.h"
#include "misc/cache/class/lv_cache_lru_rb.h"
#include "misc/cache/class/lv_cache_sc_da.h"
#include "misc/cache/instance/lv_cache_instance.h"
#include "misc/cache/instance/lv_image_cache.h"
#include "misc/cache/instance/lv_image_header_cache.h"
#include "misc/cache/lv_cache.h"
#include "misc/cache/lv_cache_entry.h"
#include "misc/cache/lv_cache_entry_private.h"
#include "misc/lv_anim_private.h"
#include "misc/lv_anim_timeline_private.h"
#include "misc/lv_area_private.h"
#include "misc/lv_bidi_private.h"
#include "misc/lv_circle_buf_private.h"
#include "misc/lv_event_private.h"
#include "misc/lv_fs_private.h"
#include "misc/lv_iter_private.h"
#include "misc/lv_lru.h"
#include "misc/lv_pending.h"
#include "misc/lv_profiler_builtin_private.h"
#include "misc/lv_rb_private.h"
#include "misc/lv_text_ap.h"
#include "misc/lv_text_private.h"
#include "misc/lv_timer_private.h"
#include "misc/lv_utils.h"
#include "osal/lv_cmsis_rtos2.h"
#include "osal/lv_freertos.h"
#include "osal/lv_linux.h"
#include "osal/lv_mqx.h"
#include "osal/lv_os_none.h"
#include "osal/lv_os_private.h"
#include "osal/lv_pthread.h"
#include "osal/lv_rtthread.h"
#include "osal/lv_sdl2.h"
#include "osal/lv_windows.h"
#include "others/file_explorer/lv_file_explorer_private.h"
#include "others/fragment/lv_fragment_private.h"
#include "others/translation/lv_translation_private.h"
#include "stdlib/builtin/lv_tlsf.h"
#include "stdlib/builtin/lv_tlsf_private.h"
#include "themes/lv_theme_private.h"
#include "tick/lv_tick_private.h"
#include "widgets/3dtexture/lv_3dtexture_private.h"
#include "widgets/animimage/lv_animimage_private.h"
#include "widgets/arc/lv_arc_private.h"
#include "widgets/arclabel/lv_arclabel_private.h"
#include "widgets/bar/lv_bar_private.h"
#include "widgets/button/lv_button_private.h"
#include "widgets/buttonmatrix/lv_buttonmatrix_private.h"
#include "widgets/calendar/lv_calendar_private.h"
#include "widgets/canvas/lv_canvas_private.h"
#include "widgets/chart/lv_chart_private.h"
#include "widgets/checkbox/lv_checkbox_private.h"
#include "widgets/dropdown/lv_dropdown_private.h"
#include "widgets/image/lv_image_private.h"
#include "widgets/imagebutton/lv_imagebutton_private.h"
#include "widgets/ime/lv_ime_pinyin_private.h"
#include "widgets/keyboard/lv_keyboard_private.h"
#include "widgets/label/lv_label_private.h"
#include "widgets/led/lv_led_private.h"
#include "widgets/line/lv_line_private.h"
#include "widgets/lottie/lv_lottie_private.h"
#include "widgets/menu/lv_menu_private.h"
#include "widgets/msgbox/lv_msgbox_private.h"
#include "widgets/roller/lv_roller_private.h"
#include "widgets/scale/lv_scale_private.h"
#include "widgets/slider/lv_slider_private.h"
#include "widgets/span/lv_span_private.h"
#include "widgets/spinbox/lv_spinbox_private.h"
#include "widgets/spinner/lv_spinner_private.h"
#include "widgets/switch/lv_switch_private.h"
#include "widgets/table/lv_table_private.h"
#include "widgets/tabview/lv_tabview_private.h"
#include "widgets/textarea/lv_textarea_private.h"
#include "widgets/tileview/lv_tileview_private.h"
#include "widgets/win/lv_win_private.h"
/*********************
* DEFINES
@@ -34,5 +245,4 @@ extern "C" {
#ifdef __cplusplus
} /*extern "C"*/
#endif
#endif /* LVGL_PRIVATE_SRC_H */