pub struct CanvasEditorInputHandler<T> { /* private fields */ }Implementations§
Source§impl<T> CanvasEditorInputHandler<T>
impl<T> CanvasEditorInputHandler<T>
pub fn new( pointer_interacting: impl Fn(&T) -> bool + 'static, dispatch: impl Fn(&mut T, CanvasEvent, &mut Context<'_, T>) + 'static, ) -> Self
pub fn pointer_interacting(&self, target: &T) -> bool
pub fn dispatch_event( &self, target: &mut T, event: CanvasEvent, cx: &mut Context<'_, T>, )
pub fn dispatch_key_down( &self, target: &mut T, event: &KeyDownEvent, cx: &mut Context<'_, T>, )
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for CanvasEditorInputHandler<T>
impl<T> !Send for CanvasEditorInputHandler<T>
impl<T> !Sync for CanvasEditorInputHandler<T>
impl<T> !UnwindSafe for CanvasEditorInputHandler<T>
impl<T> Freeze for CanvasEditorInputHandler<T>
impl<T> Unpin for CanvasEditorInputHandler<T>
impl<T> UnsafeUnpin for CanvasEditorInputHandler<T>
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<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