1 /**
2  * @file lv_roller_private.h
3  *
4  */
5 
6 #ifndef LV_ROLLER_PRIVATE_H
7 #define LV_ROLLER_PRIVATE_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 /*********************
14  *      INCLUDES
15  *********************/
16 
17 #include "lv_roller.h"
18 
19 #if LV_USE_ROLLER != 0
20 #include "../../core/lv_obj_private.h"
21 
22 /*********************
23  *      DEFINES
24  *********************/
25 
26 /**********************
27  *      TYPEDEFS
28  **********************/
29 
30 struct _lv_roller_t {
31     lv_obj_t obj;
32     uint32_t option_cnt;          /**< Number of options*/
33     uint32_t sel_opt_id;          /**< Index of the current option*/
34     uint32_t sel_opt_id_ori;      /**< Store the original index on focus*/
35     uint32_t inf_page_cnt;        /**< Number of extra pages added to make the roller look infinite */
36     lv_roller_mode_t mode : 2;
37     uint32_t moved : 1;
38 };
39 
40 
41 /**********************
42  * GLOBAL PROTOTYPES
43  **********************/
44 
45 /**********************
46  *      MACROS
47  **********************/
48 
49 #endif /* LV_USE_ROLLER != 0 */
50 
51 #ifdef __cplusplus
52 } /*extern "C"*/
53 #endif
54 
55 #endif /*LV_ROLLER_PRIVATE_H*/
56