Struct window::NoWindow
[−]
[src]
pub struct NoWindow { // some fields omitted }
An implementation of Window that runs without a window at all.
Methods
impl NoWindow
[src]
fn new(settings: WindowSettings) -> NoWindow
Returns a new NoWindow
.
Trait Implementations
impl From<WindowSettings> for NoWindow
[src]
fn from(settings: WindowSettings) -> NoWindow
Performs the conversion.
impl Window for NoWindow
[src]
type Event = Input
The event type emitted by poll_event
fn should_close(&self) -> bool
Returns true if window should close.
fn size(&self) -> Size
Gets the size of the window in user coordinates.
fn swap_buffers(&mut self)
Swaps render buffers.
fn poll_event(&mut self) -> Option<Input>
Polls event from window.
fn draw_size(&self) -> Size
Gets draw size of the window. This is equal to the size of the frame buffer of the inner window, excluding the title bar and borders. Read more
impl AdvancedWindow for NoWindow
[src]
fn get_title(&self) -> String
Gets a copy of the title of the window.
fn set_title(&mut self, value: String)
Sets the title of the window.
fn get_exit_on_esc(&self) -> bool
Gets whether to exit when pressing esc.
fn set_exit_on_esc(&mut self, _value: bool)
Sets whether to exit when pressing esc.
fn set_capture_cursor(&mut self, _value: bool)
Sets whether to capture/grab cursor. This is used to lock and hide cursor to the window, for example in a first-person shooter game. Read more
fn title(self, value: String) -> Self
Sets title on window.
fn exit_on_esc(self, value: bool) -> Self
Sets whether to exit when pressing esc.
fn capture_cursor(self, value: bool) -> Self
Sets whether to capture/grab cursor (see set_capture_cursor
).