[−][src]Struct glutin_window::GlutinWindow
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]
pub fn get_title(&self) -> String
[src]
pub fn set_title(&mut self, value: String)
[src]
pub fn get_exit_on_esc(&self) -> bool
[src]
pub fn set_exit_on_esc(&mut self, value: bool)
[src]
pub fn get_automatic_close(&self) -> bool
[src]
pub fn set_automatic_close(&mut self, value: bool)
[src]
pub fn set_capture_cursor(&mut self, value: bool)
[src]
pub fn show(&mut self)
[src]
pub fn hide(&mut self)
[src]
pub fn get_position(&self) -> Option<Position>
[src]
pub fn set_position<P: Into<Position>>(&mut self, pos: P)
[src]
pub fn set_size<S: Into<Size>>(&mut self, size: S)
[src]
pub fn title(self, value: String) -> Self
[src]
pub fn exit_on_esc(self, value: bool) -> Self
[src]
pub fn automatic_close(self, value: bool) -> Self
[src]
pub fn capture_cursor(self, value: bool) -> Self
[src]
pub fn position<P>(self, val: P) -> Self where
P: Into<Position>,
[src]
P: Into<Position>,
impl BuildFromWindowSettings for GlutinWindow
[src]
pub fn build_from_window_settings(
settings: &WindowSettings
) -> Result<Self, Box<dyn Error>>
[src]
settings: &WindowSettings
) -> Result<Self, Box<dyn Error>>
impl OpenGLWindow for GlutinWindow
[src]
pub fn get_proc_address(&mut self, proc_name: &str) -> ProcAddress
[src]
pub fn is_current(&self) -> bool
[src]
pub fn make_current(&mut self)
[src]
impl Window for GlutinWindow
[src]
pub fn size(&self) -> Size
[src]
pub fn draw_size(&self) -> Size
[src]
pub fn should_close(&self) -> bool
[src]
pub fn set_should_close(&mut self, value: bool)
[src]
pub fn swap_buffers(&mut self)
[src]
pub fn wait_event(&mut self) -> Event
[src]
pub fn wait_event_timeout(&mut self, timeout: Duration) -> Option<Event>
[src]
pub fn poll_event(&mut self) -> Option<Event>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for GlutinWindow
[src]
impl !Send for GlutinWindow
[src]
impl !Sync for GlutinWindow
[src]
impl Unpin for GlutinWindow
[src]
impl !UnwindSafe for GlutinWindow
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,