[−][src]Struct romy_core::DrawArguments
Arguments passed for each draw of the game
Methods
impl DrawArguments
[src]
pub fn new(width: i32, height: i32, step_offset: f32) -> Self
[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<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for DrawArguments
[src]
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<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,