Lines Matching refs:rect
11 base::{panel::Panel, rect::Rect, vector2::Vector2},
33 rect: Cell<Rect>, field
54 rect: Cell::new(Rect::default()), in new()
109 max_size = u32::max(max_size, element.rect().get().height); in arrange_elements()
112 max_size = u32::max(max_size, element.rect().get().width); in arrange_elements()
130 y_offset as i32 + (max_size - element.rect().get().height) as i32 / 2, in arrange_elements()
134 y_offset as i32 + (max_size - element.rect().get().height) as i32, in arrange_elements()
144 x_offset as i32 + (max_size - element.rect().get().width) as i32 / 2, in arrange_elements()
148 x_offset as i32 + (max_size - element.rect().get().width) as i32, in arrange_elements()
161 x_offset += element.rect().get().width + self.space.get(); in arrange_elements()
164 y_offset += element.rect().get().height + self.space.get(); in arrange_elements()
184 fn rect(&self) -> &Cell<Rect> { in rect() method
185 &self.rect in rect()