12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- /**
- * @file lv_vdb.h
- *
- */
- #ifndef LV_VDB_H
- #define LV_VDB_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- /*********************
- * INCLUDES
- *********************/
- #include "../../lv_conf.h"
- #if LV_VDB_SIZE != 0
- #include "../lv_misc/lv_color.h"
- #include "../lv_misc/lv_area.h"
- /*********************
- * DEFINES
- *********************/
- /**********************
- * TYPEDEFS
- **********************/
- typedef struct
- {
- lv_area_t area;
- lv_color_t *buf;
- }lv_vdb_t;
- /**********************
- * GLOBAL PROTOTYPES
- **********************/
- /**
- * Get the 'vdb' variable or allocate one in LV_VDB_DOUBLE mode
- * @return pointer to a 'vdb' variable
- */
- lv_vdb_t * lv_vdb_get(void);
- /**
- * Flush the content of the vdb
- */
- 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.
- */
- void lv_flush_ready(void);
- /**********************
- * MACROS
- **********************/
- #else /*LV_VDB_SIZE != 0*/
- /*Just for compatibility*/
- void lv_flush_ready(void);
- #endif
- #ifdef __cplusplus
- } /* extern "C" */
- #endif
- #endif /*LV_VDB_H*/
|