pub struct SurfaceSize {
pub width: u32,
pub height: u32,
pub scale: f32,
}Expand description
How large a GpuSurface is, in the physical pixels a GPU surface on it
should be configured with, and the scale they are at (pixels to a
point).
Fields§
§width: u32§height: u32§scale: f32Implementations§
Trait Implementations§
Source§impl Clone for SurfaceSize
impl Clone for SurfaceSize
impl Copy for SurfaceSize
Source§impl Debug for SurfaceSize
impl Debug for SurfaceSize
Source§impl Default for SurfaceSize
impl Default for SurfaceSize
Source§impl PartialEq for SurfaceSize
impl PartialEq for SurfaceSize
impl StructuralPartialEq for SurfaceSize
Auto Trait Implementations§
impl Freeze for SurfaceSize
impl RefUnwindSafe for SurfaceSize
impl Send for SurfaceSize
impl Sync for SurfaceSize
impl Unpin for SurfaceSize
impl UnsafeUnpin for SurfaceSize
impl UnwindSafe for SurfaceSize
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