pub struct PenEvent {
pub action: PenAction,
pub pen: PenInput,
}Expand description
Stylus input from the platform: dispatched as its mouse event, with the pen’s data available
from Window::vn_pen while it and later pen events are handled.
Fields§
§action: PenActionThe mouse event gpui dispatches.
pen: PenInputThe stylus data.
Trait Implementations§
Source§impl InputEvent for PenEvent
impl InputEvent for PenEvent
Source§fn to_platform_input(self) -> PlatformInput
fn to_platform_input(self) -> PlatformInput
Convert this event into the platform input enum.
Auto Trait Implementations§
impl Forget for PenEvent
impl Freeze for PenEvent
impl Move for PenEvent
impl RefUnwindSafe for PenEvent
impl Send for PenEvent
impl Sync for PenEvent
impl Unpin for PenEvent
impl UnsafeUnpin for PenEvent
impl UnwindSafe for PenEvent
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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