mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
chore: typedef lv_indev_read_cb_t and lv_disp_flush_cb_t in the private headers
This commit is contained in:
parent
a43748ea3b
commit
3e3daf0f04
@ -26,6 +26,11 @@ extern "C" {
|
||||
/**********************
|
||||
* TYPEDEFS
|
||||
**********************/
|
||||
|
||||
struct _lv_disp_t;
|
||||
|
||||
typedef void (*lv_disp_flush_cb_t)(struct _lv_disp_t * disp, const lv_area_t * area, lv_color_t * px_map);
|
||||
|
||||
struct _lv_disp_t {
|
||||
|
||||
/*---------------------
|
||||
@ -70,7 +75,7 @@ struct _lv_disp_t {
|
||||
|
||||
/** MANDATORY: Write the internal buffer (draw_buf) to the display. 'lv_disp_flush_ready()' has to be
|
||||
* called when finished*/
|
||||
void (*flush_cb)(struct _lv_disp_t * disp_drv, const lv_area_t * area, lv_color_t * color_p);
|
||||
lv_disp_flush_cb_t flush_cb;
|
||||
|
||||
/*1: flushing is in progress. (It can't be a bit field because when it's cleared from IRQ Read-Modify-Write issue might occur)*/
|
||||
volatile int flushing;
|
||||
|
@ -22,12 +22,16 @@ extern "C" {
|
||||
* TYPEDEFS
|
||||
**********************/
|
||||
|
||||
struct _lv_indev_t;
|
||||
|
||||
typedef void (*lv_indev_read_cb_t)(struct _lv_indev_t * indev, lv_indev_data_t * data);
|
||||
|
||||
struct _lv_indev_t {
|
||||
/**< Input device type*/
|
||||
lv_indev_type_t type;
|
||||
|
||||
/**< Function pointer to read input device data.*/
|
||||
void (*read_cb)(struct _lv_indev_t * indev, lv_indev_data_t * data);
|
||||
lv_indev_read_cb_t read_cb;
|
||||
|
||||
/** Called when an action happened on the input device.
|
||||
* The second parameter is the event from `lv_event_t`*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user