refactor(API): don't expose private symbols in lvgl.h. phase-out "_lv*" names (#6068)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
|
||||
#if LV_USE_DEMO_RENDER
|
||||
|
||||
#include "../../src/display/lv_display_private.h"
|
||||
#include "../../src/core/lv_global.h"
|
||||
|
||||
/*********************
|
||||
@@ -531,12 +530,14 @@ static void triangle_draw_event_cb(lv_event_t * e)
|
||||
|
||||
lv_point_t * p_rel = lv_event_get_user_data(e);
|
||||
|
||||
dsc.p[0].x = p_rel[0].x + obj->coords.x1 + 8;
|
||||
dsc.p[0].y = p_rel[0].y + obj->coords.y1 + 2;
|
||||
dsc.p[1].x = p_rel[1].x + obj->coords.x1 + 8;
|
||||
dsc.p[1].y = p_rel[1].y + obj->coords.y1 + 2;
|
||||
dsc.p[2].x = p_rel[2].x + obj->coords.x1 + 8;
|
||||
dsc.p[2].y = p_rel[2].y + obj->coords.y1 + 2;
|
||||
lv_area_t coords;
|
||||
lv_obj_get_coords(obj, &coords);
|
||||
dsc.p[0].x = p_rel[0].x + coords.x1 + 8;
|
||||
dsc.p[0].y = p_rel[0].y + coords.y1 + 2;
|
||||
dsc.p[1].x = p_rel[1].x + coords.x1 + 8;
|
||||
dsc.p[1].y = p_rel[1].y + coords.y1 + 2;
|
||||
dsc.p[2].x = p_rel[2].x + coords.x1 + 8;
|
||||
dsc.p[2].y = p_rel[2].y + coords.y1 + 2;
|
||||
|
||||
lv_opa_t opa = lv_obj_get_style_opa(obj, 0);
|
||||
dsc.bg_grad.dir = lv_obj_get_style_bg_grad_dir(obj, 0);
|
||||
@@ -1132,7 +1133,7 @@ void lv_demo_render(lv_demo_render_scene_t id, lv_opa_t opa)
|
||||
|
||||
const char * lv_demo_render_get_scene_name(lv_demo_render_scene_t id)
|
||||
{
|
||||
if(id > _LV_DEMO_RENDER_SCENE_NUM) return NULL;
|
||||
if(id > LV_DEMO_RENDER_SCENE_NUM) return NULL;
|
||||
return scenes[id].name;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ typedef enum {
|
||||
LV_DEMO_RENDER_SCENE_RADIAL_GRADIENT,
|
||||
LV_DEMO_RENDER_SCENE_CONICAL_GRADIENT,
|
||||
#endif
|
||||
_LV_DEMO_RENDER_SCENE_NUM,
|
||||
LV_DEMO_RENDER_SCENE_NUM,
|
||||
} lv_demo_render_scene_t;
|
||||
|
||||
/**********************
|
||||
|
||||
Reference in New Issue
Block a user