lv_line.h

API reference for lv_line.h

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

Functions

lv_line_set_points

Set an array of points. The line object will connect these points.

 
void lv_line_set_points(lv_obj_t *obj, const lv_point_precise_t points[], uint32_t point_num)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a line object
pointsconst lv_point_precise_tan array of points. Only the address is saved, so the array needs to be alive while the line exists. May be NULL. Use NULL to remove the previously assigned points of the line
point_numuint32_tnumber of points in 'point_a'

lv_line_set_points_mutable

Set a non-const array of points. Identical to lv_line_set_points except the array may be retrieved by lv_line_get_points_mutable.

 
void lv_line_set_points_mutable(lv_obj_t *obj, lv_point_precise_t points[], uint32_t point_num)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a line object
pointslv_point_precise_ta non-const array of points. Only the address is saved, so the array needs to be alive while the line exists. May be NULL. Use NULL to remove the previously assigned points of the line
point_numuint32_tnumber of points in 'point_a'

lv_line_set_y_invert

Enable (or disable) the y coordinate inversion. If enabled then y will be subtracted from the height of the object, therefore the y = 0 coordinate will be on the bottom.

 
void lv_line_set_y_invert(lv_obj_t *obj, bool en)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a line object
enbooltrue: enable the y inversion, false:disable the y inversion

Enums

_lv_property_line_id_t

NameValue
LV_PROPERTY_LINE_Y_INVERT(LV_PROPERTY_LINE_START + ((int) 0 )) | (( 11 ) << 28 )
LV_PROPERTY_LINE_END

Variables

lv_line_class

 
const lv_obj_class_t lv_line_class

Dependencies

Last updated on

On this page