class

Egui::ContextMenu

Inherits Reference < Object

Constructors

Instance 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.

Source
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.

Source
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).

Source
separator

A horizontal rule between rows.

Source

Nested types