21#if LV_DRAW_COMPLEX == 0
22#error "lv_meter: Complex drawing is required. Enable it in lv_conf.h (LV_DRAW_COMPLEX 1)"
34 lv_color_t tick_color;
39 lv_color_t tick_major_color;
40 uint16_t tick_major_nth;
41 uint16_t tick_major_length;
42 uint16_t tick_major_width;
55 LV_METER_INDICATOR_TYPE_NEEDLE_IMG,
56 LV_METER_INDICATOR_TYPE_NEEDLE_LINE,
57 LV_METER_INDICATOR_TYPE_SCALE_LINES,
58 LV_METER_INDICATOR_TYPE_ARC,
60typedef uint8_t lv_meter_indicator_type_t;
63 lv_meter_scale_t * scale;
64 lv_meter_indicator_type_t type;
86 lv_color_t color_start;
88 uint8_t local_grad : 1;
91} lv_meter_indicator_t;
107 LV_METER_DRAW_PART_ARC,
108 LV_METER_DRAW_PART_NEEDLE_LINE,
109 LV_METER_DRAW_PART_NEEDLE_IMG,
110 LV_METER_DRAW_PART_TICK,
111} lv_meter_draw_part_type_t;
134lv_meter_scale_t * lv_meter_add_scale(
lv_obj_t * obj);
145void lv_meter_set_scale_ticks(
lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t cnt, uint16_t width, uint16_t len,
159void lv_meter_set_scale_major_ticks(
lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t nth, uint16_t width,
160 uint16_t len, lv_color_t color, int16_t label_gap);
171void lv_meter_set_scale_range(
lv_obj_t * obj, lv_meter_scale_t * scale, int32_t min, int32_t max, uint32_t angle_range,
187lv_meter_indicator_t * lv_meter_add_needle_line(
lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t width,
188 lv_color_t color, int16_t r_mod);
200lv_meter_indicator_t * lv_meter_add_needle_img(
lv_obj_t * obj, lv_meter_scale_t * scale,
const void * src,
201 lv_coord_t pivot_x, lv_coord_t pivot_y);
212lv_meter_indicator_t * lv_meter_add_arc(
lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t width, lv_color_t color,
226lv_meter_indicator_t * lv_meter_add_scale_lines(
lv_obj_t * obj, lv_meter_scale_t * scale, lv_color_t color_start,
227 lv_color_t color_end,
bool local, int16_t width_mod);
239void lv_meter_set_indicator_value(
lv_obj_t * obj, lv_meter_indicator_t * indic, int32_t value);
247void lv_meter_set_indicator_start_value(
lv_obj_t * obj, lv_meter_indicator_t * indic, int32_t value);
255void lv_meter_set_indicator_end_value(
lv_obj_t * obj, lv_meter_indicator_t * indic, int32_t value);
Definition lv_obj_class.h:49