Struct piston_window::ResizeArgs[][src]

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

impl Copy for ResizeArgs[src]

impl Debug for ResizeArgs[src]

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

impl PartialEq<ResizeArgs> for ResizeArgs[src]

impl PartialOrd<ResizeArgs> for ResizeArgs[src]

impl Serialize for ResizeArgs[src]

impl StructuralPartialEq for ResizeArgs[src]

Auto Trait Implementations

impl RefUnwindSafe for ResizeArgs

impl Send for ResizeArgs

impl Sync for ResizeArgs

impl Unpin for ResizeArgs

impl UnwindSafe for ResizeArgs

Blanket Implementations

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

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

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

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

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

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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.