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

impl Debug for DrawArguments[src]

impl Serialize for DrawArguments[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

impl<T> SetParameter for T

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

Sets value as a parameter of self.