[][src]Struct piston_window::ResizeArgs

pub struct ResizeArgs {
    pub window_size: [f64; 2],
    pub draw_size: [u32; 2],
}

Resize arguments.

Fields

window_size: [f64; 2]

The width and height of rendered area in points.

draw_size: [u32; 2]

The width of rendered area in pixels.

Methods

impl ResizeArgs[src]

pub fn viewport(&self) -> Viewport[src]

Returns viewport information filling entire render area.

Trait Implementations

impl PartialOrd<ResizeArgs> for ResizeArgs[src]

impl StructuralPartialEq for ResizeArgs[src]

impl Clone for ResizeArgs[src]

impl<'de> Deserialize<'de> for ResizeArgs[src]

impl PartialEq<ResizeArgs> for ResizeArgs[src]

impl Copy for ResizeArgs[src]

impl Serialize for ResizeArgs[src]

impl Debug for ResizeArgs[src]

Auto Trait Implementations

impl Send for ResizeArgs

impl Sync for ResizeArgs

impl Unpin for ResizeArgs

impl UnwindSafe for ResizeArgs

impl RefUnwindSafe for ResizeArgs

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> SetParameter for T[src]