lv_draw_triangle.h
API reference for lv_draw_triangle.h
Summary
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)| 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
lv_draw_triangle_dsc_init
Initialize a triangle draw descriptor
void lv_draw_triangle_dsc_init(lv_draw_triangle_dsc_t *draw_dsc)| Name | Type | Description |
|---|---|---|
draw_dsc | lv_draw_triangle_dsc_t * | pointer to a draw descriptor |
lv_draw_triangle
Create a triangle draw task
void lv_draw_triangle(lv_layer_t *layer, const lv_draw_triangle_dsc_t *draw_dsc)| Name | Type | Description |
|---|---|---|
layer | lv_layer_t * | pointer to a layer |
draw_dsc | const lv_draw_triangle_dsc_t * | pointer to an initialized lv_draw_triangle_dsc_t object |
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_triangle_dsc_init— paramdraw_dsclv_draw_triangle— paramdraw_dsclv_draw_eve_triangle— paramdsclv_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_assert.hlv_bidi.hlv_color.hlv_color_op.hlv_conf_internal.hlv_draw.hlv_draw_buf.hlv_event.hlv_ext_data.hlv_flex.hlv_font.hlv_grad.hlv_grid.hlv_image_dsc.hlv_layout.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_types.h
Last updated on