mikroSDK Reference Manual
lv_switch.h
Go to the documentation of this file.
1
6#ifndef LV_SWITCH_H
7#define LV_SWITCH_H
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13/*********************
14 * INCLUDES
15 *********************/
16#include "../lv_conf_internal.h"
17
18#if LV_USE_SWITCH != 0
19
20#include "../core/lv_obj.h"
21
22/*********************
23 * DEFINES
24 *********************/
25
27#define _LV_SWITCH_KNOB_EXT_AREA_CORRECTION 2
28
29/**********************
30 * TYPEDEFS
31 **********************/
32
33typedef struct {
34 lv_obj_t obj;
35 int32_t anim_state;
36} lv_switch_t;
37
38extern const lv_obj_class_t lv_switch_class;
39
40/**********************
41 * GLOBAL PROTOTYPES
42 **********************/
43
49lv_obj_t * lv_switch_create(lv_obj_t * parent);
50
51/**********************
52 * MACROS
53 **********************/
54
55#endif /*LV_USE_SWITCH*/
56
57#ifdef __cplusplus
58} /*extern "C"*/
59#endif
60
61#endif /*LV_SWITCH_H*/
Definition lv_obj_class.h:49
Definition lv_obj.h:174