[][src]Struct romy::DrawArguments

pub struct DrawArguments { /* fields omitted */ }

Arguments passed for each draw of the game

Methods

impl DrawArguments[src]

pub fn new(width: i32, height: i32, step_offset: f32) -> DrawArguments[src]

pub fn width(&self) -> i32[src]

The horizontal width in pixels of the display area being used by Romy

pub fn height(&self) -> i32[src]

The vertical height in pixels of the display area being used by Romy

pub fn step_offset(&self) -> f32[src]

The fraction of time since the last step call in a range of 0.0 - 1.0. 0.0 no time has passed, 0.5 = half way to the next step, 0.99 = almost all the way to the next step.

Trait Implementations

impl Debug for DrawArguments[src]

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

impl Serialize for DrawArguments[src]

Auto Trait Implementations

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: Deserialize<'de>, 
[src]

impl<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 

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

impl<S> FromSample<S> for S

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T, U> ToSample<U> for T where
    U: FromSample<T>, 

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.