Skip to main content

popup_at

Function popup_at 

Source
pub fn popup_at(app: &AppHandle, menu: &MenuId, at: impl Into<At>) -> bool
Expand description

Opens a declared menu as a popup under a rectangle or at a point, evaluated in the context of now; egui-pop draws it from the next frame until an item is chosen, a click lands outside or Escape is pressed. One popup at a time: another replaces it. It opens in the window the user works in (AppHandle::active_window: a detached panel’s window when it was opened from there), the rectangle in that window’s points, and goes to the main window if that window closes. Opened while a ScopedTheme draws (a theme editor’s preview), it is drawn in that theme. Returns whether it opened (a hook on STEP_OPEN may veto it).