Struct input::RenderArgs
source · pub struct RenderArgs {
pub ext_dt: f64,
pub width: f64,
pub height: f64,
pub draw_width: u32,
pub draw_height: u32,
}
Expand description
Render arguments
Fields§
§ext_dt: f64
Extrapolated time in seconds, used to do smooth animation.
width: f64
The width of rendered area in points.
height: f64
The height of rendered area in points.
draw_width: u32
The width of rendered area in pixels.
draw_height: u32
The height of rendered area in pixels.
Implementations§
Trait Implementations§
source§impl Clone for RenderArgs
impl Clone for RenderArgs
source§fn clone(&self) -> RenderArgs
fn clone(&self) -> RenderArgs
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RenderArgs
impl Debug for RenderArgs
source§impl<'de> Deserialize<'de> for RenderArgs
impl<'de> Deserialize<'de> for RenderArgs
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<RenderArgs> for Event
impl From<RenderArgs> for Event
source§fn from(args: RenderArgs) -> Self
fn from(args: RenderArgs) -> Self
Converts to this type from the input type.
source§impl From<RenderArgs> for Loop
impl From<RenderArgs> for Loop
source§fn from(args: RenderArgs) -> Self
fn from(args: RenderArgs) -> Self
Converts to this type from the input type.