2018-05-20 21:27:57 +02:00
|
|
|
/**
|
|
|
|
* @file lv_draw_rect.h
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LV_DRAW_RECT_H
|
|
|
|
#define LV_DRAW_RECT_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*********************
|
|
|
|
* INCLUDES
|
|
|
|
*********************/
|
|
|
|
#include "lv_draw.h"
|
|
|
|
|
|
|
|
/*********************
|
|
|
|
* DEFINES
|
|
|
|
*********************/
|
|
|
|
|
|
|
|
/**********************
|
|
|
|
* TYPEDEFS
|
|
|
|
**********************/
|
|
|
|
|
|
|
|
/**********************
|
|
|
|
* GLOBAL PROTOTYPES
|
|
|
|
**********************/
|
|
|
|
|
2018-06-07 15:32:19 +02:00
|
|
|
/**
|
|
|
|
* Draw a rectangle
|
|
|
|
* @param coords the coordinates of the rectangle
|
|
|
|
* @param mask the rectangle will be drawn only in this mask
|
|
|
|
* @param style pointer to a style
|
2018-06-14 13:08:19 +02:00
|
|
|
* @param opa_scale scale down all opacities by the factor
|
2018-06-07 15:32:19 +02:00
|
|
|
*/
|
2019-06-06 06:05:40 +02:00
|
|
|
void lv_draw_rect(const lv_area_t * coords, const lv_area_t * mask, const lv_style_t * style, lv_opa_t opa_scale);
|
2018-06-07 15:32:19 +02:00
|
|
|
|
2019-11-05 06:29:53 +01:00
|
|
|
/**
|
|
|
|
* Draw a pixel
|
|
|
|
* @param point the coordinates of the point to draw
|
|
|
|
* @param mask the pixel will be drawn only in this mask
|
|
|
|
* @param style pointer to a style
|
|
|
|
* @param opa_scale scale down the opacity by the factor
|
|
|
|
*/
|
|
|
|
void lv_draw_px(const lv_point_t * point, const lv_area_t * clip_area, const lv_style_t * style, lv_opa_t opa_scale);
|
|
|
|
|
2018-05-20 21:27:57 +02:00
|
|
|
/**********************
|
|
|
|
* MACROS
|
|
|
|
**********************/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /*LV_DRAW_RECT_H*/
|