pub struct PointerShortcut<R: Runtime> { /* private fields */ }
Implementations§
Source§impl<R: Runtime> PointerShortcut<R>
impl<R: Runtime> PointerShortcut<R>
pub fn new(event: PointerEvent) -> Self
Sourcepub fn builder(event: PointerEvent) -> PointerShortcutBuilder<R>
pub fn builder(event: PointerEvent) -> PointerShortcutBuilder<R>
Initialize a new pointer shortcut builder with the specified event.
Sourcepub fn with_listener<F>(event: PointerEvent, listener: F) -> Self
pub fn with_listener<F>(event: PointerEvent, listener: F) -> Self
Create a new pointer shortcut with the specified event and listener.
Sourcepub fn event(&self) -> PointerEvent
pub fn event(&self) -> PointerEvent
The event of the shortcut.
Trait Implementations§
Source§impl<R: Runtime> Display for PointerShortcut<R>
impl<R: Runtime> Display for PointerShortcut<R>
impl<R: Runtime> Shortcut<R> for PointerShortcut<R>
Auto Trait Implementations§
impl<R> Freeze for PointerShortcut<R>
impl<R> !RefUnwindSafe for PointerShortcut<R>
impl<R> Send for PointerShortcut<R>
impl<R> Sync for PointerShortcut<R>
impl<R> Unpin for PointerShortcut<R>
impl<R> !UnwindSafe for PointerShortcut<R>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more