mirror of https://github.com/bsnes-emu/bsnes.git
27 lines
486 B
C++
27 lines
486 B
C++
@interface CocoaMenu : NSMenuItem {
|
|
@public
|
|
phoenix::Menu* menu;
|
|
NSMenu* cocoaMenu;
|
|
}
|
|
-(id) initWith:(phoenix::Menu&)menu;
|
|
-(NSMenu*) cocoaMenu;
|
|
@end
|
|
|
|
namespace phoenix {
|
|
|
|
struct pMenu : public pAction {
|
|
Menu& menu;
|
|
CocoaMenu* cocoaMenu = nullptr;
|
|
|
|
void append(Action& action);
|
|
void remove(Action& action);
|
|
void setImage(const image& image);
|
|
void setText(string text);
|
|
|
|
pMenu(Menu& menu) : pAction(menu), menu(menu) {}
|
|
void constructor();
|
|
void destructor();
|
|
};
|
|
|
|
}
|