pub struct RenderArgs {
pub ext_dt: f64,
pub window_size: [f64; 2],
pub draw_size: [u32; 2],
}
Expand description
Render arguments.
Fields§
§ext_dt: f64
Extrapolated time in seconds, used to do smooth animation.
window_size: [f64; 2]
The width and height of rendered area in points.
draw_size: [u32; 2]
The width and 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 duplicate 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.
Source§impl PartialEq for RenderArgs
impl PartialEq for RenderArgs
Source§impl PartialOrd for RenderArgs
impl PartialOrd for RenderArgs
Source§impl Serialize for RenderArgs
impl Serialize for RenderArgs
impl Copy for RenderArgs
impl StructuralPartialEq for RenderArgs
Auto Trait Implementations§
impl Freeze for RenderArgs
impl RefUnwindSafe for RenderArgs
impl Send for RenderArgs
impl Sync for RenderArgs
impl Unpin for RenderArgs
impl UnwindSafe for RenderArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more