Struct speedy2d::window::WindowCreationOptions[][src]

pub struct WindowCreationOptions { /* fields omitted */ }

Options used during the creation of a window.

Implementations

impl WindowCreationOptions[src]

pub fn new_windowed(size: WindowSize, position: Option<WindowPosition>) -> Self[src]

Instantiates a new WindowCreationOptions structure with the default options, in non-fullscreen mode.

#[must_use]pub fn new_fullscreen_borderless() -> Self[src]

Instantiates a new WindowCreationOptions structure with the default options, in borderless fullscreen mode.

#[must_use]pub fn with_multisampling(self, multisampling: u16) -> Self[src]

Sets the maximum level of multisampling which will be applied. By default this is set to 8.

Note that this depends on platform support, and setting this may have no effect.

#[must_use]pub fn with_vsync(self, vsync: bool) -> Self[src]

Sets whether or not vsync should be enabled. This can increase latency, but should eliminate tearing. By default this is set to true.

Note that this depends on platform support, and setting this may have no effect.

Trait Implementations

impl Clone for WindowCreationOptions[src]

impl Debug for WindowCreationOptions[src]

impl PartialEq<WindowCreationOptions> for WindowCreationOptions[src]

impl StructuralPartialEq for WindowCreationOptions[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.