Struct piston_window::ResizeArgs
[−]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
impl ResizeArgs
impl ResizeArgs
Trait Implementations
impl Clone for ResizeArgs
impl Clone for ResizeArgs
fn clone(&self) -> ResizeArgs
fn clone(&self) -> ResizeArgs
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 ResizeArgs
impl Debug for ResizeArgs
impl<'de> Deserialize<'de> for ResizeArgs
impl<'de> Deserialize<'de> for ResizeArgs
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
impl PartialEq<ResizeArgs> for ResizeArgs
impl PartialEq<ResizeArgs> for ResizeArgs
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 ==
. Read more
fn ne(&self, other: &ResizeArgs) -> bool
fn ne(&self, other: &ResizeArgs) -> bool
This method tests for !=
.
impl PartialOrd<ResizeArgs> for ResizeArgs
impl PartialOrd<ResizeArgs> for ResizeArgs
fn partial_cmp(&self, other: &ResizeArgs) -> Option<Ordering>
fn partial_cmp(&self, other: &ResizeArgs) -> 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 ResizeArgs
impl Serialize for ResizeArgs
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 RefUnwindSafe for ResizeArgs
impl Send for ResizeArgs
impl Sync for ResizeArgs
impl Unpin for ResizeArgs
impl UnwindSafe for ResizeArgs
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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