fix(scale): change return type of lv_scale_get_rotation to int32_t and update documentation (#7862)

This commit is contained in:
Fabian Zäh
2025-03-12 21:23:42 +01:00
committed by GitHub
parent 57a428abd8
commit 9e396fad8c
2 changed files with 3 additions and 3 deletions

View File

@@ -442,7 +442,7 @@ int32_t lv_scale_get_major_tick_every(lv_obj_t * obj)
return scale->major_tick_every;
}
lv_scale_mode_t lv_scale_get_rotation(lv_obj_t * obj)
int32_t lv_scale_get_rotation(lv_obj_t * obj)
{
lv_scale_t * scale = (lv_scale_t *)obj;
return scale->rotation;

View File

@@ -282,9 +282,9 @@ int32_t lv_scale_get_major_tick_every(lv_obj_t * obj);
/**
* Get angular location of low end of Scale.
* @param obj pointer to Scale Widget
* @return Scale major tick every count
* @return Scale low end anglular location
*/
lv_scale_mode_t lv_scale_get_rotation(lv_obj_t * obj);
int32_t lv_scale_get_rotation(lv_obj_t * obj);
/**
* Gets label visibility