Change angle values to uint16_t
This commit is contained in:
@@ -29,10 +29,10 @@ extern "C" {
|
|||||||
/*Data of arc*/
|
/*Data of arc*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
/*New data for this type */
|
/*New data for this type */
|
||||||
lv_coord_t arc_angle_start;
|
uint16_t arc_angle_start;
|
||||||
lv_coord_t arc_angle_end;
|
uint16_t arc_angle_end;
|
||||||
lv_coord_t bg_angle_start;
|
uint16_t bg_angle_start;
|
||||||
lv_coord_t bg_angle_end;
|
uint16_t bg_angle_end;
|
||||||
lv_style_list_t style_arc;
|
lv_style_list_t style_arc;
|
||||||
} lv_arc_ext_t;
|
} lv_arc_ext_t;
|
||||||
|
|
||||||
@@ -71,14 +71,14 @@ lv_obj_t * lv_arc_create(lv_obj_t * par, const lv_obj_t * copy);
|
|||||||
* @param arc pointer to an arc object
|
* @param arc pointer to an arc object
|
||||||
* @param start the start angle
|
* @param start the start angle
|
||||||
*/
|
*/
|
||||||
void lv_arc_set_start_angle(lv_obj_t * arc, int16_t start);
|
void lv_arc_set_start_angle(lv_obj_t * arc, uint16_t start);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the start angle of an arc. 0 deg: right, 90 bottom, etc.
|
* Set the start angle of an arc. 0 deg: right, 90 bottom, etc.
|
||||||
* @param arc pointer to an arc object
|
* @param arc pointer to an arc object
|
||||||
* @param end the end angle
|
* @param end the end angle
|
||||||
*/
|
*/
|
||||||
void lv_arc_set_end_angle(lv_obj_t * arc, int16_t end);
|
void lv_arc_set_end_angle(lv_obj_t * arc, uint16_t end);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the start and end angles
|
* Set the start and end angles
|
||||||
@@ -86,21 +86,21 @@ void lv_arc_set_end_angle(lv_obj_t * arc, int16_t end);
|
|||||||
* @param start the start angle
|
* @param start the start angle
|
||||||
* @param end the end angle
|
* @param end the end angle
|
||||||
*/
|
*/
|
||||||
void lv_arc_set_angles(lv_obj_t * arc, int16_t start, int16_t end);
|
void lv_arc_set_angles(lv_obj_t * arc, uint16_t start, uint16_t end);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the start angle of an arc background. 0 deg: right, 90 bottom, etc.
|
* Set the start angle of an arc background. 0 deg: right, 90 bottom, etc.
|
||||||
* @param arc pointer to an arc object
|
* @param arc pointer to an arc object
|
||||||
* @param start the start angle
|
* @param start the start angle
|
||||||
*/
|
*/
|
||||||
void lv_arc_set_bg_start_angle(lv_obj_t * arc, int16_t start);
|
void lv_arc_set_bg_start_angle(lv_obj_t * arc, uint16_t start);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the start angle of an arc background. 0 deg: right, 90 bottom etc.
|
* Set the start angle of an arc background. 0 deg: right, 90 bottom etc.
|
||||||
* @param arc pointer to an arc object
|
* @param arc pointer to an arc object
|
||||||
* @param end the end angle
|
* @param end the end angle
|
||||||
*/
|
*/
|
||||||
void lv_arc_set_bg_end_angle(lv_obj_t * arc, int16_t end);
|
void lv_arc_set_bg_end_angle(lv_obj_t * arc, uint16_t end);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the start and end angles of the arc background
|
* Set the start and end angles of the arc background
|
||||||
@@ -108,7 +108,7 @@ void lv_arc_set_bg_end_angle(lv_obj_t * arc, int16_t end);
|
|||||||
* @param start the start angle
|
* @param start the start angle
|
||||||
* @param end the end angle
|
* @param end the end angle
|
||||||
*/
|
*/
|
||||||
void lv_arc_set_bg_angles(lv_obj_t * arc, int16_t start, int16_t end);
|
void lv_arc_set_bg_angles(lv_obj_t * arc, uint16_t start, uint16_t end);
|
||||||
|
|
||||||
/*=====================
|
/*=====================
|
||||||
* Getter functions
|
* Getter functions
|
||||||
|
|||||||
Reference in New Issue
Block a user