Trait conrod::backend::piston::window::BuildFromWindowSettings
[−]
[src]
pub trait BuildFromWindowSettings { fn build_from_window_settings(
settings: &WindowSettings
) -> Result<Self, String>; }
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, String>
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 NoWindow
[src]
fn build_from_window_settings(
settings: &WindowSettings
) -> Result<NoWindow, String>
[src]
settings: &WindowSettings
) -> Result<NoWindow, String>
Errors
This function will always return without error.
impl BuildFromWindowSettings for GlutinWindow
[src]
fn build_from_window_settings(
settings: &WindowSettings
) -> Result<GlutinWindow, String>
[src]
settings: &WindowSettings
) -> Result<GlutinWindow, String>
Implementors
impl<W> BuildFromWindowSettings for Window<W> where
W: BasicWindow + OpenGLWindow + BuildFromWindowSettings,
W::Event: GenericEvent,