Struct piston_window::RenderArgs[][src]

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

Render arguments.


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.


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 Event[src]

impl From<RenderArgs> for Loop[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

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.