class CUI::Menu

Defined in:

libui/cui.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(text : String) #

[View source]

Instance Method Detail

def 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


[View source]