1 /**
2  * @file lv_bar_private.h
3  *
4  */
5 
6 #ifndef LV_BAR_PRIVATE_H
7 #define LV_BAR_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_bar.h"
19 
20 #if LV_USE_BAR != 0
21 
22 /*********************
23  *      DEFINES
24  *********************/
25 
26 /**********************
27  *      TYPEDEFS
28  **********************/
29 
30 struct _lv_bar_anim_t {
31     lv_obj_t * bar;
32     int32_t anim_start;
33     int32_t anim_end;
34     int32_t anim_state;
35 };
36 
37 struct _lv_bar_t {
38     lv_obj_t obj;
39     int32_t cur_value;          /**< Current value of the bar*/
40     int32_t min_value;          /**< Minimum value of the bar*/
41     int32_t max_value;          /**< Maximum value of the bar*/
42     int32_t start_value;        /**< Start value of the bar*/
43     lv_area_t indic_area;       /**< Save the indicator area. Might be used by derived types*/
44     bool val_reversed;          /**< Whether value been reversed */
45     lv_bar_anim_t cur_value_anim;
46     lv_bar_anim_t start_value_anim;
47     lv_bar_mode_t mode : 3;     /**< Type of bar*/
48     lv_bar_orientation_t orientation : 3;  /**< Orientation of bar*/
49 };
50 
51 
52 /**********************
53  * GLOBAL PROTOTYPES
54  **********************/
55 
56 /**********************
57  *      MACROS
58  **********************/
59 
60 #endif /* LV_USE_BAR != 0 */
61 
62 #ifdef __cplusplus
63 } /*extern "C"*/
64 #endif
65 
66 #endif /*LV_BAR_PRIVATE_H*/
67