lv_draw_line.h

Functions

void lv_draw_line_dsc_init(lv_draw_line_dsc_t *dsc)
void lv_draw_line(struct _lv_draw_ctx_t *draw_ctx, const lv_draw_line_dsc_t *dsc, const lv_point_t *point1, const lv_point_t *point2)

Draw a line

Parameters:
  • draw_ctx -- pointer to the current draw context

  • dsc -- pointer to an initialized lv_draw_line_dsc_t variable

  • point1 -- first point of the line

  • point2 -- second point of the line

struct lv_draw_line_dsc_t

Public Members

lv_color_t color
lv_coord_t width
lv_coord_t dash_width
lv_coord_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