pub struct CallbackToInvoke {
pub target: CallbackTarget,
pub event_filter: EventFilter,
pub hit_test_item: Option<HitTestItem>,
}Expand description
A callback that should be invoked, with all necessary context
Fields§
§target: CallbackTargetWhich node/window to invoke the callback on
event_filter: EventFilterThe event filter that triggered this callback
hit_test_item: Option<HitTestItem>Hit test item (for node-level events with spatial info)
Trait Implementations§
Source§impl Clone for CallbackToInvoke
impl Clone for CallbackToInvoke
Source§fn clone(&self) -> CallbackToInvoke
fn clone(&self) -> CallbackToInvoke
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CallbackToInvoke
impl Debug for CallbackToInvoke
Source§impl PartialEq for CallbackToInvoke
impl PartialEq for CallbackToInvoke
impl StructuralPartialEq for CallbackToInvoke
Auto Trait Implementations§
impl Freeze for CallbackToInvoke
impl RefUnwindSafe for CallbackToInvoke
impl Send for CallbackToInvoke
impl Sync for CallbackToInvoke
impl Unpin for CallbackToInvoke
impl UnwindSafe for CallbackToInvoke
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,
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