1 /** 2 * @file lv_switch_private.h 3 * 4 */ 5 6 #ifndef LV_SWITCH_PRIVATE_H 7 #define LV_SWITCH_PRIVATE_H 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /********************* 14 * INCLUDES 15 *********************/ 16 17 #include "lv_switch.h" 18 19 #if LV_USE_SWITCH != 0 20 #include "../../core/lv_obj_private.h" 21 22 /********************* 23 * DEFINES 24 *********************/ 25 26 /********************** 27 * TYPEDEFS 28 **********************/ 29 30 /********************** 31 * TYPEDEFS 32 **********************/ 33 34 struct _lv_switch_t { 35 lv_obj_t obj; 36 int32_t anim_state; 37 lv_switch_orientation_t orientation : 3; /**< Orientation of switch*/ 38 }; 39 40 41 /********************** 42 * GLOBAL PROTOTYPES 43 **********************/ 44 45 /********************** 46 * MACROS 47 **********************/ 48 49 #endif /* LV_USE_SWITCH != 0 */ 50 51 #ifdef __cplusplus 52 } /*extern "C"*/ 53 #endif 54 55 #endif /*LV_SWITCH_PRIVATE_H*/ 56