pub struct CallbackToCall {
pub node_id: NodeId,
pub hit_test_item: Option<HitTestItem>,
pub event_filter: EventFilter,
}Fields§
§node_id: NodeId§hit_test_item: Option<HitTestItem>§event_filter: EventFilterImplementations§
Source§impl CallbackToCall
impl CallbackToCall
pub fn new( node_id: NodeId, hit_test_item: Option<HitTestItem>, event_filter: EventFilter, ) -> Self
Sourcepub fn from_hit_test(
hit_test: &FullHitTest,
dom_id: DomId,
event_filter: EventFilter,
) -> Vec<CallbackToCall>
pub fn from_hit_test( hit_test: &FullHitTest, dom_id: DomId, event_filter: EventFilter, ) -> Vec<CallbackToCall>
Build a list of CallbackToCall entries for every node hit by the
given hit test under the given DOM, tagged with event_filter.
Returns an empty Vec when there is no hit test data for the DOM.
Trait Implementations§
Source§impl Clone for CallbackToCall
impl Clone for CallbackToCall
Source§fn clone(&self) -> CallbackToCall
fn clone(&self) -> CallbackToCall
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 moreSource§impl Debug for CallbackToCall
impl Debug for CallbackToCall
Source§impl PartialEq for CallbackToCall
impl PartialEq for CallbackToCall
Source§fn eq(&self, other: &CallbackToCall) -> bool
fn eq(&self, other: &CallbackToCall) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CallbackToCall
Auto Trait Implementations§
impl Freeze for CallbackToCall
impl RefUnwindSafe for CallbackToCall
impl Send for CallbackToCall
impl Sync for CallbackToCall
impl Unpin for CallbackToCall
impl UnsafeUnpin for CallbackToCall
impl UnwindSafe for CallbackToCall
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