1 /**
2  * @file lv_refr.h
3  *
4  */
5 
6 #ifndef LV_REFR_H
7 #define LV_REFR_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 /*********************
14  *      INCLUDES
15  *********************/
16 #include "lv_obj.h"
17 #include "../display/lv_display.h"
18 #include "../misc/lv_types.h"
19 
20 /*********************
21  *      DEFINES
22  *********************/
23 
24 /**********************
25  *      TYPEDEFS
26  **********************/
27 
28 /**********************
29  *  STATIC PROTOTYPES
30  **********************/
31 
32 /**********************
33  *  STATIC VARIABLES
34  **********************/
35 
36 /**********************
37  *      MACROS
38  **********************/
39 
40 /**********************
41  *   GLOBAL FUNCTIONS
42  **********************/
43 
44 /**
45  * Redraw the invalidated areas now.
46  * Normally the redrawing is periodically executed in `lv_timer_handler` but a long blocking process
47  * can prevent the call of `lv_timer_handler`. In this case if the GUI is updated in the process
48  * (e.g. progress bar) this function can be called when the screen should be updated.
49  * @param disp pointer to display to refresh. NULL to refresh all displays.
50  */
51 void lv_refr_now(lv_display_t * disp);
52 
53 /**
54  * Redrawn on object and all its children using the passed draw context
55  * @param layer pointer to a layer where to draw.
56  * @param obj   the start object from the redraw should start
57  */
58 void lv_obj_redraw(lv_layer_t * layer, lv_obj_t * obj);
59 
60 /**********************
61  *   STATIC FUNCTIONS
62  **********************/
63 
64 #ifdef __cplusplus
65 } /*extern "C"*/
66 #endif
67 
68 #endif /*LV_REFR_H*/
69