[−][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<'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 Debug for DrawArguments
[src]
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 Send for DrawArguments
impl Sync for DrawArguments
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.