pub struct NodesToCheck {
pub new_hit_node_ids: BTreeMap<DomId, BTreeMap<NodeId, HitTestItem>>,
pub old_hit_node_ids: BTreeMap<DomId, BTreeMap<NodeId, HitTestItem>>,
pub onmouseenter_nodes: BTreeMap<DomId, BTreeMap<NodeId, HitTestItem>>,
pub onmouseleave_nodes: BTreeMap<DomId, BTreeMap<NodeId, HitTestItem>>,
pub old_focus_node: Option<DomNodeId>,
pub new_focus_node: Option<DomNodeId>,
pub current_window_state_mouse_is_down: bool,
}Fields§
§new_hit_node_ids: BTreeMap<DomId, BTreeMap<NodeId, HitTestItem>>§old_hit_node_ids: BTreeMap<DomId, BTreeMap<NodeId, HitTestItem>>§onmouseenter_nodes: BTreeMap<DomId, BTreeMap<NodeId, HitTestItem>>§onmouseleave_nodes: BTreeMap<DomId, BTreeMap<NodeId, HitTestItem>>§old_focus_node: Option<DomNodeId>§new_focus_node: Option<DomNodeId>§current_window_state_mouse_is_down: boolImplementations§
Source§impl NodesToCheck
impl NodesToCheck
pub fn simulated_mouse_move( hit_test: &FullHitTest, old_focus_node: Option<DomNodeId>, mouse_down: bool, ) -> Self
Sourcepub fn new(hit_test: &FullHitTest, events: &Events) -> Self
pub fn new(hit_test: &FullHitTest, events: &Events) -> Self
Determine which nodes are even relevant for callbacks or restyling
pub fn empty(mouse_down: bool, old_focus_node: Option<DomNodeId>) -> Self
pub fn needs_hover_active_restyle(&self) -> bool
pub fn needs_focus_result(&self) -> bool
Trait Implementations§
Source§impl Clone for NodesToCheck
impl Clone for NodesToCheck
Source§fn clone(&self) -> NodesToCheck
fn clone(&self) -> NodesToCheck
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 NodesToCheck
impl Debug for NodesToCheck
Source§impl PartialEq for NodesToCheck
impl PartialEq for NodesToCheck
impl StructuralPartialEq for NodesToCheck
Auto Trait Implementations§
impl Freeze for NodesToCheck
impl RefUnwindSafe for NodesToCheck
impl Send for NodesToCheck
impl Sync for NodesToCheck
impl Unpin for NodesToCheck
impl UnwindSafe for NodesToCheck
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