[−][src]Struct romy::DrawArguments
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]
fn deserialize<__D>(
__deserializer: __D
) -> Result<DrawArguments, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<DrawArguments, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Serialize for DrawArguments
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Auto Trait Implementations
impl RefUnwindSafe for DrawArguments
impl Send for DrawArguments
impl Sync for DrawArguments
impl Unpin for DrawArguments
impl UnwindSafe for DrawArguments
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<S, T> Duplex<S> for T where
T: FromSample<S> + ToSample<S>,
T: FromSample<S> + ToSample<S>,
impl<T> From<T> for T
[src]
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> ToSample<U> for T where
U: FromSample<T>,
U: FromSample<T>,
fn to_sample_(self) -> U
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,