pub struct LogicalDisplayState {
pub is_enabled: bool,
pub orientation: Orientation,
pub logical_size: Option<Size>,
pub mode_size: Option<Size>,
pub scale_ratio_milli: Option<u32>,
pub pixel_format: Option<PixelFormat>,
pub mode_position: Option<Point>,
pub logical_position: Option<Point>,
}Expand description
The current logical display state.
Fields§
§is_enabled: boolWhether the logical display is enabled.
orientation: OrientationCurrent display orientation.
logical_size: Option<Size>Current logical size in pixels when known.
mode_size: Option<Size>Current output mode size in pixels when known.
scale_ratio_milli: Option<u32>Current display scale ratio in milli-units where 1000 == 1.0x.
pixel_format: Option<PixelFormat>Current pixel format when known.
mode_position: Option<Point>Current top-left position in physical pixels when known.
logical_position: Option<Point>Current top-left position in logical pixels when known.
Trait Implementations§
Source§impl Clone for LogicalDisplayState
impl Clone for LogicalDisplayState
Source§fn clone(&self) -> LogicalDisplayState
fn clone(&self) -> LogicalDisplayState
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 LogicalDisplayState
impl Debug for LogicalDisplayState
Source§impl Default for LogicalDisplayState
impl Default for LogicalDisplayState
Source§fn default() -> LogicalDisplayState
fn default() -> LogicalDisplayState
Returns the “default value” for a type. Read more
Source§impl Ord for LogicalDisplayState
impl Ord for LogicalDisplayState
Source§fn cmp(&self, other: &LogicalDisplayState) -> Ordering
fn cmp(&self, other: &LogicalDisplayState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LogicalDisplayState
impl PartialEq for LogicalDisplayState
Source§impl PartialOrd for LogicalDisplayState
impl PartialOrd for LogicalDisplayState
impl Eq for LogicalDisplayState
impl StructuralPartialEq for LogicalDisplayState
Auto Trait Implementations§
impl Freeze for LogicalDisplayState
impl RefUnwindSafe for LogicalDisplayState
impl Send for LogicalDisplayState
impl Sync for LogicalDisplayState
impl Unpin for LogicalDisplayState
impl UnsafeUnpin for LogicalDisplayState
impl UnwindSafe for LogicalDisplayState
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