fix(scale): change return type of lv_scale_get_rotation to int32_t and update documentation (#7862)
This commit is contained in:
@@ -442,7 +442,7 @@ int32_t lv_scale_get_major_tick_every(lv_obj_t * obj)
|
|||||||
return scale->major_tick_every;
|
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;
|
lv_scale_t * scale = (lv_scale_t *)obj;
|
||||||
return scale->rotation;
|
return scale->rotation;
|
||||||
|
|||||||
@@ -282,9 +282,9 @@ int32_t lv_scale_get_major_tick_every(lv_obj_t * obj);
|
|||||||
/**
|
/**
|
||||||
* Get angular location of low end of Scale.
|
* Get angular location of low end of Scale.
|
||||||
* @param obj pointer to Scale Widget
|
* @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
|
* Gets label visibility
|
||||||
|
|||||||
Reference in New Issue
Block a user