Struct amethyst_ui::UiBundle[][src]

pub struct UiBundle<A, B> { /* fields omitted */ }

UI bundle

Will register all necessary components and systems needed for UI, along with any resources. The generic types A and B represent the A and B generic parameter of the InputHandler<A,B>.

Will fail with error 'No resource with the given id' if the InputBundle is not added.

Methods

impl<A, B> UiBundle<A, B>
[src]

Create a new UI bundle

Trait Implementations

impl<'a, 'b, A, B> SystemBundle<'a, 'b> for UiBundle<A, B> where
    A: Send + Sync + Eq + Hash + Clone + 'static,
    B: Send + Sync + Eq + Hash + Clone + 'static, 
[src]

Build and add ECS resources, register components, add systems etc to the Application.

Auto Trait Implementations

impl<A, B> Send for UiBundle<A, B> where
    A: Send,
    B: Send

impl<A, B> Sync for UiBundle<A, B> where
    A: Sync,
    B: Sync