12345678910111213141516171819202122232425262728 |
- #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
|