mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-21 06:53:01 +08:00
define lv_chart_set_update_mode function
This commit is contained in:
parent
7cf2b8f1c2
commit
65b83dd1c1
@ -400,6 +400,20 @@ void lv_chart_set_next(lv_obj_t * chart, lv_chart_series_t * ser, lv_coord_t y)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set update mode of the chart object.
|
||||
* @param chart pointer to a chart object
|
||||
* @param update mode
|
||||
*/
|
||||
void lv_chart_set_update_mode(lv_obj_t * chart, lv_chart_update_mode_t update_mode)
|
||||
{
|
||||
lv_chart_ext_t * ext = lv_obj_get_ext_attr(chart);
|
||||
if(ext->update_mode == update_mode) return;
|
||||
|
||||
ext->update_mode = update_mode;
|
||||
lv_obj_invalidate(chart);
|
||||
}
|
||||
|
||||
/*=====================
|
||||
* Getter functions
|
||||
*====================*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user