pub trait AppGizmoBuilder {
    // Required methods
    fn init_gizmo_group<T>(&mut self) -> &mut Self
       where T: GizmoConfigGroup + Default;
    fn insert_gizmo_group<T>(
        &mut self,
        group: T,
        config: GizmoConfig
    ) -> &mut Self
       where T: GizmoConfigGroup;
}
Expand description

A trait adding init_gizmo_group<T>() to the app

Required Methods§

source

fn init_gizmo_group<T>(&mut self) -> &mut Self

Registers GizmoConfigGroup T in the app enabling the use of Gizmos<T>.

Configurations can be set using the GizmoConfigStore Resource.

source

fn insert_gizmo_group<T>(&mut self, group: T, config: GizmoConfig) -> &mut Self

Insert the GizmoConfigGroup in the app with the given value and GizmoConfig.

This method should be preferred over AppGizmoBuilder::init_gizmo_group if and only if you need to configure fields upon initialization.

Object Safety§

This trait is not object safe.

Implementors§