1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00
lvgl/lv_core/lv_vdb.h

74 lines
1.1 KiB
C
Raw Normal View History

2016-06-08 07:25:08 +02:00
/**
* @file lv_vdb.h
*
2016-06-08 07:25:08 +02:00
*/
#ifndef LV_VDB_H
#define LV_VDB_H
2017-07-09 15:32:49 +02:00
#ifdef __cplusplus
extern "C" {
#endif
2016-06-08 07:25:08 +02:00
/*********************
* INCLUDES
*********************/
2017-11-26 23:57:39 +01:00
#include "../../lv_conf.h"
2016-06-08 07:25:08 +02:00
#if LV_VDB_SIZE != 0
2017-11-23 20:42:14 +01:00
#include "../lv_misc/lv_color.h"
#include "../lv_misc/lv_area.h"
2016-06-08 07:25:08 +02:00
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
typedef struct
{
2017-11-23 21:28:36 +01:00
lv_area_t area;
lv_color_t *buf;
} lv_vdb_t;
2016-06-08 07:25:08 +02:00
/**********************
* GLOBAL PROTOTYPES
**********************/
/**
* Get the 'vdb' variable or allocate one in LV_VDB_DOUBLE mode
2017-11-29 10:46:59 +01:00
* @return pointer to a 'vdb' variable
*/
2016-06-08 07:25:08 +02:00
lv_vdb_t * lv_vdb_get(void);
/**
* Flush the content of the vdb
*/
2016-06-08 07:25:08 +02:00
void lv_vdb_flush(void);
/**
* In 'LV_VDB_DOUBLE' mode has to be called when 'disp_map()'
* is ready with copying the map to a frame buffer.
*/
2017-11-29 10:46:59 +01:00
void lv_flush_ready(void);
2016-06-08 07:25:08 +02:00
/**********************
* MACROS
**********************/
2017-12-02 20:43:50 +01:00
#else /*LV_VDB_SIZE != 0*/
/*Just for compatibility*/
void lv_flush_ready(void);
#endif
2016-06-08 07:25:08 +02:00
2017-07-09 15:32:49 +02:00
#ifdef __cplusplus
} /* extern "C" */
2016-06-08 07:25:08 +02:00
#endif
2017-07-09 15:32:49 +02:00
#endif /*LV_VDB_H*/