1 /** 2 * @file lv_spinbox_private.h 3 * 4 */ 5 6 #ifndef LV_SPINBOX_PRIVATE_H 7 #define LV_SPINBOX_PRIVATE_H 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /********************* 14 * INCLUDES 15 *********************/ 16 17 #include "../textarea/lv_textarea_private.h" 18 #include "lv_spinbox.h" 19 20 #if LV_USE_SPINBOX 21 22 /********************* 23 * DEFINES 24 *********************/ 25 26 /********************** 27 * TYPEDEFS 28 **********************/ 29 30 /** Data of spinbox */ 31 struct _lv_spinbox_t { 32 lv_textarea_t ta; /**< Ext. of ancestor */ 33 /*New data for this type*/ 34 int32_t value; 35 int32_t range_max; 36 int32_t range_min; 37 int32_t step; 38 uint32_t digit_count : 4; 39 uint32_t dec_point_pos : 4; /**< if 0, there is no separator and the number is an integer */ 40 uint32_t rollover : 1; /**< Set to true for rollover functionality */ 41 uint32_t digit_step_dir : 2; /**< the direction the digit will step on encoder button press when editing */ 42 }; 43 44 45 /********************** 46 * GLOBAL PROTOTYPES 47 **********************/ 48 49 /********************** 50 * MACROS 51 **********************/ 52 53 #endif /* LV_USE_SPINBOX */ 54 55 #ifdef __cplusplus 56 } /*extern "C"*/ 57 #endif 58 59 #endif /*LV_SPINBOX_PRIVATE_H*/ 60