Struct piston_window::prelude::input::ResizeArgs
source · pub struct ResizeArgs {
pub window_size: [f64; 2],
pub draw_size: [u32; 2],
}
Expand description
Resize arguments.
Fields§
§window_size: [f64; 2]
The width and height of rendered area in points.
draw_size: [u32; 2]
The width of rendered area in pixels.
Implementations§
Trait Implementations§
source§impl Clone for ResizeArgs
impl Clone for ResizeArgs
source§fn clone(&self) -> ResizeArgs
fn clone(&self) -> ResizeArgs
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 ResizeArgs
impl Debug for ResizeArgs
source§impl<'de> Deserialize<'de> for ResizeArgs
impl<'de> Deserialize<'de> for ResizeArgs
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ResizeArgs, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ResizeArgs, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ResizeArgs
impl PartialEq for ResizeArgs
source§fn eq(&self, other: &ResizeArgs) -> bool
fn eq(&self, other: &ResizeArgs) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ResizeArgs
impl PartialOrd for ResizeArgs
source§fn partial_cmp(&self, other: &ResizeArgs) -> Option<Ordering>
fn partial_cmp(&self, other: &ResizeArgs) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl Serialize for ResizeArgs
impl Serialize for ResizeArgs
source§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 ResizeArgs
impl StructuralPartialEq for ResizeArgs
Auto Trait Implementations§
impl Freeze for ResizeArgs
impl RefUnwindSafe for ResizeArgs
impl Send for ResizeArgs
impl Sync for ResizeArgs
impl Unpin for ResizeArgs
impl UnwindSafe for ResizeArgs
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