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