Struct conrod::backend::piston::window::Window [] [src]

pub struct Window<W: BasicWindow = GlutinWindow> {
    pub window: W,
    pub context: GfxContext,
}

Contains everything required for controlling window, graphics, event loop.

Fields

The window.

Stores state associated with Gfx.

Methods

impl<W> Window<W> where
    W: BasicWindow,
    W::Event: GenericEvent
[src]

[src]

Creates a new piston window.

[src]

Renders 2D graphics.

[src]

A wrapper around the EventWindow::next trait method. This avoids the need for users to import the EventWindow trait in most cases.

[src]

Let window handle new event.

Trait Implementations

impl<W> BuildFromWindowSettings for Window<W> where
    W: BasicWindow + OpenGLWindow + BuildFromWindowSettings,
    W::Event: GenericEvent
[src]

[src]

Builds the window from a WindowSettings object. Read more

impl<W> BasicWindow for Window<W> where
    W: BasicWindow
[src]

The event type the window uses for incoming input. Read more

[src]

Returns true if the window should close.

[src]

Tells the window to close or stay open.

[src]

Gets the size of the window.

[src]

Gets the draw size of the window. Read more

[src]

Swaps render buffers. Read more

[src]

Wait indefinitely for an event to be available from the window. Read more

[src]

Wait for an event to be available from the window or for the specified timeout to be reached. Read more

[src]

Polls an event from the window. Read more

impl<W> AdvancedWindow for Window<W> where
    W: AdvancedWindow
[src]

[src]

Gets a copy of the title of the window.

[src]

Sets the title of the window.

[src]

Gets whether to exit when pressing esc. Read more

[src]

Sets whether to exit when pressing esc. Read more

[src]

Sets whether to capture/grab the cursor. Read more

[src]

Shows the window. Read more

[src]

Hides the window. Read more

[src]

Gets the position of window.

[src]

Sets the position of window. Read more

[src]

Sets title on window. Read more

[src]

Sets whether to exit when pressing the Esc button. Read more

[src]

Sets whether to capture/grab the cursor. Read more

[src]

Sets the position of window. Read more

impl EventWindow<WindowEvents> for Window
[src]

[src]

receive next event from event loop and handle it