lv_arc.h

API reference for lv_arc.h

Report on GitHub
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_arc_private.h

Functions

lv_arc_set_start_angle

Set the start angle of an arc. 0 deg: right, 90 bottom, etc.

 
void lv_arc_set_start_angle(lv_obj_t *obj, lv_value_precise_t start)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an arc object
startlv_value_precise_tthe start angle. (if LV_USE_FLOAT is enabled it can be fractional too.)

lv_arc_set_end_angle

Set the end angle of an arc. 0 deg: right, 90 bottom, etc.

 
void lv_arc_set_end_angle(lv_obj_t *obj, lv_value_precise_t end)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an arc object
endlv_value_precise_tthe end angle (if LV_USE_FLOAT is enabled it can be fractional too.)

lv_arc_set_angles

Set the start and end angles

 
void lv_arc_set_angles(lv_obj_t *obj, lv_value_precise_t start, lv_value_precise_t end)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an arc object
startlv_value_precise_tthe start angle (if LV_USE_FLOAT is enabled it can be fractional too.)
endlv_value_precise_tthe end angle (if LV_USE_FLOAT is enabled it can be fractional too.)

lv_arc_set_bg_start_angle

Set the start angle of an arc background. 0 deg: right, 90 bottom, etc.

 
void lv_arc_set_bg_start_angle(lv_obj_t *obj, lv_value_precise_t start)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an arc object
startlv_value_precise_tthe start angle (if LV_USE_FLOAT is enabled it can be fractional too.)

lv_arc_set_bg_end_angle

Set the start angle of an arc background. 0 deg: right, 90 bottom etc.

 
void lv_arc_set_bg_end_angle(lv_obj_t *obj, lv_value_precise_t end)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an arc object
endlv_value_precise_tthe end angle (if LV_USE_FLOAT is enabled it can be fractional too.)

lv_arc_set_bg_angles

Set the start and end angles of the arc background

 
void lv_arc_set_bg_angles(lv_obj_t *obj, lv_value_precise_t start, lv_value_precise_t end)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an arc object
startlv_value_precise_tthe start angle (if LV_USE_FLOAT is enabled it can be fractional too.)
endlv_value_precise_tthe end angle (if LV_USE_FLOAT is enabled it can be fractional too.)

lv_arc_set_rotation

Set the rotation for the whole arc

 
void lv_arc_set_rotation(lv_obj_t *obj, int32_t rotation)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an arc object
rotationint32_trotation angle

lv_arc_set_mode

Set in which direction the indicator should grow.

 
void lv_arc_set_mode(lv_obj_t *obj, lv_arc_mode_t type)
Parameters
NameTypeDescription
objlv_obj_t *pointer to arc object
typelv_arc_mode_tarc's mode

lv_arc_set_value

Set a new value on the arc

 
void lv_arc_set_value(lv_obj_t *obj, int32_t value)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an arc object
valueint32_tnew value

lv_arc_set_range

Set minimum and the maximum values of an arc

 
void lv_arc_set_range(lv_obj_t *obj, int32_t min, int32_t max)
Parameters
NameTypeDescription
objlv_obj_t *pointer to the arc object
minint32_tminimum value
maxint32_tmaximum value

lv_arc_set_min_value

Set the minimum values of an arc

 
void lv_arc_set_min_value(lv_obj_t *obj, int32_t min)
Parameters
NameTypeDescription
objlv_obj_t *pointer to the arc object
minint32_tminimum value

lv_arc_set_max_value

Set the maximum values of an arc

 
void lv_arc_set_max_value(lv_obj_t *obj, int32_t max)
Parameters
NameTypeDescription
objlv_obj_t *pointer to the arc object
maxint32_tmaximum value

lv_arc_set_change_rate

Set a change rate to limit the speed how fast the arc should reach the pressed point.

 
void lv_arc_set_change_rate(lv_obj_t *obj, uint32_t rate)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an arc object
rateuint32_tthe change rate

lv_arc_set_knob_offset

Set an offset angle for the knob

 
void lv_arc_set_knob_offset(lv_obj_t *obj, int32_t offset)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an arc object
offsetint32_tknob offset from main arc in degrees

Enums

lv_arc_mode_t

In which direction the indicator should grow.

NameDescription
LV_ARC_MODE_NORMALClock-wise
LV_ARC_MODE_SYMMETRICALLeft/right from the midpoint
LV_ARC_MODE_REVERSECounterclock-wise
Used by 1 function
  • lv_arc_set_mode — param type

_lv_property_arc_id_t

NameValue
LV_PROPERTY_ARC_START_ANGLE(LV_PROPERTY_ARC_START + ((int) 0 )) | (( 2 ) << 28 )
LV_PROPERTY_ARC_END_ANGLE(LV_PROPERTY_ARC_START + ((int) 1 )) | (( 2 ) << 28 )
LV_PROPERTY_ARC_BG_START_ANGLE(LV_PROPERTY_ARC_START + ((int) 2 )) | (( 2 ) << 28 )
LV_PROPERTY_ARC_BG_END_ANGLE(LV_PROPERTY_ARC_START + ((int) 3 )) | (( 2 ) << 28 )
LV_PROPERTY_ARC_ROTATION(LV_PROPERTY_ARC_START + ((int) 4 )) | (( 1 ) << 28 )
LV_PROPERTY_ARC_MODE(LV_PROPERTY_ARC_START + ((int) 5 )) | (( 1 ) << 28 )
LV_PROPERTY_ARC_VALUE(LV_PROPERTY_ARC_START + ((int) 6 )) | (( 1 ) << 28 )
LV_PROPERTY_ARC_MIN_VALUE(LV_PROPERTY_ARC_START + ((int) 7 )) | (( 1 ) << 28 )
LV_PROPERTY_ARC_MAX_VALUE(LV_PROPERTY_ARC_START + ((int) 8 )) | (( 1 ) << 28 )
LV_PROPERTY_ARC_CHANGE_RATE(LV_PROPERTY_ARC_START + ((int) 9 )) | (( 1 ) << 28 )
LV_PROPERTY_ARC_KNOB_OFFSET(LV_PROPERTY_ARC_START + ((int) 10 )) | (( 1 ) << 28 )
LV_PROPERTY_ARC_END

Variables

lv_arc_class

 
const lv_obj_class_t lv_arc_class

Dependencies

How is this guide?

Last updated on

On this page