pub struct LiquidMenuGesture { /* private fields */ }Expand description
Shared ownership channel between a menu trigger and its popup. The trigger keeps receiving the original pointer after the popup appears; the popup reads that live position and consumes its eventual release.
Implementations§
Source§impl LiquidMenuGesture
impl LiquidMenuGesture
Sourcepub fn is_pressed(&self) -> bool
pub fn is_pressed(&self) -> bool
Whether a pointer currently owns this gesture (pressed on the trigger or sliding through the menu).
Sourcepub fn press_point(&self) -> Option<Point>
pub fn press_point(&self) -> Option<Point>
The live pointer position while the gesture is active (window coordinates) — the trigger surface’s touch-glow anchor.
Trait Implementations§
Source§impl Clone for LiquidMenuGesture
impl Clone for LiquidMenuGesture
Source§fn clone(&self) -> LiquidMenuGesture
fn clone(&self) -> LiquidMenuGesture
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for LiquidMenuGesture
impl !Send for LiquidMenuGesture
impl !Sync for LiquidMenuGesture
impl !UnwindSafe for LiquidMenuGesture
impl Freeze for LiquidMenuGesture
impl Unpin for LiquidMenuGesture
impl UnsafeUnpin for LiquidMenuGesture
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