lv_scale_private.h
API reference for lv_scale_private.h
See Also: Public APIThis is the private implementation. See the public header for the stable interface.lv_scale.h
Summary
Structs
struct
_lv_scale_section_t
| Member | Type | Description |
|---|---|---|
main_style | const lv_style_t * | Style to use for MAIN part(s) of scale when it falls within this section's range |
indicator_style | const lv_style_t * | Style to use for INDICATOR part(s) of scale when it falls within this section's range |
items_style | const lv_style_t * | Style to use for ITEMS part(s) of scale when it falls within this section's range |
range_min | int32_t | Scale parts with value >= this value will be drawn using applicable style. |
range_max | int32_t | Scale parts with value <= this value will be drawn using applicable style. |
first_tick_idx_in_section | uint32_t | Internal (set during drawing): Tick index of first tick that falls within this section; LV_SCALE_TICK_IDX_DEFAULT_ID if section contains no ticks. |
last_tick_idx_in_section | uint32_t | Internal (set during drawing): Tick index of last tick that falls within this section; LV_SCALE_TICK_IDX_DEFAULT_ID if section contains no ticks. |
first_tick_in_section_width | int32_t | Internal (set during drawing) |
last_tick_in_section_width | int32_t | Internal (set during drawing) |
first_tick_in_section | lv_point_t | Internal (set during drawing) |
last_tick_in_section | lv_point_t | Internal (set during drawing) |
first_tick_idx_is_major | uint32_t | Internal (set during drawing): true if first_tick_idx_in_section represents a major tick. |
last_tick_idx_is_major | uint32_t | Internal (set during drawing): true if last_tick_idx_in_section represents a major tick. |
struct
lv_scale_needle_t
| Member | Type | Description |
|---|---|---|
obj | lv_obj_t * | |
value | int32_t | |
length | int32_t |
struct
_lv_scale_t
| Member | Type | Description |
|---|---|---|
obj | lv_obj_t | Base Widget part of Scale |
section_ll | lv_ll_t | Linked list for the sections (stores lv_scale_section_t) |
txt_src | const char ** | Optional list of text strings for major ticks when custom labels are provided. |
mode | lv_scale_mode_t | Orientation and layout of scale. |
range_min | int32_t | Scale's minimum value |
range_max | int32_t | Scale's maximum value |
total_tick_count | uint32_t | Total number of ticks (major and minor) |
major_tick_every | uint32_t | Frequency of major ticks to minor ticks |
label_enabled | uint32_t | Draw labels for major ticks? |
post_draw | uint32_t | false: drawing occurs during LV_EVENT_DRAW_MAIN; true : drawing occurs during LV_EVENT_DRAW_POST. |
draw_ticks_on_top | uint32_t | Draw ticks on top of main line? |
angle_range | uint32_t | Degrees between low end and high end of scale |
rotation | int32_t | Clockwise angular offset from 3-o'clock position of low end of scale |
custom_label_cnt | int32_t | Number of custom labels provided in txt_src |
last_tick_width | int32_t | Width of last tick in pixels |
first_tick_width | int32_t | Width of first tick in pixels |
needles | lv_array_t | Needle list of this scale |
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_display.hlv_draw.hlv_draw_arc.hlv_draw_blur.hlv_draw_buf.hlv_draw_image.hlv_draw_label.hlv_draw_line.hlv_draw_rect.hlv_draw_triangle.hlv_event.hlv_ext_data.hlv_flex.hlv_font.hlv_fs.hlv_grad.hlv_grid.hlv_group.hlv_image.hlv_image_decoder.hlv_image_dsc.hlv_indev.hlv_layout.hlv_line.hlv_ll.hlv_log.hlv_math.hlv_matrix.hlv_mem.hlv_obj.hlv_obj_class.hlv_obj_draw.hlv_obj_event.hlv_obj_pos.hlv_obj_property.hlv_obj_property_names.hlv_obj_scroll.hlv_obj_style.hlv_obj_style_gen.hlv_obj_tree.hlv_observer.hlv_palette.hlv_profiler.hlv_profiler_builtin.hlv_sprintf.hlv_string.hlv_style.hlv_style_gen.hlv_style_properties.hlv_symbol_def.hlv_text.hlv_tick.hlv_timer.hlv_types.h
How is this guide?
Last updated on