mirror of https://github.com/bsnes-emu/bsnes.git
28 lines
457 B
C++
28 lines
457 B
C++
#if defined(Hiro_Menu)
|
|
|
|
@interface CocoaMenu : NSMenuItem {
|
|
@public
|
|
hiro::mMenu* menu;
|
|
NSMenu* cocoaMenu;
|
|
}
|
|
-(id) initWith:(hiro::mMenu&)menu;
|
|
-(NSMenu*) cocoaMenu;
|
|
@end
|
|
|
|
namespace hiro {
|
|
|
|
struct pMenu : pAction {
|
|
Declare(Menu, Action)
|
|
|
|
auto append(sAction action) -> void;
|
|
auto remove(sAction action) -> void;
|
|
auto setIcon(const image& icon) -> void;
|
|
auto setText(const string& text) -> void;
|
|
|
|
CocoaMenu* cocoaMenu = nullptr;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|