class

UIng::MenuItem

Inherits Reference < Object

Instance methods

checked=(checked : Bool) : Nil
Source
checked?
Source
clear_on_clicked

Clears the click callback without removing or invalidating the menu item. Equivalent to on_clicked(nil).

Source
clear_shortcut

Removes a menu shortcut before the first Window is created.

Source
disable
Source
enable
Source
on_clicked
Source
on_clicked(callback : Nil) : Nil
Source
set_shortcut(key : Char, modifiers : Modifiers = Modifiers::None) : Nil

Assigns a menu shortcut before the first Window is created. Letters, digits, Delete, and arrow keys require Primary, Ctrl, or Alt. F1 through F12 may be used without modifiers. ASCII lowercase letters are converted to uppercase. libui-ng rejects duplicate shortcuts.

Source
set_shortcut(key : ExtKey, modifiers : Modifiers = Modifiers::None) : Nil

Assigns a supported extended key as a menu shortcut.

Source
to_unsafe
Source