[][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]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<MonitorIdent> for MonitorIdent[src]

impl Eq for MonitorIdent[src]

impl Debug for MonitorIdent[src]

impl Serialize for MonitorIdent[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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

impl<T> Any for T where
    T: Any

impl<T> Erased for T

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

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.