mikroSDK Reference Manual
lv_line.h
Go to the documentation of this file.
1
6
#ifndef LV_LINE_H
7
#define LV_LINE_H
8
9
#ifdef __cplusplus
10
extern
"C"
{
11
#endif
12
13
/*********************
14
* INCLUDES
15
*********************/
16
#include "
../lv_conf_internal.h
"
17
18
#if LV_USE_LINE != 0
19
20
#include "
../core/lv_obj.h
"
21
22
/*********************
23
* DEFINES
24
*********************/
25
26
/**********************
27
* TYPEDEFS
28
**********************/
29
30
/*Data of line*/
31
typedef
struct
{
32
lv_obj_t
obj;
33
const
lv_point_t
* point_array;
34
uint16_t point_num;
35
uint8_t y_inv : 1;
36
} lv_line_t;
37
38
extern
const
lv_obj_class_t
lv_line_class;
39
40
/**********************
41
* GLOBAL PROTOTYPES
42
**********************/
43
49
lv_obj_t
* lv_line_create(
lv_obj_t
* parent);
50
51
/*=====================
52
* Setter functions
53
*====================*/
54
61
void
lv_line_set_points(
lv_obj_t
* obj,
const
lv_point_t
points[], uint16_t point_num);
62
70
void
lv_line_set_y_invert(
lv_obj_t
* obj,
bool
en);
71
72
/*=====================
73
* Getter functions
74
*====================*/
75
81
bool
lv_line_get_y_invert(
const
lv_obj_t
* obj);
82
83
/**********************
84
* MACROS
85
**********************/
86
87
#endif
/*LV_USE_LINE*/
88
89
#ifdef __cplusplus
90
}
/*extern "C"*/
91
#endif
92
93
#endif
/*LV_LINE_H*/
lv_conf_internal.h
lv_obj.h
_lv_obj_class_t
Definition
lv_obj_class.h:49
_lv_obj_t
Definition
lv_obj.h:174
lv_point_t
Definition
lv_area.h:37