Lines Matching refs:rect
10 use crate::base::rect::Rect;
73 let rect = original_rect.intersection(&display.screen_rect()); in redraw_all() localVariable
74 if !rect.is_empty() { in redraw_all()
89 window.draw(display, &rect); in redraw_all()
94 let cursor_intersect = rect.intersection(&cursor_rect); in redraw_all()
140 pub fn request_redraw(&self, rect: Rect) { in request_redraw()
144 for rect in self.redraws.borrow_mut().iter_mut() { in request_redraw()
145 let container = rect.container(&rect); in request_redraw()
146 if container.area() <= rect.area() + rect.area() { in request_redraw()
147 *rect = container; in request_redraw()
153 self.redraws.borrow_mut().push(rect); in request_redraw()