Struct glutin_window::GlutinWindow[][src]

pub struct GlutinWindow {
    pub ctx: ContextWrapper<PossiblyCurrent, Window>,
    // some fields omitted
}

Contains stuff for game window.

Fields

ctx: ContextWrapper<PossiblyCurrent, Window>

The window.

Implementations

impl GlutinWindow[src]

pub fn new(settings: &WindowSettings) -> Result<Self, Box<dyn Error>>[src]

Creates a new game window for Glutin.

pub fn from_raw(
    settings: &WindowSettings,
    event_loop: EventLoop<UserEvent>,
    window_builder: WindowBuilder
) -> Result<Self, Box<dyn Error>>
[src]

Creates a game window from a pre-existing Glutin event loop and window builder.

Trait Implementations

impl AdvancedWindow for GlutinWindow[src]

impl BuildFromWindowSettings for GlutinWindow[src]

impl OpenGLWindow for GlutinWindow[src]

impl Window for GlutinWindow[src]

Auto Trait Implementations

impl !RefUnwindSafe for GlutinWindow

impl !Send for GlutinWindow

impl !Sync for GlutinWindow

impl Unpin for GlutinWindow

impl !UnwindSafe for GlutinWindow

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, 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.