aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/roller/lv_roller_private.h
blob: b1f61ef629bace37da0f0aad79a12d257a8612ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**
 * @file lv_roller_private.h
 *
 */

#ifndef LV_ROLLER_PRIVATE_H
#define LV_ROLLER_PRIVATE_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
 *      INCLUDES
 *********************/

#include "lv_roller.h"

#if LV_USE_ROLLER != 0
#include "../../core/lv_obj_private.h"

/*********************
 *      DEFINES
 *********************/

/**********************
 *      TYPEDEFS
 **********************/

struct lv_roller_t {
    lv_obj_t obj;
    uint32_t option_cnt;          /**< Number of options*/
    uint32_t sel_opt_id;          /**< Index of the current option*/
    uint32_t sel_opt_id_ori;      /**< Store the original index on focus*/
    uint32_t inf_page_cnt;        /**< Number of extra pages added to make the roller look infinite */
    lv_roller_mode_t mode : 1;
    uint32_t moved : 1;
};


/**********************
 * GLOBAL PROTOTYPES
 **********************/

/**********************
 *      MACROS
 **********************/

#endif /* LV_USE_ROLLER != 0 */

#ifdef __cplusplus
} /*extern "C"*/
#endif

#endif /*LV_ROLLER_PRIVATE_H*/