Struct amethyst_ui::UiResize[][src]

pub struct UiResize {
    pub function: Box<FnMut(&mut UiTransform, (f32, f32)) + Send + Sync>,
}

Whenever the window is resized the function in this component will be called on this entity's UiTransform, along with the new width and height of the window.

The function in this component is also guaranteed to be called at least once by the ResizeSystem when either the component is attached, or the function is changed.

Fields

The core function of this component

Methods

impl UiResize
[src]

Creates a new component with the given function.

Trait Implementations

impl Component for UiResize
[src]

Associated storage type for this component.

Auto Trait Implementations

impl Send for UiResize

impl Sync for UiResize