[][src]Struct glutin::WindowId

pub struct WindowId(_);

Identifier of a window. Unique for each window.

Can be obtained with window.id().

Whenever you receive an event specific to a window, this event contains a WindowId which you can then compare to the ids of your windows.


impl WindowId[src]

pub unsafe fn dummy() -> WindowId[src]

Returns a dummy WindowId, useful for unit testing. The only guarantee made about the return value of this function is that it will always be equal to itself and to future values returned by this function. No other guarantees are made. This may be equal to a real WindowId.

Passing this into a winit function will result in undefined behavior.

Trait Implementations

impl Ord for WindowId[src]

fn max(self, other: Self) -> Self

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl Clone for WindowId[src]

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl Eq for WindowId[src]

impl Hash for WindowId[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher

Feeds a slice of this type into the given [Hasher]. Read more

impl Copy for WindowId[src]

impl PartialOrd<WindowId> for WindowId[src]

impl PartialEq<WindowId> for WindowId[src]

impl Debug for WindowId[src]

Auto Trait Implementations

impl Send for WindowId

impl Sync for WindowId

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

impl<T> BorrowMut for T where
    T: ?Sized

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

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

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.

impl<T> Erased for T