Searched refs:knob_area (Results 1 – 4 of 4) sorted by relevance
/lvgl-latest/src/widgets/ |
D | lv_slider.c | 36 static void position_knob(lv_obj_t * obj, lv_area_t * knob_area, const lv_coord_t knob_size, const … 341 lv_area_t knob_area; in draw_knob() local 349 if(is_symmetrical && slider->bar.cur_value < 0) knob_area.x1 = slider->bar.indic_area.x1; in draw_knob() 350 else knob_area.x1 = LV_SLIDER_KNOB_COORD(is_rtl, slider->bar.indic_area); in draw_knob() 354 if(is_symmetrical && slider->bar.cur_value < 0) knob_area.y1 = slider->bar.indic_area.y2; in draw_knob() 355 else knob_area.y1 = slider->bar.indic_area.y1; in draw_knob() 362 position_knob(obj, &knob_area, knob_size, is_horizontal); in draw_knob() 364 lv_area_copy(&slider->right_knob_area, &knob_area); in draw_knob() 392 knob_area.x1 = LV_SLIDER_KNOB_COORD(!is_rtl, slider->bar.indic_area); in draw_knob() 395 knob_area.y1 = slider->bar.indic_area.y2; in draw_knob() [all …]
|
D | lv_switch.c | 192 lv_area_t knob_area; in draw_main() local 193 knob_area.x1 = obj->coords.x1 + anim_value_x; in draw_main() 194 knob_area.x2 = knob_area.x1 + knob_size; in draw_main() 196 knob_area.y1 = obj->coords.y1; in draw_main() 197 knob_area.y2 = obj->coords.y2; in draw_main() 205 knob_area.x1 -= knob_left; in draw_main() 206 knob_area.x2 += knob_right; in draw_main() 207 knob_area.y1 -= knob_top; in draw_main() 208 knob_area.y2 += knob_bottom; in draw_main() 214 lv_draw_rect(draw_ctx, &knob_rect_dsc, &knob_area); in draw_main()
|
D | lv_arc.c | 44 …void get_knob_area(lv_obj_t * arc, const lv_point_t * center, lv_coord_t r, lv_area_t * knob_area); 704 lv_area_t knob_area; in lv_arc_draw() local 705 get_knob_area(obj, ¢er, arc_r, &knob_area); in lv_arc_draw() 714 part_draw_dsc.draw_area = &knob_area; in lv_arc_draw() 718 lv_draw_rect(draw_ctx, &knob_rect_dsc, &knob_area); in lv_arc_draw() 815 … void get_knob_area(lv_obj_t * obj, const lv_point_t * center, lv_coord_t r, lv_area_t * knob_area) in get_knob_area() argument 830 knob_area->x1 = center->x + knob_x - left_knob - indic_width_half; in get_knob_area() 831 knob_area->x2 = center->x + knob_x + right_knob + indic_width_half; in get_knob_area() 832 knob_area->y1 = center->y + knob_y - top_knob - indic_width_half; in get_knob_area() 833 knob_area->y2 = center->y + knob_y + bottom_knob + indic_width_half; in get_knob_area()
|
/lvgl-latest/src/extra/widgets/colorwheel/ |
D | lv_colorwheel.c | 321 lv_area_t knob_area = get_knob_area(obj); in draw_knob() local 323 lv_draw_rect(draw_ctx, &cir_dsc, &knob_area); in draw_knob() 328 lv_area_t knob_area = get_knob_area(obj); in invalidate_knob() local 330 lv_obj_invalidate_area(obj, &knob_area); in invalidate_knob() 346 lv_area_t knob_area; in get_knob_area() local 347 knob_area.x1 = obj->coords.x1 + colorwheel->knob.pos.x - r - left; in get_knob_area() 348 knob_area.y1 = obj->coords.y1 + colorwheel->knob.pos.y - r - right; in get_knob_area() 349 knob_area.x2 = obj->coords.x1 + colorwheel->knob.pos.x + r + top; in get_knob_area() 350 knob_area.y2 = obj->coords.y1 + colorwheel->knob.pos.y + r + bottom; in get_knob_area() 352 return knob_area; in get_knob_area()
|