[][src]Struct resvg::ScreenSize

pub struct ScreenSize {
    pub width: u32,
    pub height: u32,
}

A 2D screen size representation.

Fields

Methods

impl ScreenSize
[src]

Creates a new ScreenSize from values.

Scales current size to specified size.

Expands current size to specified size.

Converts the current ScreenSize to Size.

Trait Implementations

impl PartialEq<ScreenSize> for ScreenSize
[src]

impl From<(u32, u32)> for ScreenSize
[src]

impl Clone for ScreenSize
[src]

Performs copy-assignment from source. Read more

impl Copy for ScreenSize
[src]

impl Display for ScreenSize
[src]

impl Debug for ScreenSize
[src]

Auto Trait Implementations

impl Send for ScreenSize

impl Sync for ScreenSize

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]