[][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 Clone for ResizeArgs[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<ResizeArgs> for ResizeArgs[src]

impl Copy for ResizeArgs[src]

impl Debug for ResizeArgs[src]

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

impl PartialOrd<ResizeArgs> for ResizeArgs[src]

impl Serialize for ResizeArgs[src]

Auto Trait Implementations

impl Send for ResizeArgs

impl Sync for ResizeArgs

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

impl<T> Erased for T[src]