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 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 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<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 PartialEq for ResizeArgs
impl PartialEq for ResizeArgs
Source§impl PartialOrd for ResizeArgs
impl PartialOrd for ResizeArgs
Source§impl Serialize for ResizeArgs
impl Serialize for ResizeArgs
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