1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00
lvgl/demos/render/lv_demo_render.h

66 lines
1.4 KiB
C
Raw Normal View History

2023-10-25 13:38:37 +02:00
/**
* @file lv_demo_render.h
*
*/
#ifndef LV_DEMO_RENDER_H
#define LV_DEMO_RENDER_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "../lv_demos.h"
#if LV_USE_DEMO_RENDER
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
typedef enum {
LV_DEMO_RENDER_SCENE_FILL,
LV_DEMO_RENDER_SCENE_BORDER,
LV_DEMO_RENDER_SCENE_BOX_SHADOW,
LV_DEMO_RENDER_SCENE_TEXT,
LV_DEMO_RENDER_SCENE_IMAGE_NORMAL,
LV_DEMO_RENDER_SCENE_IMAGE_RECOLOR,
LV_DEMO_RENDER_SCENE_LINE,
LV_DEMO_RENDER_SCENE_ARC_NORMAL,
LV_DEMO_RENDER_SCENE_ARC_IMAGE,
LV_DEMO_RENDER_SCENE_TRIANGLE,
LV_DEMO_RENDER_SCENE_LAYER_NORMAL,
_LV_DEMO_RENDER_SCENE_NUM,
} lv_demo_render_scene_t;
2023-10-25 13:38:37 +02:00
/**********************
* GLOBAL PROTOTYPES
**********************/
/**
* Run the render verification for a scenario
* @param id ID of the scenario to run. Element of `lv_demo_render_scene_t`
* @param opa set this opacity for each object
2023-10-25 13:38:37 +02:00
*/
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);
2023-10-25 13:38:37 +02:00
/**********************
* MACROS
**********************/
#endif /*LV_USE_DEMO_RENDER*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_DEMO_RENDER_H*/