pub trait MockUIInteraction {
// Required methods
fn click_button<Marker: Component>(&mut self);
fn hover_button<Marker: Component>(&mut self);
}Expand description
Send fake UI interaction for testing purposes.
Required Methods§
Presses all bevy::ui buttons with the matching Marker component
Changes their [Interaction] component to [Interaction::Pressed]
Hovers over all bevy::ui buttons with the matching Marker component
Changes their [Interaction] component to [Interaction::Pressed]
Object Safety§
This trait is not object safe.