1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00
lvgl/src/lv_draw/lv_draw.h

90 lines
1.5 KiB
C
Raw Normal View History

2016-06-08 07:25:08 +02:00
/**
* @file lv_draw.h
2018-06-19 09:49:58 +02:00
*
2016-06-08 07:25:08 +02:00
*/
#ifndef LV_DRAW_H
#define LV_DRAW_H
2017-07-09 15:32:49 +02:00
#ifdef __cplusplus
extern "C" {
#endif
2016-06-08 07:25:08 +02:00
/*********************
* INCLUDES
*********************/
#ifdef LV_CONF_INCLUDE_SIMPLE
#include "lv_conf.h"
#else
2019-03-17 08:33:03 +01:00
#include "../../../lv_conf.h"
#endif
2017-11-30 11:35:33 +01:00
#include "../lv_core/lv_style.h"
2017-11-26 11:38:28 +01:00
#include "../lv_misc/lv_txt.h"
2019-05-15 05:22:03 +02:00
#include "lv_img_decoder.h"
2017-01-02 10:48:21 +01:00
2016-06-08 07:25:08 +02:00
/*********************
* DEFINES
*********************/
2019-09-26 15:24:47 +02:00
#ifndef LV_DRAW_BUF_MAX_NUM
#define LV_DRAW_BUF_MAX_NUM 8
#endif
2016-06-08 07:25:08 +02:00
/**********************
* TYPEDEFS
2018-06-19 09:49:58 +02:00
**********************/
typedef struct {
void * p;
uint16_t size;
uint8_t used :1;
}lv_draw_buf_t;
2016-06-08 07:25:08 +02:00
/**********************
* GLOBAL PROTOTYPES
**********************/
/**
* Give a buffer with the given to use during drawing.
* Be careful to not use the buffer while other processes are using it.
* @param size the required size
*/
void * lv_draw_buf_get(uint32_t size);
/**
* Release the draw buffer
* @param p buffer to release
*/
void lv_draw_buf_release(void * p);
/**
* Free all draw buffers
*/
void lv_draw_buf_free_all(void);
/**********************
* GLOBAL VARIABLES
**********************/
2016-06-08 07:25:08 +02:00
/**********************
* MACROS
**********************/
/**********************
* POST INCLUDES
*********************/
#include "lv_draw_rect.h"
#include "lv_draw_label.h"
#include "lv_draw_img.h"
#include "lv_draw_line.h"
#include "lv_draw_triangle.h"
#include "lv_draw_arc.h"
2019-09-06 12:24:15 +02:00
#include "lv_draw_blend.h"
#include "lv_draw_mask.h"
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
2019-04-04 07:15:40 +02:00
#endif /*LV_DRAW_H*/