pub enum HitTestBehavior {
DeferToChild,
Opaque,
Translucent,
}Expand description
How to behave during hit tests.
Variants§
DeferToChild
Targets that defer to their children receive events within their bounds only if one of their children is hit by the hit test.
Opaque
Opaque targets can be hit by hit tests, causing them to both receive events within their bounds and prevent targets visually behind them from also receiving events.
Translucent
Translucent targets both receive events within their bounds and permit targets visually behind them to also receive events.
Trait Implementations§
Source§impl Clone for HitTestBehavior
impl Clone for HitTestBehavior
impl Copy for HitTestBehavior
Source§impl Debug for HitTestBehavior
impl Debug for HitTestBehavior
impl Eq for HitTestBehavior
Source§impl PartialEq for HitTestBehavior
impl PartialEq for HitTestBehavior
impl StructuralPartialEq for HitTestBehavior
Auto Trait Implementations§
impl Freeze for HitTestBehavior
impl RefUnwindSafe for HitTestBehavior
impl Send for HitTestBehavior
impl Sync for HitTestBehavior
impl Unpin for HitTestBehavior
impl UnsafeUnpin for HitTestBehavior
impl UnwindSafe for HitTestBehavior
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
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
Compare self to
key and return true if they are equal.