[−][src]Trait amethyst_inspector::Inspect
Any component implementing Inspect and included in your inspect!
will show up in the inspector
Whether the component is addable is decided by can_add(...)
Associated Types
type SystemData: SystemData<'a>
Provided methods
fn inspect(data: &mut Self::SystemData, entity: Entity)
This method is only ran if the component contains the selected entity
fn can_add(data: &mut Self::SystemData, entity: Entity) -> bool
Decide if this component can be added (e.g. because it requires another component)
fn can_remove(data: &mut Self::SystemData, entity: Entity) -> bool
Decide if this component can be removed (e.g. because it's required by another component)
fn add(data: &mut Self::SystemData, entity: Entity)
fn setup(data: &mut Self::SystemData, entity: Option<Entity>)
This method is ran on all entities, even if none are selected
Implementations on Foreign Types
impl<'a> Inspect<'a> for Blink
[src]
type SystemData = (ReadStorage<'a, Self>, Read<'a, LazyUpdate>)
fn can_add(_: &mut Self::SystemData, _: Entity) -> bool
[src]
fn inspect((storage, lazy): &mut Self::SystemData, entity: Entity)
[src]
fn add((_storage, lazy): &mut Self::SystemData, entity: Entity)
[src]
fn can_remove(data: &mut Self::SystemData, entity: Entity) -> bool
[src]
fn setup(data: &mut Self::SystemData, entity: Option<Entity>)
[src]
impl<'a> Inspect<'a> for Named
[src]
type SystemData = (ReadStorage<'a, Self>, Read<'a, LazyUpdate>)
fn can_add(_: &mut Self::SystemData, _: Entity) -> bool
[src]
fn inspect((storage, lazy): &mut Self::SystemData, entity: Entity)
[src]
fn add((_, lazy): &mut Self::SystemData, entity: Entity)
[src]
fn can_remove(data: &mut Self::SystemData, entity: Entity) -> bool
[src]
fn setup(data: &mut Self::SystemData, entity: Option<Entity>)
[src]
impl<'a> Inspect<'a> for Rgba
[src]
type SystemData = (ReadStorage<'a, Self>, Read<'a, LazyUpdate>)
fn can_add(_: &mut Self::SystemData, _: Entity) -> bool
[src]
fn inspect((storage, lazy): &mut Self::SystemData, entity: Entity)
[src]
fn add((_storage, lazy): &mut Self::SystemData, entity: Entity)
[src]
fn can_remove(data: &mut Self::SystemData, entity: Entity) -> bool
[src]
fn setup(data: &mut Self::SystemData, entity: Option<Entity>)
[src]
impl<'a> Inspect<'a> for SpriteRender
[src]
type SystemData = (ReadStorage<'a, Self>, ReadExpect<'a, AssetStorage<SpriteSheet>>, Read<'a, SpriteList>, Read<'a, LazyUpdate>)
fn inspect(
(storage, sprites, sprite_list, lazy): &mut Self::SystemData,
entity: Entity
)
[src]
(storage, sprites, sprite_list, lazy): &mut Self::SystemData,
entity: Entity
)
fn can_add((_, _, sprite_list, _): &mut Self::SystemData, _: Entity) -> bool
[src]
fn add((_, _, sprite_list, lazy): &mut Self::SystemData, entity: Entity)
[src]
fn can_remove(data: &mut Self::SystemData, entity: Entity) -> bool
[src]
fn setup(data: &mut Self::SystemData, entity: Option<Entity>)
[src]
impl<'a> Inspect<'a> for TextureHandle
[src]
type SystemData = (ReadStorage<'a, Self>, Read<'a, TextureList>, Read<'a, LazyUpdate>)
fn inspect((storage, texture_list, lazy): &mut Self::SystemData, entity: Entity)
[src]
fn can_add((_, texture_list, _): &mut Self::SystemData, _: Entity) -> bool
[src]
fn add((_, texture_list, lazy): &mut Self::SystemData, entity: Entity)
[src]
fn can_remove(data: &mut Self::SystemData, entity: Entity) -> bool
[src]
fn setup(data: &mut Self::SystemData, entity: Option<Entity>)
[src]
impl<'a> Inspect<'a> for Transform<f32>
[src]
type SystemData = (ReadStorage<'a, Self>, Read<'a, LazyUpdate>, Write<'a, TransformInspectorData>)
fn can_add(_: &mut Self::SystemData, _: Entity) -> bool
[src]
fn inspect((storage, lazy, data): &mut Self::SystemData, entity: Entity)
[src]
fn add((_storage, lazy, _): &mut Self::SystemData, entity: Entity)
[src]
fn can_remove(data: &mut Self::SystemData, entity: Entity) -> bool
[src]
fn setup(data: &mut Self::SystemData, entity: Option<Entity>)
[src]
impl<'a> Inspect<'a> for UiText
[src]
type SystemData = (ReadStorage<'a, Self>, ReadStorage<'a, UiTransform>, ReadExpect<'a, Loader>, ReadExpect<'a, AssetStorage<FontAsset>>, Read<'a, FontList>, Read<'a, LazyUpdate>)
fn can_add(_: &mut Self::SystemData, _: Entity) -> bool
[src]
fn inspect(
(storage, _, _, _, font_list, lazy): &mut Self::SystemData,
entity: Entity
)
[src]
(storage, _, _, _, font_list, lazy): &mut Self::SystemData,
entity: Entity
)
fn add(
(_storage, transforms, loader, fonts, font_list, lazy): &mut Self::SystemData,
entity: Entity
)
[src]
(_storage, transforms, loader, fonts, font_list, lazy): &mut Self::SystemData,
entity: Entity
)
fn can_remove(data: &mut Self::SystemData, entity: Entity) -> bool
[src]
fn setup(data: &mut Self::SystemData, entity: Option<Entity>)
[src]
impl<'a> Inspect<'a> for UiTransform
[src]
type SystemData = (ReadStorage<'a, Self>, Read<'a, LazyUpdate>)
fn can_add(_: &mut Self::SystemData, _: Entity) -> bool
[src]
fn inspect((storage, lazy): &mut Self::SystemData, entity: Entity)
[src]
fn add((_, lazy): &mut Self::SystemData, entity: Entity)
[src]
fn can_remove(data: &mut Self::SystemData, entity: Entity) -> bool
[src]
fn setup(data: &mut Self::SystemData, entity: Option<Entity>)
[src]
impl<'a> Inspect<'a> for Hidden
[src]
type SystemData = Read<'a, LazyUpdate>
fn can_add(_: &mut Self::SystemData, _: Entity) -> bool
[src]
fn add(lazy: &mut Self::SystemData, entity: Entity)
[src]
fn inspect(data: &mut Self::SystemData, entity: Entity)
[src]
fn can_remove(data: &mut Self::SystemData, entity: Entity) -> bool
[src]
fn setup(data: &mut Self::SystemData, entity: Option<Entity>)
[src]
impl<'a> Inspect<'a> for HiddenPropagate
[src]
type SystemData = Read<'a, LazyUpdate>
fn can_add(_: &mut Self::SystemData, _: Entity) -> bool
[src]
fn add(lazy: &mut Self::SystemData, entity: Entity)
[src]
fn inspect(data: &mut Self::SystemData, entity: Entity)
[src]
fn can_remove(data: &mut Self::SystemData, entity: Entity) -> bool
[src]
fn setup(data: &mut Self::SystemData, entity: Option<Entity>)
[src]
impl<'a> Inspect<'a> for ScreenSpace
[src]
type SystemData = Read<'a, LazyUpdate>
fn can_add(_: &mut Self::SystemData, _: Entity) -> bool
[src]
fn add(lazy: &mut Self::SystemData, entity: Entity)
[src]
fn inspect(data: &mut Self::SystemData, entity: Entity)
[src]
fn can_remove(data: &mut Self::SystemData, entity: Entity) -> bool
[src]
fn setup(data: &mut Self::SystemData, entity: Option<Entity>)
[src]
impl<'a> Inspect<'a> for Transparent
[src]
type SystemData = Read<'a, LazyUpdate>
fn can_add(_: &mut Self::SystemData, _: Entity) -> bool
[src]
fn add(lazy: &mut Self::SystemData, entity: Entity)
[src]
fn inspect(data: &mut Self::SystemData, entity: Entity)
[src]
fn can_remove(data: &mut Self::SystemData, entity: Entity) -> bool
[src]
fn setup(data: &mut Self::SystemData, entity: Option<Entity>)
[src]
impl<'a> Inspect<'a> for Flipped
[src]
type SystemData = (Read<'a, LazyUpdate>, ReadStorage<'a, Self>)
fn inspect((lazy, storage): &mut Self::SystemData, entity: Entity)
[src]
fn can_add(_: &mut Self::SystemData, _: Entity) -> bool
[src]
fn add((lazy): &mut Self::SystemData, entity: Entity)
[src]
fn can_remove(data: &mut Self::SystemData, entity: Entity) -> bool
[src]
fn setup(data: &mut Self::SystemData, entity: Option<Entity>)
[src]
Implementors
impl<'a> Inspect<'a> for UiTransformDebug
[src]
type SystemData = (ReadStorage<'a, Self>, ReadStorage<'a, UiTransform>, ReadStorage<'a, Transform<f32>>, ReadStorage<'a, Parent>, ReadExpect<'a, ParentHierarchy>, ReadExpect<'a, ScreenDimensions>, ReadStorage<'a, Named>, ReadStorage<'a, Camera>, Entities<'a>, Read<'a, LazyUpdate>)
fn setup(
(storage, ui_transforms, transforms, _, _, dimensions, _, cameras, entities, lazy): &mut Self::SystemData,
inspectee: Option<Entity>
)
[src]
(storage, ui_transforms, transforms, _, _, dimensions, _, cameras, entities, lazy): &mut Self::SystemData,
inspectee: Option<Entity>
)
fn inspect(
(storage, _, _, _, _, _, names, cameras, entities, lazy): &mut Self::SystemData,
entity: Entity
)
[src]
(storage, _, _, _, _, _, names, cameras, entities, lazy): &mut Self::SystemData,
entity: Entity
)
fn can_add(
(_, ui_transforms, _, _, _, _, _, cameras, entities, _): &mut Self::SystemData,
entity: Entity
) -> bool
[src]
(_, ui_transforms, _, _, _, _, _, cameras, entities, _): &mut Self::SystemData,
entity: Entity
) -> bool
fn add(
(_, _, _, _, _, _, _, cameras, entities, lazy): &mut Self::SystemData,
entity: Entity
)
[src]
(_, _, _, _, _, _, _, cameras, entities, lazy): &mut Self::SystemData,
entity: Entity
)