[][src]Enum luminance_glutin::WindowDim

pub enum WindowDim {
    Windowed(u32u32),
    Fullscreen,
    FullscreenRestricted(u32u32),
}

Dimension metrics.

  • Windowed(width, height) opens in windowed mode with the wished resolution.
  • Fullscreen opens in fullscreen mode by using the primary monitor resolution.
  • FullscreenRestricted(width, height) is a mix between Windowed(width, height) and Fullscreen. It opens in fullscreen mode by using the wished resolution.

Variants

Windowed(u32u32)

Windowed mode.

Fullscreen

Fullscreen mode (adapt to your screen).

FullscreenRestricted(u32u32)

Fullscreen mode with restricted viewport dimension.

Trait Implementations

impl Clone for WindowDim[src]

impl Copy for WindowDim[src]

impl Debug for WindowDim[src]

impl Eq for WindowDim[src]

impl PartialEq<WindowDim> for WindowDim[src]

impl StructuralEq for WindowDim[src]

impl StructuralPartialEq for WindowDim[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[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> 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.