Struct piston::NoWindow [−][src]
pub struct NoWindow { /* fields omitted */ }
Expand description
A window without user interface, often used in server event loops.
This structure holds just enough state to return values that were set.
The size can be changed because the event loop does not emit
Render
events when the width or height is zero.
Implementations
Trait Implementations
Gets whether to exit when pressing esc. Read more
Sets whether to exit when pressing esc. Read more
Gets whether the window will automatically close when attempting to close it. Read more
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
Sets whether to capture/grab the cursor. Read more
Gets the position of window.
Sets the position of window. Read more
Sets whether to exit when pressing the Esc button. Read more
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
Sets whether to capture/grab the cursor. Read more
pub fn build_from_window_settings(
settings: &WindowSettings
) -> Result<NoWindow, Box<dyn Error + 'static, Global>>
pub fn build_from_window_settings(
settings: &WindowSettings
) -> Result<NoWindow, Box<dyn Error + 'static, Global>>
Errors
This function will always return without error.
Tells the window to close or stay open.
Returns true if the window should close.
Swaps render buffers. Read more
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