1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-21 06:53:01 +08:00

add lv_api_map.h and rename lv_chart_get_point_cnt to lv_chart_get_point_count

This commit is contained in:
Gabor Kiss-Vamosi 2019-11-01 11:09:56 +01:00
parent b8f5cad89c
commit 632fd15775
3 changed files with 45 additions and 2 deletions

43
src/lv_api_map.h Normal file
View File

@ -0,0 +1,43 @@
/**
* @file lv_api_map.h
*
*/
#ifndef LV_API_MAP_H
#define LV_API_MAP_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
/**********************
* GLOBAL PROTOTYPES
**********************/
/*---------------------
* V6.0 COMPATIBILITY
*--------------------*/
#define lv_chart_get_point_count lv_chart_get_point_cnt
/**********************
* MACROS
**********************/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_API_MAP_H*/

View File

@ -633,7 +633,7 @@ lv_chart_type_t lv_chart_get_type(const lv_obj_t * chart)
* @param chart pointer to chart object
* @return point number on each data line
*/
uint16_t lv_chart_get_point_cnt(const lv_obj_t * chart)
uint16_t lv_chart_get_point_count(const lv_obj_t * chart)
{
LV_ASSERT_OBJ(chart, LV_OBJX_NAME);

View File

@ -331,7 +331,7 @@ lv_chart_type_t lv_chart_get_type(const lv_obj_t * chart);
* @param chart pointer to chart object
* @return point number on each data line
*/
uint16_t lv_chart_get_point_cnt(const lv_obj_t * chart);
uint16_t lv_chart_get_point_count(const lv_obj_t * chart);
/**
* Get the opacity of the data series