pub struct ScreenDescriptor {
pub size_in_pixels: [u32; 2],
pub pixels_per_point: f32,
}
Expand description
Information about the screen used for rendering.
Fields§
§size_in_pixels: [u32; 2]
Size of the window in physical pixels.
pixels_per_point: f32
HiDPI scale factor (pixels per point).
Implementations§
Source§impl ScreenDescriptor
impl ScreenDescriptor
Sourcepub fn screen_size_in_points(&self) -> [f32; 2]
pub fn screen_size_in_points(&self) -> [f32; 2]
size in “logical” points
Trait Implementations§
Source§impl Clone for ScreenDescriptor
impl Clone for ScreenDescriptor
Source§fn clone(&self) -> ScreenDescriptor
fn clone(&self) -> ScreenDescriptor
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 moreimpl Copy for ScreenDescriptor
Auto Trait Implementations§
impl Freeze for ScreenDescriptor
impl RefUnwindSafe for ScreenDescriptor
impl Send for ScreenDescriptor
impl Sync for ScreenDescriptor
impl Unpin for ScreenDescriptor
impl UnwindSafe for ScreenDescriptor
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