Struct amethyst_ui::OnUiActionImage [−][src]
pub struct OnUiActionImage { /* fields omitted */ }
When this component is added to a UI element with a UiImage
it will change that image based on mouse interaction.
Requires MouseReactive
.
Methods
impl OnUiActionImage
[src]
impl OnUiActionImage
pub fn new(
normal_image: Option<TextureHandle>,
hover_image: Option<TextureHandle>,
press_image: Option<TextureHandle>
) -> Self
[src]
pub fn new(
normal_image: Option<TextureHandle>,
hover_image: Option<TextureHandle>,
press_image: Option<TextureHandle>
) -> Self
A constructor for this component
Trait Implementations
impl Component for OnUiActionImage
[src]
impl Component for OnUiActionImage
type Storage = DenseVecStorage<Self>
Associated storage type for this component.
Auto Trait Implementations
impl Send for OnUiActionImage
impl Send for OnUiActionImage
impl Sync for OnUiActionImage
impl Sync for OnUiActionImage