Struct druid_shell::Monitor [−][src]
pub struct Monitor { /* fields omitted */ }
Expand description
Monitor struct containing data about a monitor on the system
Use Screen::get_monitors() to return a Vec
Implementations
Returns true if the monitor is the primary monitor. The primary monitor has its origin at (0, 0) in virtual screen coordinates.
Returns the monitor rectangle in virtual screen coordinates.
Returns the monitor working rectangle in virtual screen coordinates. The working rectangle excludes certain things like the dock and menubar on mac, and the taskbar on windows.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Monitor
impl UnwindSafe for Monitor
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn round_from(x: T) -> T
pub fn round_from(x: T) -> T
Performs the conversion.
pub fn round_into(self) -> U
pub fn round_into(self) -> U
Performs the conversion.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more