Struct amethyst_ui::ResizeSystem
[−]
[src]
pub struct ResizeSystem { /* fields omitted */ }
This system rearranges UI elements whenever the screen is resized using their UiResize
component.
Methods
impl ResizeSystem
[src]
fn new(winit_event_reader: ReaderId<Event>) -> ResizeSystem
[src]
Creates a new ResizeSystem that listens with the given reader Id.
Trait Implementations
impl<'a> System<'a> for ResizeSystem
[src]
type SystemData = (WriteStorage<'a, UiTransform>, WriteStorage<'a, UiResize>, Fetch<'a, EventChannel<Event>>)
The resource bundle required to execute this system. Read more
fn run(&mut self, (transform, resize, events): Self::SystemData)
[src]
Executes the system with the required system data. Read more
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