pub struct OverlayHit {
pub key: OverlayKey,
pub band: OverlayBand,
pub input: OverlayInput,
pub outside_tap: OutsideTap,
pub window_rect: Rect,
}Expand description
What the root retains from an OverlayEntry to route the next pass’s
input with: everything except the pod.
Dropping the pod handle is the point. The root holds these between paints, so
retaining an OverlayPod here would make the root a co-owner of a pod whose
owner may have been unmounted since, and would invite a borrow held across a
pass boundary. Routing needs none of it: the root decides which key the
event belongs to and broadcasts that key, and the owner — which does hold the
pod — forwards it in.
Fields§
§key: OverlayKeyThe owner’s identity, broadcast with the routed event.
band: OverlayBandThe band, which orders the hit test (Tooltip tested before Floating).
input: OverlayInputWhether this entry is hit-tested at all.
outside_tap: OutsideTapWhat a press outside every rect delivers here.
window_rect: RectThe absolute logical rect the hit test runs against.