lv_refr.h

API reference for lv_refr.h

Report on GitHub
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_refr_private.h
Summary

Functions

lv_refr_now

Redraw the invalidated areas now. Normally the redrawing is periodically executed in lv_timer_handler but a long blocking process can prevent the call of lv_timer_handler. In this case if the GUI is updated in the process (e.g. progress bar) this function can be called when the screen should be updated.

 
void lv_refr_now(lv_display_t *disp)
Parameters
NameTypeDescription
displv_display_t *pointer to display to refresh. NULL to refresh all displays.

lv_obj_redraw

Redrawn on object and all its children using the passed draw context

 
void lv_obj_redraw(lv_layer_t *layer, lv_obj_t *obj)
Parameters
NameTypeDescription
layerlv_layer_t *pointer to a layer where to draw.
objlv_obj_t *the start object from the redraw should start

lv_display_refr_timer

Called periodically to handle the refreshing

 
void lv_display_refr_timer(lv_timer_t *timer)
Parameters
NameTypeDescription
timerlv_timer_t *pointer to the timer itself, or NULL

Dependencies

How is this guide?

Last updated on

On this page