[][src]Struct druid::Monitor

pub struct Monitor { /* fields omitted */ }

Monitor struct containing data about a monitor on the system

Use Screen::get_monitors() to return a Vec of all the monitors on the system

Implementations

impl Monitor[src]

pub fn is_primary(&self) -> bool[src]

Returns true if the monitor is the primary monitor. The primary monitor has its origin at (0, 0) in virtual screen coordinates.

pub fn virtual_rect(&self) -> Rect[src]

Returns the monitor rectangle in virtual screen coordinates.

pub fn virtual_work_rect(&self) -> Rect[src]

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

impl Clone for Monitor[src]

impl Debug for Monitor[src]

impl Display for Monitor[src]

impl PartialEq<Monitor> for Monitor[src]

impl StructuralPartialEq for Monitor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AnyEq for T where
    T: PartialEq<T> + Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> RoundFrom<T> for T

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.