[][src]Struct input::RenderArgs

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

Render arguments.

Fields

ext_dt: f64

Extrapolated time in seconds, used to do smooth animation.

window_size: [f64; 2]

The width and height of rendered area in points.

draw_size: [u32; 2]

The width and height of rendered area in pixels.

Implementations

impl RenderArgs[src]

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

Returns viewport information filling entire render area.

Trait Implementations

impl Clone for RenderArgs[src]

impl Copy for RenderArgs[src]

impl Debug for RenderArgs[src]

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

impl From<RenderArgs> for Loop[src]

impl From<RenderArgs> for Event[src]

impl PartialEq<RenderArgs> for RenderArgs[src]

impl PartialOrd<RenderArgs> for RenderArgs[src]

impl Serialize for RenderArgs[src]

impl StructuralPartialEq for RenderArgs[src]

Auto Trait Implementations

impl RefUnwindSafe for RenderArgs

impl Send for RenderArgs

impl Sync for RenderArgs

impl Unpin for RenderArgs

impl UnwindSafe for RenderArgs

Blanket Implementations

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

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.