mirror of
https://github.com/CTCaer/hekate
synced 2024-09-07 08:39:00 +00:00
![CTCaer](/assets/img/avatar_default.png)
BDK will allow developers to use the full collection of drivers, with limited editing, if any, for making payloads for Nintendo Switch. Using a single source for everything will also help decoupling Switch specific code and easily port it to other Tegra X1/X1+ platforms. And maybe even to lower targets. Everything is now centrilized into bdk folder. Every module or project can utilize it by simply including it. This is just the start and it will continue to improve.
95 lines
2.1 KiB
C
95 lines
2.1 KiB
C
/**
|
|
* @file lv_refr.h
|
|
*
|
|
*/
|
|
|
|
#ifndef LV_REFR_H
|
|
#define LV_REFR_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*********************
|
|
* INCLUDES
|
|
*********************/
|
|
#include "lv_obj.h"
|
|
|
|
/*********************
|
|
* DEFINES
|
|
*********************/
|
|
|
|
/**********************
|
|
* TYPEDEFS
|
|
**********************/
|
|
|
|
/**********************
|
|
* STATIC PROTOTYPES
|
|
**********************/
|
|
|
|
/**********************
|
|
* STATIC VARIABLES
|
|
**********************/
|
|
|
|
/**********************
|
|
* MACROS
|
|
**********************/
|
|
|
|
/**********************
|
|
* GLOBAL FUNCTIONS
|
|
**********************/
|
|
|
|
/**
|
|
* Initialize the screen refresh subsystem
|
|
*/
|
|
void lv_refr_init(void);
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
void lv_refr_now(void);
|
|
|
|
/**
|
|
* Invalidate an area
|
|
* @param area_p pointer to area which should be invalidated
|
|
*/
|
|
void lv_inv_area(const lv_area_t * area_p);
|
|
|
|
/**
|
|
* Set a function to call after every refresh to announce the refresh time and the number of refreshed pixels
|
|
* @param cb pointer to a callback function (void my_refr_cb(uint32_t time_ms, uint32_t px_num))
|
|
*/
|
|
void lv_refr_set_monitor_cb(void (*cb)(uint32_t, uint32_t));
|
|
|
|
/**
|
|
* Called when an area is invalidated to modify the coordinates of the area.
|
|
* Special display controllers may require special coordinate rounding
|
|
* @param cb pointer to the a function which will modify the area
|
|
*/
|
|
void lv_refr_set_round_cb(void(*cb)(lv_area_t*));
|
|
|
|
/**
|
|
* Get the number of areas in the buffer
|
|
* @return number of invalid areas
|
|
*/
|
|
uint16_t lv_refr_get_buf_size(void);
|
|
|
|
/**
|
|
* Pop (delete) the last 'num' invalidated areas from the buffer
|
|
* @param num number of areas to delete
|
|
*/
|
|
void lv_refr_pop_from_buf(uint16_t num);
|
|
/**********************
|
|
* STATIC FUNCTIONS
|
|
**********************/
|
|
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif /*LV_REFR_H*/
|