Lines Matching refs:Vector2
4 base::{panel::Panel, rect::Rect, vector2::Vector2},
22 pivot_offset: Vector2, in align_rect() argument
25 PivotType::None => Vector2::new(0, 0), in align_rect()
42 PivotType::None => Vector2::new(0, 0), in align_rect()
43 PivotType::Bottom => Vector2::new(negative_width / 2, negative_height), in align_rect()
44 PivotType::BottomLeft => Vector2::new(0, negative_height), in align_rect()
45 PivotType::BottomRight => Vector2::new(negative_width, negative_height), in align_rect()
46 PivotType::Center => Vector2::new(negative_width / 2, negative_height / 2), in align_rect()
47 PivotType::Top => Vector2::new(negative_width / 2, 0), in align_rect()
48 PivotType::TopLeft => Vector2::new(0, 0), in align_rect()
49 PivotType::TopRight => Vector2::new(negative_width, 0), in align_rect()
50 PivotType::Left => Vector2::new(0, negative_height / 2), in align_rect()
51 PivotType::Right => Vector2::new(negative_width, negative_height / 2), in align_rect()