[][src]Struct piston_window::NoWindow

pub struct NoWindow { /* fields omitted */ }

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]

pub fn new(settings: &WindowSettings) -> NoWindow[src]

Creates a new NoWindow.

Trait Implementations

impl BuildFromWindowSettings for NoWindow[src]

fn build_from_window_settings(
    settings: &WindowSettings
) -> Result<NoWindow, Box<dyn Error + 'static>>
[src]

Errors

This function will always return without error.

impl AdvancedWindow for NoWindow[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 automatic_close(self, value: bool) -> Self[src]

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

fn capture_cursor(self, value: bool) -> Self[src]

Sets whether to capture/grab the cursor. Read more

fn position<P>(self, val: P) -> Self where
    P: Into<Position>, 
[src]

Sets the position of window. Read more

impl Window for NoWindow[src]

Auto Trait Implementations

impl Send for NoWindow

impl Sync for NoWindow

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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.

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

impl<T> Erased for T[src]