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
pub fn clone(&self) -> RenderArgs
pub 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 more
impl Debug for RenderArgs
impl Debug for RenderArgs
impl<'de> Deserialize<'de> for RenderArgs
impl<'de> Deserialize<'de> for RenderArgs
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<RenderArgs, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub 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 Loop
impl From<RenderArgs> for Loop
pub fn from(args: RenderArgs) -> Loop
pub fn from(args: RenderArgs) -> Loop
Performs the conversion.
impl From<RenderArgs> for Event
impl From<RenderArgs> for Event
pub fn from(args: RenderArgs) -> Event
pub fn from(args: RenderArgs) -> Event
Performs the conversion.
impl PartialEq<RenderArgs> for RenderArgs
impl PartialEq<RenderArgs> for RenderArgs
pub fn eq(&self, other: &RenderArgs) -> bool
pub fn eq(&self, other: &RenderArgs) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &RenderArgs) -> bool
pub fn ne(&self, other: &RenderArgs) -> bool
This method tests for !=
.
impl PartialOrd<RenderArgs> for RenderArgs
impl PartialOrd<RenderArgs> for RenderArgs
pub fn partial_cmp(&self, other: &RenderArgs) -> Option<Ordering>
pub fn partial_cmp(&self, other: &RenderArgs) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
impl Serialize for RenderArgs
impl Serialize for RenderArgs
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more