2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaMenu : NSMenuItem {
|
|
|
|
@public
|
|
|
|
phoenix::Menu *menu;
|
|
|
|
NSMenu *cocoaMenu;
|
|
|
|
}
|
2013-03-21 12:59:01 +00:00
|
|
|
-(id) initWith:(phoenix::Menu&)menu;
|
2013-03-15 13:11:33 +00:00
|
|
|
-(NSMenu*) cocoaMenu;
|
|
|
|
@end
|
|
|
|
|
|
|
|
namespace phoenix {
|
|
|
|
|
|
|
|
struct pMenu : public pAction {
|
|
|
|
Menu &menu;
|
2013-03-21 12:59:01 +00:00
|
|
|
CocoaMenu *cocoaMenu = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
|
|
|
void append(Action &action);
|
|
|
|
void remove(Action &action);
|
|
|
|
void setImage(const image &image);
|
|
|
|
void setText(const string &text);
|
|
|
|
|
|
|
|
pMenu(Menu &menu) : pAction(menu), menu(menu) {}
|
|
|
|
void constructor();
|
|
|
|
void destructor();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|