Skip to main content

hit_at

Function hit_at 

Source
pub fn hit_at(ctx: &Context, pos: Pos2, layer: Option<LayerId>) -> Option<Id>
Expand description

The overlay of the window being drawn that a press at pos lands in, layer being the egui layer on top there: the topmost one drawn or anchored there, or whose egui popup (a combo box’s list, a context menu) is that layer. None for the interface below the overlays.