lv_draw_line.h

API reference for lv_draw_line.h

Report on GitHub

Functions

lv_draw_task_get_line_dsc

Try to get a line draw descriptor from a draw task.

 
lv_draw_line_dsc_t * lv_draw_task_get_line_dsc(lv_draw_task_t *task)
Parameters
NameTypeDescription
tasklv_draw_task_t *draw task

Returns: lv_draw_line_dsc_t * — the task's draw descriptor or NULL if the task is not of type LV_DRAW_TASK_TYPE_LINE

Structs

struct

lv_draw_line_dsc_t

MemberTypeDescription
baselv_draw_dsc_base_t
p1lv_point_precise_tThe first point of the line. If LV_USE_FLOAT is enabled float number can be also used. Ignored if points are set
p2lv_point_precise_tThe second point of the line. If LV_USE_FLOAT is enabled float number can be also used Ignored if points are set
pointslv_point_precise_t *Array of points to draw. If LV_USE_FLOAT is enabled, float numbers can also be used.
point_cntint32_tNumber of points in the points
colorlv_color_tThe color of the line
widthint32_tThe width (thickness) of the line
dash_widthint32_tThe length of a dash (0: don't dash)
dash_gapint32_tThe length of the gaps between dashes (0: don't dash)
opalv_opa_tOpacity of the line in 0...255 range. LV_OPA_TRANSP, LV_OPA_10, LV_OPA_20, .. LV_OPA_COVER can be used as well
round_startuint8_tMake the line start rounded
round_enduint8_tMake the line end rounded
raw_enduint8_t1: Do not bother with line ending (if it's not visible for any reason)
Used by 12 functions
  • lv_obj_init_draw_line_dsc — param draw_dsc
  • lv_draw_eve_line — param dsc
  • lv_draw_line_dsc_init — param dsc
  • lv_draw_line — param dsc
  • lv_draw_line_iterate — param dsc
  • lv_draw_line_iterate — param draw_line_cb
  • lv_draw_nanovg_line — param dsc
  • lv_draw_nema_gfx_line — param dsc
  • lv_draw_dave2d_line — param dsc
  • lv_draw_sdl_line — param dsc
  • lv_draw_sw_line — param dsc
  • lv_draw_vg_lite_line — param dsc

Macros

LV_DRAW_LINE_POINT_NONE

 
#define LV_DRAW_LINE_POINT_NONE FLT_MAX

Dependencies

How is this guide?

Last updated on

On this page