Struct dioxus_mobile::wry::application::monitor::MonitorHandle [−]
pub struct MonitorHandle { /* fields omitted */ }
Expand description
Handle to a monitor.
Allows you to retrieve information about a given monitor and can be used in Window
creation.
Implementations
impl MonitorHandle
impl MonitorHandle
Returns a human-readable name of the monitor.
Returns None
if the monitor doesn’t exist anymore.
pub fn size(&self) -> PhysicalSize<u32>
pub fn size(&self) -> PhysicalSize<u32>
Returns the monitor’s resolution.
pub fn position(&self) -> PhysicalPosition<i32>
pub fn position(&self) -> PhysicalPosition<i32>
Returns the top-left corner position of the monitor relative to the larger full screen area.
pub fn scale_factor(&self) -> f64
pub fn scale_factor(&self) -> f64
Returns the scale factor that can be used to map logical pixels to physical pixels, and vice versa.
See the dpi
module for more information.
Platform-specific
- Android: Always returns 1.0.
pub fn video_modes(&self) -> impl Iterator<Item = VideoMode>
pub fn video_modes(&self) -> impl Iterator<Item = VideoMode>
Returns all fullscreen video modes supported by this monitor.
Trait Implementations
impl Clone for MonitorHandle
impl Clone for MonitorHandle
pub fn clone(&self) -> MonitorHandle
pub fn clone(&self) -> MonitorHandle
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for MonitorHandle
impl Debug for MonitorHandle
impl Ord for MonitorHandle
impl Ord for MonitorHandle
pub fn cmp(&self, other: &MonitorHandle) -> Ordering
pub fn cmp(&self, other: &MonitorHandle) -> Ordering
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
impl PartialEq<MonitorHandle> for MonitorHandle
impl PartialEq<MonitorHandle> for MonitorHandle
pub fn eq(&self, other: &MonitorHandle) -> bool
pub fn eq(&self, other: &MonitorHandle) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &MonitorHandle) -> bool
pub fn ne(&self, other: &MonitorHandle) -> bool
This method tests for !=
.
impl PartialOrd<MonitorHandle> for MonitorHandle
impl PartialOrd<MonitorHandle> for MonitorHandle
pub fn partial_cmp(&self, other: &MonitorHandle) -> Option<Ordering>
pub fn partial_cmp(&self, other: &MonitorHandle) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl Eq for MonitorHandle
impl StructuralEq for MonitorHandle
impl StructuralPartialEq for MonitorHandle
Auto Trait Implementations
impl RefUnwindSafe for MonitorHandle
impl Send for MonitorHandle
impl Sync for MonitorHandle
impl Unpin for MonitorHandle
impl UnwindSafe for MonitorHandle
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.