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
Last updated on