pub struct CanvasSize {
pub width: u32,
pub height: u32,
}Expand description
The size, in device pixels, of the picture a content tree is drawn on:
normalized (1, 1) is (width, height), and lengths are fractions of
the shorter side.
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
Implementations§
Trait Implementations§
Source§impl Clone for CanvasSize
impl Clone for CanvasSize
impl Copy for CanvasSize
Source§impl Debug for CanvasSize
impl Debug for CanvasSize
impl Eq for CanvasSize
Source§impl Hash for CanvasSize
impl Hash for CanvasSize
Source§impl PartialEq for CanvasSize
impl PartialEq for CanvasSize
impl StructuralPartialEq for CanvasSize
Auto Trait Implementations§
impl Freeze for CanvasSize
impl RefUnwindSafe for CanvasSize
impl Send for CanvasSize
impl Sync for CanvasSize
impl Unpin for CanvasSize
impl UnsafeUnpin for CanvasSize
impl UnwindSafe for CanvasSize
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