pub struct HoverTintPlugin;Expand description
Plugin: registers apply_hover_tint then apply_press_tint in
TickStage::Systems. Press runs second so it can stamp over whatever
hover wrote on the same tick.
Every component these systems attach goes through try_insert. The
entity under the pointer is the one most likely to leave the tree on this
very tick: a click on a nav link runs the handler that swaps the page,
and the <if> reconciler despawns the outgoing tree in this same stage
with nothing ordering it against these systems. A plain insert against
an element the swap already took away fails the whole command buffer
rather than just itself.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HoverTintPlugin
impl RefUnwindSafe for HoverTintPlugin
impl Send for HoverTintPlugin
impl Sync for HoverTintPlugin
impl Unpin for HoverTintPlugin
impl UnsafeUnpin for HoverTintPlugin
impl UnwindSafe for HoverTintPlugin
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<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.