Struct piston_window::RenderArgs
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
impl RenderArgs
impl RenderArgs
Trait Implementations
impl Clone for RenderArgs
impl Clone for RenderArgs
fn clone(&self) -> RenderArgs
fn clone(&self) -> RenderArgs
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Debug for RenderArgs
impl Debug for RenderArgs
impl<'de> Deserialize<'de> for RenderArgs
impl<'de> Deserialize<'de> for RenderArgs
fn deserialize<__D>(
__deserializer: __D
) -> Result<RenderArgs, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<RenderArgs, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl From<RenderArgs> for Event
impl From<RenderArgs> for Event
fn from(args: RenderArgs) -> Event
fn from(args: RenderArgs) -> Event
Converts to this type from the input type.
impl From<RenderArgs> for Loop
impl From<RenderArgs> for Loop
fn from(args: RenderArgs) -> Loop
fn from(args: RenderArgs) -> Loop
Converts to this type from the input type.
impl PartialEq<RenderArgs> for RenderArgs
impl PartialEq<RenderArgs> for RenderArgs
fn eq(&self, other: &RenderArgs) -> bool
fn eq(&self, other: &RenderArgs) -> bool
impl PartialOrd<RenderArgs> for RenderArgs
impl PartialOrd<RenderArgs> for RenderArgs
fn partial_cmp(&self, other: &RenderArgs) -> Option<Ordering>
fn partial_cmp(&self, other: &RenderArgs) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Serialize for RenderArgs
impl Serialize for RenderArgs
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for RenderArgs
impl StructuralPartialEq for RenderArgs
Auto Trait Implementations
impl RefUnwindSafe for RenderArgs
impl Send for RenderArgs
impl Sync for RenderArgs
impl Unpin for RenderArgs
impl UnwindSafe for RenderArgs
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more