add lv_ddlist_set/get_symbol instead of lv_ddlist_set/get_draw_arrow
This commit is contained in:
@@ -13,6 +13,7 @@ extern "C" {
|
||||
/*********************
|
||||
* INCLUDES
|
||||
*********************/
|
||||
#include "lvgl/lvgl.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
@@ -31,6 +32,18 @@ extern "C" {
|
||||
*--------------------*/
|
||||
#define lv_chart_get_point_cnt lv_chart_get_point_count
|
||||
|
||||
static inline void lv_ddlist_set_draw_arrow(lv_obj_t * ddlist, bool en)
|
||||
{
|
||||
if(en) lv_ddlist_set_symbol(ddlist, LV_SYMBOL_DOWN);
|
||||
else lv_ddlist_set_symbol(ddlist, NULL);
|
||||
}
|
||||
|
||||
|
||||
static inline bool lv_ddlist_get_draw_arrow(lv_obj_t * ddlist)
|
||||
{
|
||||
if(lv_ddlist_get_symbol(ddlist)) return true;
|
||||
else return false;
|
||||
}
|
||||
|
||||
/**********************
|
||||
* MACROS
|
||||
|
||||
Reference in New Issue
Block a user