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

92 lines
2.4 KiB
C
Raw Normal View History

2016-06-08 07:25:08 +02:00
/**
* @file lv_draw_vbasic.h
2018-06-19 09:49:58 +02:00
*
2016-06-08 07:25:08 +02:00
*/
#ifndef LV_DRAW_VBASIC_H
#define LV_DRAW_VBASIC_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"
#include "../lv_misc/lv_font.h"
2016-06-08 07:25:08 +02:00
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
/**********************
* GLOBAL PROTOTYPES
**********************/
2017-11-23 21:28:36 +01:00
void lv_vpx(lv_coord_t x, lv_coord_t y, const lv_area_t * mask_p, lv_color_t color, lv_opa_t opa);
/**
* Fill an area in the Virtual Display Buffer
* @param cords_p coordinates of the area to fill
* @param mask_p fill only o this mask
* @param color fill color
* @param opa opacity of the area (0..255)
*/
2017-11-23 21:28:36 +01:00
void lv_vfill(const lv_area_t * cords_p, const lv_area_t * mask_p,
2018-06-19 09:49:58 +02:00
lv_color_t color, lv_opa_t opa);
2016-06-08 07:25:08 +02:00
/**
* Draw a letter in the Virtual Display Buffer
* @param pos_p left-top coordinate of the latter
* @param mask_p the letter will be drawn only on this area
* @param font_p pointer to font
* @param letter a letter to draw
* @param color color of letter
* @param opa opacity of letter (0..255)
*/
2017-11-23 21:28:36 +01:00
void lv_vletter(const lv_point_t * pos_p, const lv_area_t * mask_p,
const lv_font_t * font_p, uint32_t letter,
lv_color_t color, lv_opa_t opa);
/**
* Draw a color map to the display (image)
* @param cords_p coordinates the color map
* @param mask_p the map will drawn only on this area (truncated to VDB area)
2017-11-23 21:28:36 +01:00
* @param map_p pointer to a lv_color_t array
* @param opa opacity of the map
* @param chroma_keyed true: enable transparency of LV_IMG_LV_COLOR_TRANSP color pixels
* @param alpha_byte true: extra alpha byte is inserted for every pixel
* @param recolor mix the pixels with this color
* @param recolor_opa the intense of recoloring
*/
2017-11-23 21:28:36 +01:00
void lv_vmap(const lv_area_t * cords_p, const lv_area_t * mask_p,
2018-06-19 09:49:58 +02:00
const uint8_t * map_p, lv_opa_t opa, bool chroma_key, bool alpha_byte,
lv_color_t recolor, lv_opa_t recolor_opa);
2016-06-08 07:25:08 +02:00
2017-12-06 09:48:52 +01:00
/**
* Reallocate 'color_map_tmp' to the new hor. res. size. It is used in 'sw_fill'
*/
void lv_vdraw_refresh_temp_arrays(void);
2017-01-16 12:30:22 +01:00
2016-06-08 07:25:08 +02:00
/**********************
* MACROS
**********************/
2017-07-09 15:32:49 +02:00
#endif /*LV_VDB_SIZE != 0*/
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_DRAW_RBASIC_H*/