mikroSDK Reference Manual
lv_draw_arc.h
Go to the documentation of this file.
1
6#ifndef LV_DRAW_ARC_H
7#define LV_DRAW_ARC_H
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13/*********************
14 * INCLUDES
15 *********************/
16#include "../lv_conf_internal.h"
17#include "../misc/lv_color.h"
18#include "../misc/lv_area.h"
19#include "../misc/lv_style.h"
20
21/*********************
22 * DEFINES
23 *********************/
24
25/**********************
26 * TYPEDEFS
27 **********************/
28typedef struct {
29 lv_color_t color;
30 lv_coord_t width;
31 uint16_t start_angle;
32 uint16_t end_angle;
33 const void * img_src;
34 lv_opa_t opa;
35 lv_blend_mode_t blend_mode : 2;
36 uint8_t rounded : 1;
38
39struct _lv_draw_ctx_t;
40
41/**********************
42 * GLOBAL PROTOTYPES
43 **********************/
44
45void lv_draw_arc_dsc_init(lv_draw_arc_dsc_t * dsc);
46
58void lv_draw_arc(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_arc_dsc_t * dsc, const lv_point_t * center,
59 uint16_t radius, uint16_t start_angle, uint16_t end_angle);
60
72void lv_draw_arc_get_area(lv_coord_t x, lv_coord_t y, uint16_t radius, uint16_t start_angle, uint16_t end_angle,
73 lv_coord_t w, bool rounded, lv_area_t * area);
74
75/**********************
76 * MACROS
77 **********************/
78
79#ifdef __cplusplus
80} /*extern "C"*/
81#endif
82
83#endif /*LV_DRAW_ARC_H*/
void lv_draw_arc_get_area(lv_coord_t x, lv_coord_t y, uint16_t radius, uint16_t start_angle, uint16_t end_angle, lv_coord_t w, bool rounded, lv_area_t *area)
void lv_draw_arc(struct _lv_draw_ctx_t *draw_ctx, const lv_draw_arc_dsc_t *dsc, const lv_point_t *center, uint16_t radius, uint16_t start_angle, uint16_t end_angle)
Definition lv_draw.h:59
Definition lv_area.h:43
Definition lv_draw_arc.h:28
Definition lv_area.h:37