use bevy::prelude::*;
use crate::routers::*;
#[derive(EntityEvent, Debug)]
pub struct Active<T> {
pub entity: Entity,
pub data: T
}
#[derive(EntityEvent, Debug)]
pub struct Inactive<T> {
pub entity: Entity,
pub data: T
}
#[derive(EntityEvent, Debug)]
pub struct MouseOver {
pub entity: Entity
}
#[derive(EntityEvent, Debug)]
pub struct MouseOut {
pub entity: Entity
}
#[derive(EntityEvent, Debug)]
pub struct Scrolling {
pub entity: Entity,
pub position: f32
}
#[derive(EntityEvent, Debug)]
pub struct Clicked {
pub entity: Entity
}
#[derive(EntityEvent, Debug)]
pub struct Change<T> {
pub entity: Entity,
pub data: T
}
#[derive(EntityEvent, Debug)]
pub struct WidgetBuilt {
pub entity: Entity
}
#[derive(EntityEvent, Debug)]
pub struct SetSliderValue {
pub entity: Entity,
pub value: f32
}
#[derive(EntityEvent, Debug)]
pub struct SetCheckboxState {
pub entity: Entity,
pub state: bool
}
#[derive(EntityEvent, Debug)]
pub struct SetRadioGroupValue {
pub entity: Entity,
pub radio_entity: Entity,
pub radio_text: String
}
#[derive(EntityEvent, Debug)]
pub struct SetProgressBarValue {
pub entity: Entity,
pub bar_type: String,
pub value: f32
}
#[derive(EntityEvent, Debug)]
pub struct SetCircularValue {
pub entity: Entity,
pub circular_type: String,
pub value: f32
}
#[derive(EntityEvent, Debug)]
pub struct SetSelectValue {
pub entity: Entity,
pub value: String
}
#[derive(EntityEvent, Debug)]
pub struct SetTextInputValue {
pub entity: Entity,
pub value: String
}
#[derive(EntityEvent, Debug)]
pub struct Loading {
pub entity: Entity
}
#[derive(EntityEvent, Debug)]
pub struct Loaded {
pub entity: Entity
}
#[derive(EntityEvent, Debug)]
pub struct PageLoaded {
pub entity: Entity,
pub name: String,
pub param: Param
}
#[derive(Event, Debug)]
pub struct RouteChanged {
pub route: String,
pub param: Param
}