pub struct HostSurfaceSize {
pub width: f32,
pub height: f32,
pub scale: f32,
}Expand description
The size of the host surface, in logical pixels, with the scale the host renders it at.
Fields§
§width: f32Logical width.
height: f32Logical height.
scale: f32Physical pixels per logical pixel.
Implementations§
Trait Implementations§
Source§impl Clone for HostSurfaceSize
impl Clone for HostSurfaceSize
Source§fn clone(&self) -> HostSurfaceSize
fn clone(&self) -> HostSurfaceSize
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HostSurfaceSize
Source§impl Debug for HostSurfaceSize
impl Debug for HostSurfaceSize
Source§impl Default for HostSurfaceSize
impl Default for HostSurfaceSize
Source§impl PartialEq for HostSurfaceSize
impl PartialEq for HostSurfaceSize
impl StructuralPartialEq for HostSurfaceSize
Auto Trait Implementations§
impl Freeze for HostSurfaceSize
impl RefUnwindSafe for HostSurfaceSize
impl Send for HostSurfaceSize
impl Sync for HostSurfaceSize
impl Unpin for HostSurfaceSize
impl UnsafeUnpin for HostSurfaceSize
impl UnwindSafe for HostSurfaceSize
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