class

CUI::Menu

Inherits Reference < Object

Constructors

new(text : String)
Source

Instance methods

append(text : String, cb : Proc(Pointer(UI::MenuItem), Pointer(UI::Window), Pointer(Void), Object | Nil) | Nil = nil, data : Pointer(Void) | Nil = nil, flags = MenuDesc::Enabled.value)

Keep in mind that our proc's final argument is its return value as determined by the compiler

Source