Egui::ContextMenu
Inherits Reference < Object
Constructors
new
SourceInstance methods
item(label : String, icon : Symbol | Nil = nil, action : HotkeyAction | Nil = nil, hotkey : String | Nil = nil, &on_click : -> ) : self
A row with a click handler.
item(label : String, icon : Symbol | Nil = nil, action : HotkeyAction | Nil = nil, hotkey : String | Nil = nil) : self
A row without a handler: clicking it re-fires action (if any)
for app-level Context#consume_action handlers, then closes.
render(ui : Ui) : Nil
Draw the rows into the open popup's Ui (called from
Response#context_menu; rows close the popup via the shared
menu_popup_key machinery).