pub struct CanvasRect {
pub left: f32,
pub top: f32,
pub right: f32,
pub bottom: f32,
}Expand description
A rectangle as fractions of the canvas, y down.
Fields§
§left: f32Left edge, a fraction of the canvas width.
top: f32Top edge, a fraction of the canvas height.
right: f32Right edge, a fraction of the canvas width.
bottom: f32Bottom edge, a fraction of the canvas height.
Trait Implementations§
Source§impl Clone for CanvasRect
impl Clone for CanvasRect
impl Copy for CanvasRect
Source§impl Debug for CanvasRect
impl Debug for CanvasRect
Source§impl PartialEq for CanvasRect
impl PartialEq for CanvasRect
impl StructuralPartialEq for CanvasRect
Auto Trait Implementations§
impl Freeze for CanvasRect
impl RefUnwindSafe for CanvasRect
impl Send for CanvasRect
impl Sync for CanvasRect
impl Unpin for CanvasRect
impl UnsafeUnpin for CanvasRect
impl UnwindSafe for CanvasRect
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more