[][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.

Implementations

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 AdvancedWindow for GlfwWindow[src]

impl BuildFromWindowSettings for GlfwWindow[src]

impl OpenGLWindow for GlfwWindow[src]

impl Window for GlfwWindow[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.