Struct amethyst_ui::UiMouseSystem [−][src]
pub struct UiMouseSystem<A, B> { /* fields omitted */ }
The system that generates events for MouseReactive
enabled entities.
The generic types A and B represent the A and B generic parameter of the InputHandler<A,B>.
Methods
impl<A, B> UiMouseSystem<A, B>
[src]
impl<A, B> UiMouseSystem<A, B>
Trait Implementations
impl<'a, A, B> System<'a> for UiMouseSystem<A, B> where
A: Send + Sync + Eq + Hash + Clone + 'static,
B: Send + Sync + Eq + Hash + Clone + 'static,
[src]
impl<'a, A, B> System<'a> for UiMouseSystem<A, B> where
A: Send + Sync + Eq + Hash + Clone + 'static,
B: Send + Sync + Eq + Hash + Clone + 'static,
type SystemData = (Entities<'a>, ReadStorage<'a, UiTransform>, ReadStorage<'a, MouseReactive>, Read<'a, InputHandler<A, B>>, ReadExpect<'a, ScreenDimensions>, Write<'a, EventChannel<UiEvent>>)
The resource bundle required to execute this system. Read more
fn run(
&mut self,
(entities, transform, react, input, screen_dimensions, events): Self::SystemData
)
[src]
fn run(
&mut self,
(entities, transform, react, input, screen_dimensions, events): Self::SystemData
)
Executes the system with the required system data. Read more
fn running_time(&self) -> RunningTime
[src]
fn running_time(&self) -> RunningTime
Returns a hint how long the system needs for running. This is used to optimize the way they're executed (might allow more parallelization). Read more
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>
[src]
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>
Return the accessor from the SystemData
.
fn setup(&mut self, res: &mut Resources)
[src]
fn setup(&mut self, res: &mut Resources)
Sets up the Resources
using Self::SystemData::setup
.
Auto Trait Implementations
impl<A, B> Send for UiMouseSystem<A, B> where
A: Send,
B: Send,
impl<A, B> Send for UiMouseSystem<A, B> where
A: Send,
B: Send,
impl<A, B> Sync for UiMouseSystem<A, B> where
A: Sync,
B: Sync,
impl<A, B> Sync for UiMouseSystem<A, B> where
A: Sync,
B: Sync,