[][src]Struct amethyst_window::WindowBundle

pub struct WindowBundle { /* fields omitted */ }

Bundle providing easy initializing of the appopriate Window, WindowSystem EventLoop and EventLoopSystem constructs used for creating the rendering window of amethyst with winit

Methods

impl WindowBundle[src]

pub fn from_config(config: DisplayConfig) -> Self[src]

Builds a new window bundle from a loaded DisplayConfig.

pub fn from_config_path(path: impl AsRef<Path>) -> Self[src]

Builds a new window bundle by loading the DisplayConfig from path.

Will fall back to DisplayConfig::default() in case of an error.

Trait Implementations

impl Debug for WindowBundle[src]

impl<'a, 'b> SystemBundle<'a, 'b> for WindowBundle[src]

Auto Trait Implementations

Blanket Implementations

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

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

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> Any for T where
    T: Any

impl<T> Erased for T

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> SetParameter for T

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

Sets value as a parameter of self.