use super::*;
#[derive(Clone, Data, Debug, Default, New, PartialEq)]
pub struct A11yProps {
#[get(type(copy))]
pub(crate) role: A11yRole,
pub(crate) label: String,
#[new(skip)]
pub(crate) hint: String,
#[new(skip)]
pub(crate) value: String,
#[new(skip)]
#[get(skip)]
pub(crate) checked: Option<bool>,
#[new(skip)]
#[get(type(copy))]
pub(crate) disabled: bool,
#[new(skip)]
#[get(type(copy))]
pub(crate) hidden: bool,
#[new(skip)]
#[get(type(copy))]
pub(crate) live_region: A11yLiveRegion,
#[new(skip)]
#[get(type(copy))]
pub(crate) heading_level: u8,
}
#[derive(Clone, Data, Debug, New, PartialEq)]
pub struct A11yNode {
#[get(type(copy))]
pub(crate) id: NodeId,
pub(crate) props: A11yProps,
#[get(type(copy))]
pub(crate) bounds: Rect,
#[get(type(copy))]
pub(crate) focused: bool,
pub(crate) children: Vec<NodeId>,
}
#[derive(Clone, Data, Debug, Default, New, PartialEq)]
pub struct A11yTree {
#[get(type(copy))]
pub(crate) root: NodeId,
pub(crate) nodes: Vec<A11yNode>,
#[get(skip)]
pub(crate) focused_id: Option<NodeId>,
}
#[derive(Clone, Data, Debug, Eq, New, PartialEq)]
pub struct A11yAnnouncement {
pub(crate) message: String,
#[get(type(copy))]
pub(crate) politeness: A11yLiveRegion,
}