module

Swanium::Frontend::MacosMenu

AppKit submenus used where libui-ng exposes only flat menu items.

Constants

ABOUT = 41
CLEAR_RECENT = 310
FULLSCREEN = 20
LOAD_STATE_BASE = 200
OPEN_ROM = 1
PAUSE = 4
QUIT = 43
RECENT_BASE = 300
RENDER_LINEAR = 32
RENDER_NEAREST = 31
RESET = 5
SAVE_STATE_BASE = 100
SCALE_1 = 11
SCALE_2 = 12
SCALE_3 = 13
SCALE_4 = 14
SETTINGS = 42

Class methods

attach_status(window : Pointer(Void)) : Nil
Source
detach_status
Source
install
Source
open_rom
Source
recent_rom(index : Int32) : String | Nil
Source
reserved_status_height(window : Pointer(Void)) : Int32
Source
set_recent_roms(paths : Array(String)) : Nil
Source
set_state_slots(labels : Array(String), slots : Array(Bool)) : Nil
Source
show_about
Source
show_error(message : String) : Nil
Source
show_settings
Source
sync_settings(keyboard : Array(String), buttons : Array(String), directions : Array(Int32)) : Nil
Source
take_action
Source
update_menu_state(paused : Bool, scale : Int32, fullscreen : Bool, renderer : Int32) : Nil
Source
update_status(text : String) : Nil
Source
volume
Source
volume=(value : Int32) : Nil
Source