pub struct DisplayInfo {
pub width: u16,
pub height: u16,
pub scale: Fixed,
pub format: ColorFormat,
}Expand description
Display information reported by a backend. width / height are in
logical pixels — the units user code writes Dimension::px(…) in.
Physical framebuffer size is Surface::physical_size().
Fields§
§width: u16§height: u16§scale: Fixed§format: ColorFormatImplementations§
Auto Trait Implementations§
impl Freeze for DisplayInfo
impl RefUnwindSafe for DisplayInfo
impl Send for DisplayInfo
impl Sync for DisplayInfo
impl Unpin for DisplayInfo
impl UnsafeUnpin for DisplayInfo
impl UnwindSafe for DisplayInfo
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