This commit is contained in:
github-actions[bot]
2021-01-31 16:41:22 +00:00
committed by GitHub
2 changed files with 14 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
### New features
- feat(indev) allow input events to be passed to disabled objects
- feat(spinbox) add inline get_step function for MicroPython support
### Bugfixes
- fix(btnmatrix) fix lv_btnmatrix_get_active_btn_text() when used in a group

View File

@@ -135,6 +135,18 @@ bool lv_spinbox_get_rollover(lv_obj_t * spinbox);
*/
int32_t lv_spinbox_get_value(lv_obj_t * spinbox);
/**
* Get the spinbox step value (user has to convert to float according to its digit format)
* @param spinbox pointer to spinbox
* @return value integer step value of the spinbox
*/
static inline int32_t lv_spinbox_get_step(lv_obj_t * spinbox)
{
lv_spinbox_ext_t * ext = lv_obj_get_ext_attr(spinbox);
return ext->step;
}
/*=====================
* Other functions
*====================*/