[−]Trait piston_window::BuildFromWindowSettings
Constructs a window from a WindowSettings
object.
It is used by WindowSettings::build
.
Note that the backend's implementation of this may differ from its implementation
of ::new()
.
Required methods
fn build_from_window_settings(
settings: &WindowSettings
) -> Result<Self, Box<dyn Error + 'static>>
settings: &WindowSettings
) -> Result<Self, Box<dyn Error + 'static>>
Builds the window from a WindowSettings
object.
Errors
See your backend's documentation for details about what kind of error strings can be returned, and the conditions for error.
Implementations on Foreign Types
impl BuildFromWindowSettings for GlutinWindow
fn build_from_window_settings(
settings: &WindowSettings
) -> Result<GlutinWindow, Box<dyn Error + 'static>>
settings: &WindowSettings
) -> Result<GlutinWindow, Box<dyn Error + 'static>>
Implementors
impl BuildFromWindowSettings for NoWindow
fn build_from_window_settings(
settings: &WindowSettings
) -> Result<NoWindow, Box<dyn Error + 'static>>
settings: &WindowSettings
) -> Result<NoWindow, Box<dyn Error + 'static>>
Errors
This function will always return without error.
impl<W> BuildFromWindowSettings for PistonWindow<W> where
W: Window + OpenGLWindow + BuildFromWindowSettings,
[src]
W: Window + OpenGLWindow + BuildFromWindowSettings,
fn build_from_window_settings(
settings: &WindowSettings
) -> Result<PistonWindow<W>, Box<dyn Error>>
[src]
settings: &WindowSettings
) -> Result<PistonWindow<W>, Box<dyn Error>>