1 /**
2  * @file lv_slider_private.h
3  *
4  */
5 
6 #ifndef LV_SLIDER_PRIVATE_H
7 #define LV_SLIDER_PRIVATE_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 /*********************
14  *      INCLUDES
15  *********************/
16 
17 #include "../bar/lv_bar_private.h"
18 #include "lv_slider.h"
19 
20 #if LV_USE_SLIDER != 0
21 
22 /*********************
23  *      DEFINES
24  *********************/
25 
26 /**********************
27  *      TYPEDEFS
28  **********************/
29 
30 struct _lv_slider_t {
31     lv_bar_t bar;                 /**< Add the ancestor's type first */
32     lv_area_t left_knob_area;
33     lv_area_t right_knob_area;
34     lv_point_t pressed_point;
35     int32_t * value_to_set;       /**< Which bar value to set */
36     uint8_t dragging : 1;         /**< 1: the slider is being dragged */
37     uint8_t left_knob_focus : 1;  /**< 1: with encoder now the right knob can be adjusted */
38 };
39 
40 
41 /**********************
42  * GLOBAL PROTOTYPES
43  **********************/
44 
45 /**********************
46  *      MACROS
47  **********************/
48 
49 #endif /* LV_USE_SLIDER != 0 */
50 
51 #ifdef __cplusplus
52 } /*extern "C"*/
53 #endif
54 
55 #endif /*LV_SLIDER_PRIVATE_H*/
56