use cranpose_core::NodeId;
use crate::dirty_node_queue::DirtyNodeQueue;
pub fn schedule_pointer_repass(node_id: NodeId) {
crate::render_state::with_pointer_dispatch(|queue| queue.schedule(node_id));
}
pub fn has_pending_pointer_repasses() -> bool {
crate::render_state::require_current_app_context("pointer dispatch access")
.has_pending_pointer_repasses()
}
pub fn process_pointer_repasses<F>(processor: F)
where
F: FnMut(NodeId),
{
crate::render_state::with_pointer_dispatch(|queue| queue.process(processor));
}
pub fn clear_pointer_repasses() {
crate::render_state::with_pointer_dispatch(DirtyNodeQueue::clear);
}