pub struct SemanticsEvent {
pub target: WidgetId,
pub action: SemanticsActionRequest,
}Expand description
An assistive-technology action directed at a semantic node.
The runtime routes this event to the retained widget that owns target (or
the nearest graph-backed semantic ancestor for a virtual node). The semantic
target remains in the event so widgets with virtual or generated children
can update their own local state.
Fields§
§target: WidgetId§action: SemanticsActionRequestImplementations§
Source§impl SemanticsEvent
impl SemanticsEvent
pub fn new(target: WidgetId, action: SemanticsActionRequest) -> Self
Trait Implementations§
Source§impl Clone for SemanticsEvent
impl Clone for SemanticsEvent
Source§impl Debug for SemanticsEvent
impl Debug for SemanticsEvent
Source§impl PartialEq for SemanticsEvent
impl PartialEq for SemanticsEvent
impl StructuralPartialEq for SemanticsEvent
Auto Trait Implementations§
impl Forget for SemanticsEvent
impl Freeze for SemanticsEvent
impl Move for SemanticsEvent
impl RefUnwindSafe for SemanticsEvent
impl Send for SemanticsEvent
impl Sync for SemanticsEvent
impl Unpin for SemanticsEvent
impl UnsafeUnpin for SemanticsEvent
impl UnwindSafe for SemanticsEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more