LittlevGL  3.20.00.19
Functions
lv_refr.h File Reference
#include "lv_obj.h"
#include <stdbool.h>
Include dependency graph for lv_refr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void lv_refr_init (void)
 
void lv_refr_now (lv_disp_t *disp)
 
void lv_inv_area (lv_disp_t *disp, const lv_area_t *area_p)
 
lv_disp_tlv_refr_get_disp_refreshing (void)
 
void lv_refr_set_disp_refreshing (lv_disp_t *disp)
 
void lv_disp_refr_task (lv_task_t *task)
 

Function Documentation

§ lv_refr_init()

void lv_refr_init ( void  )

Initialize the screen refresh subsystem

§ lv_refr_now()

void lv_refr_now ( lv_disp_t disp)

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

Parameters
disppointer to display to refresh. NULL to refresh all displays.

§ lv_inv_area()

void lv_inv_area ( lv_disp_t disp,
const lv_area_t area_p 
)

Invalidate an area on display to redraw it

Parameters
area_ppointer to area which should be invalidated (NULL: delete the invalidated areas)
disppointer to display where the area should be invalidated (NULL can be used if there is only one display)

§ lv_refr_get_disp_refreshing()

lv_disp_t* lv_refr_get_disp_refreshing ( void  )

Get the display which is being refreshed

Returns
the display being refreshed

§ lv_refr_set_disp_refreshing()

void lv_refr_set_disp_refreshing ( lv_disp_t disp)

Set the display which is being refreshed. It shouldn1t be used directly by the user. It can be used to trick the drawing functions about there is an active display.

Parameters
thedisplay being refreshed

§ lv_disp_refr_task()

void lv_disp_refr_task ( lv_task_t task)

Called periodically to handle the refreshing

Parameters
taskpointer to the task itself
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale