lv_draw_triangle.h

API reference for lv_draw_triangle.h

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

Functions

lv_draw_task_get_triangle_dsc

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

 
lv_draw_triangle_dsc_t * lv_draw_task_get_triangle_dsc(lv_draw_task_t *task)
Parameters
NameTypeDescription
tasklv_draw_task_t *draw task

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

Structs

struct

lv_draw_triangle_dsc_t

MemberTypeDescription
baselv_draw_dsc_base_t
plv_point_precise_t[3]Points of the triangle. If LV_USE_FLOAT is enabled floats can be used here
colorlv_color_tColor of the triangle
opalv_opa_tOpacity of the arc in 0...255 range. LV_OPA_TRANSP, LV_OPA_10, LV_OPA_20, .. LV_OPA_COVER can be used as well
gradlv_grad_dsc_tDescribe a gradient. If grad.dir is not LV_GRAD_DIR_NONE color will be ignored
Used by 9 functions
  • lv_draw_eve_triangle — param dsc
  • lv_draw_triangle_dsc_init — param draw_dsc
  • lv_draw_triangle — param draw_dsc
  • lv_draw_nanovg_triangle — param dsc
  • lv_draw_nema_gfx_triangle — param dsc
  • lv_draw_dave2d_triangle — param dsc
  • lv_draw_sdl_triangle — param dsc
  • lv_draw_sw_triangle — param dsc
  • lv_draw_vg_lite_triangle — param dsc

Dependencies

How is this guide?

Last updated on

On this page