1 /**
2  * @file lv_line_private.h
3  *
4  */
5 
6 #ifndef LV_LINE_PRIVATE_H
7 #define LV_LINE_PRIVATE_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 /*********************
14  *      INCLUDES
15  *********************/
16 
17 #include "../../core/lv_obj_private.h"
18 #include "lv_line.h"
19 
20 #if LV_USE_LINE != 0
21 
22 /*********************
23  *      DEFINES
24  *********************/
25 
26 /**********************
27  *      TYPEDEFS
28  **********************/
29 
30 /** Data of line */
31 struct _lv_line_t {
32     lv_obj_t obj;
33     union {
34         const lv_point_precise_t * constant;
35         lv_point_precise_t * mut;
36     } point_array;                      /**< Pointer to an array with the points of the line*/
37     uint32_t point_num;                 /**< Number of points in 'point_array'*/
38     uint32_t y_inv : 1;                  /**< 1: y == 0 will be on the bottom*/
39     uint32_t point_array_is_mutable : 1; /**< whether the point array is const or mutable*/
40 };
41 
42 
43 /**********************
44  * GLOBAL PROTOTYPES
45  **********************/
46 
47 /**********************
48  *      MACROS
49  **********************/
50 
51 #endif /* LV_USE_LINE != 0 */
52 
53 #ifdef __cplusplus
54 } /*extern "C"*/
55 #endif
56 
57 #endif /*LV_LINE_PRIVATE_H*/
58