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][−]
settings: &WindowSettings,
event_loop: EventLoop<UserEvent>,
window_builder: WindowBuilder
) -> Result<Self, Box<dyn Error>>
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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,