Skip to main content

follow_popup

Function follow_popup 

Source
pub fn follow_popup(
    ctx: &Context,
    id: Id,
    label: &str,
    open: bool,
    how: Option<Closing>,
)
Expand description

Follows an egui popup that is not in the stack (a context menu, a menu bar’s menu, a popover of egui’s, a hover card) for the watcher (watch): call it each pass its widget is drawn, open saying whether the popup is open after the widget drew it. Its opening and its closing are told once each; how says how it closed when the caller knows, else it is told from the pass’s input (Escape, a press in it or outside it). One no longer followed (its widget not drawn) is told closed (Closing::Gone) at the window’s next pass.