[−][src]Struct glutin_window::GlutinWindow
Contains stuff for game window.
Fields
ctx: ContextWrapper<PossiblyCurrent, Window>
The window.
Methods
impl GlutinWindow
[src]
pub fn new(settings: &WindowSettings) -> Result<Self, Box<dyn Error>>
[src]
Creates a new game window for Glutin.
Trait Implementations
impl Window for GlutinWindow
[src]
fn size(&self) -> Size
[src]
fn draw_size(&self) -> Size
[src]
fn should_close(&self) -> bool
[src]
fn set_should_close(&mut self, value: bool)
[src]
fn swap_buffers(&mut self)
[src]
fn wait_event(&mut self) -> Event
[src]
fn wait_event_timeout(&mut self, timeout: Duration) -> Option<Event>
[src]
fn poll_event(&mut self) -> Option<Event>
[src]
impl AdvancedWindow for GlutinWindow
[src]
fn get_title(&self) -> String
[src]
fn set_title(&mut self, value: String)
[src]
fn get_exit_on_esc(&self) -> bool
[src]
fn set_exit_on_esc(&mut self, value: bool)
[src]
fn get_automatic_close(&self) -> bool
[src]
fn set_automatic_close(&mut self, value: bool)
[src]
fn set_capture_cursor(&mut self, value: bool)
[src]
fn show(&mut self)
[src]
fn hide(&mut self)
[src]
fn get_position(&self) -> Option<Position>
[src]
fn set_position<P: Into<Position>>(&mut self, pos: P)
[src]
fn set_size<S: Into<Size>>(&mut self, size: S)
[src]
fn title(self, value: String) -> Self
Sets title on window. Read more
fn exit_on_esc(self, value: bool) -> Self
Sets whether to exit when pressing the Esc button. Read more
fn automatic_close(self, value: bool) -> Self
Sets whether the window will automatically close when attempting to close it. If this is disabled, attempts to close the window can be detected via an Input::Close(..)
event, and Window::set_should_close()
can be called to actually close the window. Read more
fn capture_cursor(self, value: bool) -> Self
Sets whether to capture/grab the cursor. Read more
fn position<P>(self, val: P) -> Self where
P: Into<Position>,
P: Into<Position>,
Sets the position of window. Read more
impl BuildFromWindowSettings for GlutinWindow
[src]
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]
fn get_proc_address(&mut self, proc_name: &str) -> ProcAddress
[src]
fn is_current(&self) -> bool
[src]
fn make_current(&mut self)
[src]
Auto Trait Implementations
impl !Send for GlutinWindow
impl Unpin for GlutinWindow
impl !Sync for GlutinWindow
impl !UnwindSafe for GlutinWindow
impl !RefUnwindSafe for GlutinWindow
Blanket Implementations
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,