lv_draw_line.h

Functions

void lv_draw_line_dsc_init(lv_draw_line_dsc_t *dsc)

Initialize a line draw descriptor

参数:

dsc -- pointer to a draw descriptor

lv_draw_line_dsc_t *lv_draw_task_get_line_dsc(lv_draw_task_t *task)

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

参数:

task -- draw task

返回:

the task's draw descriptor or NULL if the task is not of type LV_DRAW_TASK_TYPE_LINE

void lv_draw_line(lv_layer_t *layer, const lv_draw_line_dsc_t *dsc)

Create a line draw task

参数:
  • layer -- pointer to a layer

  • dsc -- pointer to an initialized lv_draw_line_dsc_t variable

struct lv_draw_line_dsc_t

Public Members

lv_draw_dsc_base_t base
lv_point_precise_t p1
lv_point_precise_t p2
lv_color_t color
int32_t width
int32_t dash_width
int32_t dash_gap
lv_opa_t opa
lv_blend_mode_t blend_mode
uint8_t round_start
uint8_t round_end
uint8_t raw_end

Do not bother with perpendicular line ending if it's not visible for any reason