pub enum SemanticsHitTestBehavior {
Defer,
Opaque,
Transparent,
}Expand description
How a semantics node handles pointer events for the platform’s accessibility layer.
Variants§
Defer
Defer to the platform’s default hit test behavior inference.
When set to defer, the platform will infer the appropriate behavior based on the semantic node’s properties such as interactive behaviors, route scoping, etc.
This is the default value and provides backward compatibility.
Opaque
The semantic element is opaque to hit testing, consuming any pointer events within its bounds and preventing them from reaching elements behind it in Z-order (siblings and ancestors).
Children of this node can still receive pointer events normally.
Transparent
The semantic element is transparent to hit testing.
Transparent nodes do not receive hit test events and allow events to pass through to elements behind them.
Trait Implementations§
Source§impl Clone for SemanticsHitTestBehavior
impl Clone for SemanticsHitTestBehavior
impl Copy for SemanticsHitTestBehavior
Source§impl Debug for SemanticsHitTestBehavior
impl Debug for SemanticsHitTestBehavior
impl Eq for SemanticsHitTestBehavior
Source§impl Hash for SemanticsHitTestBehavior
impl Hash for SemanticsHitTestBehavior
Source§impl PartialEq for SemanticsHitTestBehavior
impl PartialEq for SemanticsHitTestBehavior
impl StructuralPartialEq for SemanticsHitTestBehavior
Auto Trait Implementations§
impl Forget for SemanticsHitTestBehavior
impl Freeze for SemanticsHitTestBehavior
impl Move for SemanticsHitTestBehavior
impl RefUnwindSafe for SemanticsHitTestBehavior
impl Send for SemanticsHitTestBehavior
impl Sync for SemanticsHitTestBehavior
impl Unpin for SemanticsHitTestBehavior
impl UnsafeUnpin for SemanticsHitTestBehavior
impl UnwindSafe for SemanticsHitTestBehavior
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.