Skip to main content

context_menu

Function context_menu 

Source
pub fn context_menu<R>(
    response: &Response,
    add: impl FnOnce(&mut Ui) -> R,
) -> Option<InnerResponse<R>>
Expand description

egui’s [Response::context_menu], unless a widget claimed the secondary click where it happened: then the menu does not open. The context menu key opens it too while response has the focus, under the widget rather than at the pointer.