lv_draw_arc.h
API reference for lv_draw_arc.h
Summary
Functions
draw/lv_draw_arc.h:78function
lv_draw_task_get_arc_dsc
Try to get an arc draw descriptor from a draw task.
lv_draw_arc_dsc_t * lv_draw_task_get_arc_dsc(lv_draw_task_t *task)| Name | Type | Description |
|---|---|---|
task | lv_draw_task_t * | draw task |
Returns: lv_draw_arc_dsc_t * — the task's draw descriptor or NULL if the task is not of type LV_DRAW_TASK_TYPE_ARC
draw/lv_draw_arc.h:98function
lv_draw_arc_get_area
Get an area the should be invalidated when the arcs angle changed between start_angle and end_ange
void lv_draw_arc_get_area(int32_t x, int32_t y, uint16_t radius, lv_value_precise_t start_angle, lv_value_precise_t end_angle, int32_t w, bool rounded, lv_area_t *area)| Name | Type | Description |
|---|---|---|
x | int32_t | the x coordinate of the center of the arc |
y | int32_t | the y coordinate of the center of the arc |
radius | uint16_t | the radius of the arc |
start_angle | lv_value_precise_t | the start angle of the arc (0 deg on the bottom, 90 deg on the right) |
end_angle | lv_value_precise_t | the end angle of the arc |
w | int32_t | width of the arc |
rounded | bool | true: the arc is rounded |
area | lv_area_t * | store the area to invalidate here |
Structs
struct
lv_draw_arc_dsc_t
| Member | Type | Description |
|---|---|---|
base | lv_draw_dsc_base_t | |
color | lv_color_t | The color of the arc |
width | int32_t | The width (thickness) of the arc |
start_angle | lv_value_precise_t | The start angle in 1 degree units (if LV_USE_FLOAT is enabled a float number can be also used) 0° is the 3 o'clock position, 90° is the 6 o'clock, etc. |
end_angle | lv_value_precise_t | The end angle, similarly to start_angle. |
center | lv_point_t | The center point of the arc. |
img_src | const void * | An image source to be used instead of color. NULL if unused |
radius | uint16_t | The outer radius of the arc |
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 |
rounded | uint8_t | 1: Make the arc ends rounded |
Used by 10 functions
lv_obj_init_draw_arc_dsc— paramdraw_dsclv_draw_eve_arc— paramdsclv_draw_arc_dsc_init— paramdsclv_draw_arc— paramdsclv_draw_nanovg_arc— paramdsclv_draw_nema_gfx_arc— paramdsclv_draw_dave2d_arc— paramdsclv_draw_sdl_arc— paramdsclv_draw_sw_arc— paramdsclv_draw_vg_lite_arc— paramdsc
Dependencies
Indirect dependencies
lv_anim.hlv_array.hlv_assert.hlv_bidi.hlv_color_op.hlv_conf_kconfig.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_gen.hlv_symbol_def.hlv_text.hlv_tick.hlv_timer.hlv_types.h
How is this guide?
Last updated on