mirror of https://github.com/bsnes-emu/bsnes.git
25 lines
394 B
C++
25 lines
394 B
C++
#if defined(Hiro_MenuItem)
|
|
|
|
@interface CocoaMenuItem : NSMenuItem {
|
|
@public
|
|
hiro::mMenuItem* menuItem;
|
|
}
|
|
-(id) initWith:(hiro::mMenuItem&)menuItem;
|
|
-(void) activate;
|
|
@end
|
|
|
|
namespace hiro {
|
|
|
|
struct pMenuItem : pAction {
|
|
Declare(MenuItem, Action)
|
|
|
|
auto setIcon(const image& icon) -> void;
|
|
auto setText(const string& text) -> void;
|
|
|
|
CocoaMenuItem* cocoaMenuItem = nullptr;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|