Struct glutin_window::GlutinWindow [−] [src]

pub struct GlutinWindow {
    pub window: Window,
    // some fields omitted
}
[]

Contains stuff for game window.

Fields

window

The window.

Methods

impl GlutinWindow

fn new(opengl: OpenGL, settings: WindowSettings) -> Self[]

Creates a new game window for Glutin.

Trait Implementations

impl Window for GlutinWindow

type Event = Input

fn size(&self) -> Size

fn draw_size(&self) -> Size

fn should_close(&self) -> bool

fn swap_buffers(&mut self)

fn poll_event(&mut self) -> Option<Input>

impl AdvancedWindow for GlutinWindow

fn get_title(&self) -> String

fn set_title(&mut self, value: String)

fn get_exit_on_esc(&self) -> bool

fn set_exit_on_esc(&mut self, value: bool)

fn set_capture_cursor(&mut self, value: bool)

fn title(self, value: String) -> Self

fn exit_on_esc(self, value: bool) -> Self

fn capture_cursor(self, value: bool) -> Self

impl OpenGLWindow for GlutinWindow

fn get_proc_address(&mut self, proc_name: &str) -> ProcAddress

fn is_current(&self) -> bool

fn make_current(&mut self)