[][src]Struct piston_window::ResizeArgs

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

Resize arguments.


window_size: [f64; 2]

The width and height of rendered area in points.

draw_size: [u32; 2]

The width of rendered area in pixels.


impl ResizeArgs[src]

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

Returns viewport information filling entire render area.

Trait Implementations

impl Copy for ResizeArgs[src]

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<'de> Deserialize<'de> for ResizeArgs[src]

impl PartialOrd<ResizeArgs> for ResizeArgs[src]

impl Debug for ResizeArgs[src]

impl Serialize for ResizeArgs[src]

Auto Trait Implementations

impl Unpin for ResizeArgs

impl Send for ResizeArgs

impl Sync for ResizeArgs

impl UnwindSafe for ResizeArgs

impl RefUnwindSafe for ResizeArgs

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

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

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

impl<T> SetParameter for T[src]

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

Sets value as a parameter of self.

impl<T> Erased for T[src]