use accesskit::NodeId;
use accesskit_winit::ActionRequestEvent;
use dioxus_core::Template;
use uuid::Uuid;
use winit::window::CursorIcon;
#[derive(Debug)]
pub enum EventMessage {
UpdateTemplate(Template),
PollVDOM,
RequestRelayout,
RequestRerender,
RequestRedraw,
RemeasureTextGroup(Uuid),
SetCursorIcon(CursorIcon),
ActionRequestEvent(ActionRequestEvent),
FocusAccessibilityNode(NodeId),
}
impl From<ActionRequestEvent> for EventMessage {
fn from(value: ActionRequestEvent) -> Self {
Self::ActionRequestEvent(value)
}
}