[−][src]Struct window::NoWindow
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.
Methods
impl NoWindow
[src]
impl NoWindow
pub fn new(settings: &WindowSettings) -> NoWindow | [src] |
Creates a new NoWindow
.
Trait Implementations
impl BuildFromWindowSettings for NoWindow
[src]
impl BuildFromWindowSettings for NoWindow
fn build_from_window_settings( | [src] |
Errors
This function will always return without error.
impl Window for NoWindow
[src]
impl Window for NoWindow
fn should_close(&self) -> bool | [src] |
fn set_should_close(&mut self, value: bool) | [src] |
fn size(&self) -> Size | [src] |
fn swap_buffers(&mut self) | [src] |
fn wait_event(&mut self) -> Input | [src] |
fn wait_event_timeout(&mut self, _timeout: Duration) -> Option<Input> | [src] |
fn poll_event(&mut self) -> Option<Input> | [src] |
fn draw_size(&self) -> Size | [src] |
impl AdvancedWindow for NoWindow
[src]
impl AdvancedWindow for NoWindow
fn get_title(&self) -> String | [src] |
fn set_title(&mut self, value: String) | [src] |
fn get_exit_on_esc(&self) -> bool | [src] |
fn set_exit_on_esc(&mut self, _value: bool) | [src] |
fn set_capture_cursor(&mut self, _value: bool) | [src] |
fn show(&mut self) | [src] |
fn hide(&mut self) | [src] |
fn get_position(&self) -> Option<Position> | [src] |
fn set_position<P: Into<Position>>(&mut self, val: P) | [src] |
fn set_size<S: Into<Size>>(&mut self, val: S) | [src] |
fn title(self, value: String) -> Self | [src] |
Sets title on window. Read more
fn exit_on_esc(self, value: bool) -> Self | [src] |
Sets whether to exit when pressing the Esc button. Read more
fn capture_cursor(self, value: bool) -> Self | [src] |
Sets whether to capture/grab the cursor. Read more
fn position<P: Into<Position>>(self, val: P) -> Self | [src] |
Sets the position of window. Read more
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |