pub struct GlutinWindow {
pub window: GlWindow,
// some fields omitted
}
Contains stuff for game window.
Creates a new game window for Glutin.
Builds the window from a WindowSettings
object. Read more
Gets a copy of the title of the window.
Sets the title of the window.
Gets whether to exit when pressing esc. Read more
Sets whether to exit when pressing esc. Read more
Sets whether to capture/grab the cursor. Read more
Gets the position of window.
Sets whether to exit when pressing the Esc button. Read more
Sets whether to capture/grab the cursor. Read more
fn position<P>(self, val: P) -> Self where P: Into<Position>, | |
Gets the size of the window.
Returns true if the window should close.
Tells the window to close or stay open.
Wait indefinitely for an input event to be available from the window.
Wait for an input event to be available from the window or for the specified timeout to be reached. Read more
Polls an input event from the window. Read more
Returns the address of the specified OpenGL function if it exists. Read more
Returns true if this window's gl context is the current gl context.
Make the window's gl context the current gl context.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static