Struct amethyst_ui::UiButtonBuilderResources [−][src]
pub struct UiButtonBuilderResources<'a> { /* fields omitted */ }Container for all the resources the builder needs to make a new UiButton.
Methods
impl<'a> UiButtonBuilderResources<'a>[src]
impl<'a> UiButtonBuilderResources<'a>pub fn from_world(world: &'a World) -> Self[src]
pub fn from_world(world: &'a World) -> SelfGrab the resources we need from the world.
Trait Implementations
impl<'a> SystemData<'a> for UiButtonBuilderResources<'a> where
Read<'a, AssetStorage<FontAsset>>: SystemData<'a>,
Read<'a, AssetStorage<Texture>>: SystemData<'a>,
ReadExpect<'a, Loader>: SystemData<'a>,
Entities<'a>: SystemData<'a>,
WriteStorage<'a, UiImage>: SystemData<'a>,
WriteStorage<'a, MouseReactive>: SystemData<'a>,
WriteStorage<'a, Parent>: SystemData<'a>,
WriteStorage<'a, UiText>: SystemData<'a>,
WriteStorage<'a, UiTransform>: SystemData<'a>, [src]
impl<'a> SystemData<'a> for UiButtonBuilderResources<'a> where
Read<'a, AssetStorage<FontAsset>>: SystemData<'a>,
Read<'a, AssetStorage<Texture>>: SystemData<'a>,
ReadExpect<'a, Loader>: SystemData<'a>,
Entities<'a>: SystemData<'a>,
WriteStorage<'a, UiImage>: SystemData<'a>,
WriteStorage<'a, MouseReactive>: SystemData<'a>,
WriteStorage<'a, Parent>: SystemData<'a>,
WriteStorage<'a, UiText>: SystemData<'a>,
WriteStorage<'a, UiTransform>: SystemData<'a>, fn setup(res: &mut Resources)[src]
fn setup(res: &mut Resources)Sets up the system data for fetching it from the Resources.
fn fetch(res: &'a Resources) -> Self[src]
fn fetch(res: &'a Resources) -> SelfFetches the system data from Resources. Note that this is only specified for one concrete lifetime 'a, you need to implement the SystemData trait for every possible lifetime. Read more
fn reads() -> Vec<ResourceId>[src]
fn reads() -> Vec<ResourceId>Returns all read dependencies as fetched from Self::fetch. Read more
fn writes() -> Vec<ResourceId>[src]
fn writes() -> Vec<ResourceId>Returns all write dependencies as fetched from Self::fetch. Read more
Auto Trait Implementations
impl<'a> Send for UiButtonBuilderResources<'a>
impl<'a> Send for UiButtonBuilderResources<'a>impl<'a> Sync for UiButtonBuilderResources<'a>
impl<'a> Sync for UiButtonBuilderResources<'a>