[][src]Struct amethyst_window::MonitorIdent

pub struct MonitorIdent(_, _);

Identifier for a given monitor. Because there is no cross platform method to actually uniquely identify monitors, this tuple wraps two identifiers of a monitor which should prove sufficient on any given system: The index of the monitor is the retrieved Display array, and the name of the given monitor.

Methods

impl MonitorIdent[src]

A semi-stable serializable identifier for a monitor. Useful for keeping fullscreen configuration persistent.

pub fn from_primary(monitors: &impl MonitorsAccess) -> Self[src]

Get the identifier for current primary monitor.

pub fn from_monitor_id(
    monitors: &impl MonitorsAccess,
    monitor_id: MonitorId
) -> Option<Self>
[src]

Get the identifier for specific monitor id.

pub fn monitor_id(&self, monitors: &impl MonitorsAccess) -> MonitorId[src]

Select a monitor that matches this identifier most closely.

Trait Implementations

impl Clone for MonitorIdent[src]

impl Debug for MonitorIdent[src]

impl<'de> Deserialize<'de> for MonitorIdent[src]

impl Eq for MonitorIdent[src]

impl PartialEq<MonitorIdent> for MonitorIdent[src]

impl Serialize for MonitorIdent[src]

impl StructuralEq for MonitorIdent[src]

impl StructuralPartialEq for MonitorIdent[src]

Auto Trait Implementations

impl RefUnwindSafe for MonitorIdent

impl Send for MonitorIdent

impl Sync for MonitorIdent

impl Unpin for MonitorIdent

impl UnwindSafe for MonitorIdent

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> Config for T where
    T: Deserialize<'a> + Serialize
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 

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

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

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,