lv_draw_triangle.h
API reference for lv_draw_triangle.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_draw_triangle_private.h
Summary
Functions
draw/lv_draw_triangle.h:58function
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)| Name | Type | Description |
|---|---|---|
task | lv_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
| Member | Type | Description |
|---|---|---|
base | lv_draw_dsc_base_t | |
p | lv_point_precise_t[3] | Points of the triangle. If LV_USE_FLOAT is enabled floats can be used here |
color | lv_color_t | Color of the triangle |
opa | lv_opa_t | Opacity of the arc in 0...255 range. LV_OPA_TRANSP, LV_OPA_10, LV_OPA_20, .. LV_OPA_COVER can be used as well |
grad | lv_grad_dsc_t | Describe a gradient. If grad.dir is not LV_GRAD_DIR_NONE color will be ignored |
Used by 9 functions
lv_draw_eve_triangle— paramdsclv_draw_triangle_dsc_init— paramdraw_dsclv_draw_triangle— paramdraw_dsclv_draw_nanovg_triangle— paramdsclv_draw_nema_gfx_triangle— paramdsclv_draw_dave2d_triangle— paramdsclv_draw_sdl_triangle— paramdsclv_draw_sw_triangle— paramdsclv_draw_vg_lite_triangle— paramdsc
Dependencies
Indirect dependencies
lv_anim.hlv_area.hlv_array.hlv_assert.hlv_bidi.hlv_color.hlv_color_op.hlv_conf_internal.hlv_conf_kconfig.hlv_draw.hlv_draw_buf.hlv_event.hlv_ext_data.hlv_flex.hlv_font.hlv_fs.hlv_grad.hlv_grid.hlv_image_decoder.hlv_image_dsc.hlv_layout.hlv_ll.hlv_log.hlv_math.hlv_matrix.hlv_mem.hlv_palette.hlv_profiler.hlv_profiler_builtin.hlv_sprintf.hlv_string.hlv_style.hlv_style_gen.hlv_symbol_def.hlv_text.hlv_tick.hlv_timer.hlv_types.h
How is this guide?
Last updated on