mirror of
https://github.com/lvgl/lvgl.git
synced 2026-06-01 16:58:33 +08:00
chore: add LV_USE_PRIVATE_API (#6737)
This commit is contained in:
committed by
GitHub
parent
8b659fc9a2
commit
f4ea1ec82c
@@ -711,6 +711,10 @@ menu "LVGL configuration"
|
|||||||
bool "Enable matrix support"
|
bool "Enable matrix support"
|
||||||
default n
|
default n
|
||||||
select LV_USE_FLOAT
|
select LV_USE_FLOAT
|
||||||
|
|
||||||
|
config LV_USE_PRIVATE_API
|
||||||
|
bool "Include `lvgl_private.h` in `lvgl.h` to access internal data and functions by default"
|
||||||
|
default n
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "Font Usage"
|
menu "Font Usage"
|
||||||
|
|||||||
@@ -448,6 +448,9 @@
|
|||||||
*Requires `LV_USE_FLOAT = 1`*/
|
*Requires `LV_USE_FLOAT = 1`*/
|
||||||
#define LV_USE_MATRIX 0
|
#define LV_USE_MATRIX 0
|
||||||
|
|
||||||
|
/*Include `lvgl_private.h` in `lvgl.h` to access internal data and functions by default*/
|
||||||
|
#define LV_USE_PRIVATE_API 0
|
||||||
|
|
||||||
/*==================
|
/*==================
|
||||||
* FONT USAGE
|
* FONT USAGE
|
||||||
*===================*/
|
*===================*/
|
||||||
|
|||||||
@@ -120,6 +120,10 @@ extern "C" {
|
|||||||
#include "src/lv_api_map_v9_0.h"
|
#include "src/lv_api_map_v9_0.h"
|
||||||
#include "src/lv_api_map_v9_1.h"
|
#include "src/lv_api_map_v9_1.h"
|
||||||
|
|
||||||
|
#if LV_USE_PRIVATE_API
|
||||||
|
#include "src/lvgl_private.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
*********************/
|
*********************/
|
||||||
|
|||||||
@@ -1313,6 +1313,15 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*Include `lvgl_private.h` in `lvgl.h` to access internal data and functions by default*/
|
||||||
|
#ifndef LV_USE_PRIVATE_API
|
||||||
|
#ifdef CONFIG_LV_USE_PRIVATE_API
|
||||||
|
#define LV_USE_PRIVATE_API CONFIG_LV_USE_PRIVATE_API
|
||||||
|
#else
|
||||||
|
#define LV_USE_PRIVATE_API 0
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*==================
|
/*==================
|
||||||
* FONT USAGE
|
* FONT USAGE
|
||||||
*===================*/
|
*===================*/
|
||||||
|
|||||||
Reference in New Issue
Block a user