Trait piston_window::prelude::BuildFromWindowSettings

source ·
pub trait BuildFromWindowSettings: Sized {
    // Required method
    fn build_from_window_settings(
        settings: &WindowSettings
    ) -> Result<Self, Box<dyn Error>>;
}
Expand description

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§

source

fn build_from_window_settings( settings: &WindowSettings ) -> Result<Self, Box<dyn Error>>

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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl BuildFromWindowSettings for GlutinWindow

Implementors§