mikroSDK Reference Manual
lv_gridnav.h
Go to the documentation of this file.
1
6/*********************
7 * INCLUDES
8 *********************/
9
10/*********************
11 * DEFINES
12 *********************/
13
14/**********************
15 * TYPEDEFS
16 **********************/
17
18/*This typedef exists purely to keep -Wpedantic happy when the file is empty.*/
19/*It can be removed.*/
20typedef int _keep_pedantic_happy;
21
22/**********************
23 * STATIC PROTOTYPES
24 **********************/
25
26/**********************
27 * STATIC VARIABLES
28 **********************/
29
30/**********************
31 * MACROS
32 **********************/
33
34/**********************
35 * GLOBAL FUNCTIONS
36 **********************/
37
38/**********************
39 * STATIC FUNCTIONS
40 **********************/
46#ifndef LV_GRIDFOCUS_H
47#define LV_GRIDFOCUS_H
48
49#ifdef __cplusplus
50extern "C" {
51#endif
52
53/*********************
54 * INCLUDES
55 *********************/
57
58#if LV_USE_GRIDNAV
59
60/*********************
61 * DEFINES
62 *********************/
63
64/**********************
65 * TYPEDEFS
66 **********************/
67typedef enum {
68 LV_GRIDNAV_CTRL_NONE = 0x0,
69
75 LV_GRIDNAV_CTRL_ROLLOVER = 0x1,
76
81 LV_GRIDNAV_CTRL_SCROLL_FIRST = 0x2,
82
83} lv_gridnav_ctrl_t;
84
85/**********************
86 * GLOBAL PROTOTYPES
87 **********************/
88
98void lv_gridnav_add(lv_obj_t * obj, lv_gridnav_ctrl_t ctrl);
99
104void lv_gridnav_remove(lv_obj_t * obj);
105
112void lv_gridnav_set_focused(lv_obj_t * cont, lv_obj_t * to_focus, lv_anim_enable_t anim_en);
113
114/**********************
115 * MACROS
116 **********************/
117#endif /*LV_USE_GRIDNAV*/
118
119#ifdef __cplusplus
120} /*extern "C"*/
121#endif
122
123#endif /*LV_GRIDFOCUS_H*/
lv_anim_enable_t
Definition lv_anim.h:37
Definition lv_obj.h:174