Lines Matching refs:rect
19 use super::{event::Event, rect::Rect};
85 rect: Cell<Rect>, field
103 pub fn new(rect: Rect, title: &str, color: Color) -> Arc<Panel> { in new()
105 Window::new(rect.x, rect.y, rect.width, rect.height, title, color), in new()
106 rect, in new()
110 pub fn from_window(window: Window, rect: Rect) -> Arc<Panel> { in from_window()
114 rect: Cell::new(rect), in from_window()
161 pub fn rect(&self) -> Rect { in rect() method
162 self.rect.get() in rect()
238 Self::draw_rect_wireframe(renderer, widget.rect().get(), Color::rgb(0, 0, 0)); in draw_widget()
252 Self::draw_rect_wireframe(renderer, child.rect().get(), Color::rgb(0, 0, 0)); in draw_widget()
258 fn draw_rect_wireframe(renderer: &mut dyn Renderer, rect: Rect, color: Color) { in draw_rect_wireframe()
261 [rect.top_left_pos().x, rect.top_left_pos().y], in draw_rect_wireframe()
262 [rect.top_right_pos().x, rect.top_right_pos().y], in draw_rect_wireframe()
263 [rect.bottom_right_pos().x, rect.bottom_right_pos().y], in draw_rect_wireframe()
264 [rect.bottom_left_pos().x, rect.bottom_left_pos().y], in draw_rect_wireframe()
265 [rect.top_left_pos().x, rect.top_left_pos().y], in draw_rect_wireframe()