@amirgon
Thank you for the help with this, and I am going to appologise in advance for my lack of knowledge.
I can see how I would set up a get function in the .c and .h file but I am very inexperienced when it comes to c and so not sure how I would add this as an inilne funtion, and specifically in the header.
This is what I have so far:
In lv_spinbox.c
/**
* 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
*/
int32_t lv_spinbox_get_step(lv_obj_t * spinbox)
{
LV_ASSERT_OBJ(spinbox, LV_OBJX_NAME);
lv_spinbox_ext_t * ext = lv_obj_get_ext_attr(spinbox);
return ext->step;
}
In lv_spinbox.h
/**
* 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
*/
int32_t lv_spinbox_get_step(lv_obj_t * spinbox);