pub struct UiRect {
pub anchor: Vec2,
pub pivot: Vec2,
pub offset: Vec2,
pub size: Vec2,
}Expand description
A sized UI rectangle with normalized anchor and pivot coordinates.
Fields§
§anchor: Vec2Point on the viewport: (0,0) is top left, (1,1) bottom right.
pivot: Vec2Point on this rectangle that sits at the anchor.
offset: Vec2Offset from the anchor in UI units.
size: Vec2Rectangle dimensions in UI units.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UiRect
impl RefUnwindSafe for UiRect
impl Send for UiRect
impl Sync for UiRect
impl Unpin for UiRect
impl UnsafeUnpin for UiRect
impl UnwindSafe for UiRect
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more