[][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

impl Unpin for WindowBundle

impl Sync for WindowBundle

impl Send for WindowBundle

impl UnwindSafe for WindowBundle

impl RefUnwindSafe for WindowBundle

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[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

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

impl<T> Any for T where
    T: Any
[src]

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

impl<T> SetParameter for T[src]

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

Sets value as a parameter of self.