[][src]Struct glfw_window::GlfwWindow

pub struct GlfwWindow {
    pub window: Window,
    pub glfw: Glfw,
    // some fields omitted
}

Contains stuff for game window.

Fields

window: Window

The window.

glfw: Glfw

GLFW context.

Methods

impl GlfwWindow[src]

pub fn from_pieces(
    win: Window,
    glfw: Glfw,
    events: Receiver<(f64, WindowEvent)>,
    exit_on_esc: bool
) -> GlfwWindow
[src]

Create a new game window from an existing GLFW window.

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

Creates a new game window for GLFW.

Trait Implementations

impl BuildFromWindowSettings for GlfwWindow[src]

impl AdvancedWindow for GlfwWindow[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>, 

Sets the position of window. Read more

impl Window for GlfwWindow[src]

impl OpenGLWindow for GlfwWindow[src]

Auto Trait Implementations

impl !Send for GlfwWindow

impl !Sync for GlfwWindow

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]