Home
last modified time | relevance | path

Searched refs:negative_height (Results 1 – 1 of 1) sorted by relevance

/StarryEngine/starry_toolkit/src/util/
H A Dmod.rs40 let negative_height = -(origin_rect.height as i32); in align_rect() localVariable
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()
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()