Searched refs:knob_size (Results 1 – 2 of 2) 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 … 298 …lv_coord_t knob_size = LV_MIN(lv_obj_get_width(obj) + 2 * trans_w, lv_obj_get_height(obj) + 2 * tr… in lv_slider_event() local 299 knob_size = (knob_size * zoom) >> 8; in lv_slider_event() 300 knob_size += LV_MAX(LV_MAX(knob_left, knob_right), LV_MAX(knob_bottom, knob_top)); in lv_slider_event() 301 knob_size += 2; /*For rounding error*/ in lv_slider_event() 302 knob_size += lv_obj_calculate_ext_draw_size(obj, LV_PART_KNOB); in lv_slider_event() 306 *s = LV_MAX(*s, knob_size); in lv_slider_event() 342 lv_coord_t knob_size; in draw_knob() local 348 knob_size = lv_obj_get_height(obj); in draw_knob() 353 knob_size = lv_obj_get_width(obj); in draw_knob() [all …]
|
D | lv_switch.c | 129 lv_coord_t knob_size = LV_MAX4(knob_left, knob_right, knob_bottom, knob_top); in lv_switch_event() local 130 knob_size += _LV_SWITCH_KNOB_EXT_AREA_CORRECTION; in lv_switch_event() 131 knob_size += lv_obj_calculate_ext_draw_size(obj, LV_PART_KNOB); in lv_switch_event() 134 *s = LV_MAX(*s, knob_size); in lv_switch_event() 175 lv_coord_t knob_size = lv_obj_get_height(obj); in draw_main() local 176 lv_coord_t anim_length = lv_area_get_width(&obj->coords) - knob_size; in draw_main() 194 knob_area.x2 = knob_area.x1 + knob_size; in draw_main()
|