lv_refr.h
Functions
-
void _lv_refr_init(void)
Initialize the screen refresh subsystem
-
void lv_refr_now(lv_display_t *disp)
Redraw the invalidated areas now. Normally the redrawing is periodically executed in
lv_timer_handler
but a long blocking process can prevent the call oflv_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.- Parameters:
disp -- pointer to display to refresh. NULL to refresh all displays.
-
void lv_obj_redraw(lv_layer_t *layer, lv_obj_t *obj)
Redrawn on object an all its children using the passed draw context
- Parameters:
draw_ctx -- pointer to an initialized draw context
obj -- the start object from the redraw should start
-
void _lv_inv_area(lv_display_t *disp, const lv_area_t *area_p)
Invalidate an area on display to redraw it
- Parameters:
area_p -- pointer to area which should be invalidated (NULL: delete the invalidated areas)
disp -- pointer to display where the area should be invalidated (NULL can be used if there is only one display)
-
lv_display_t *_lv_refr_get_disp_refreshing(void)
Get the display which is being refreshed
- Returns:
the display being refreshed
-
void _lv_display_refr_timer(lv_timer_t *timer)
Called periodically to handle the refreshing
- Parameters:
timer -- pointer to the timer itself