bsnes/hiro/cocoa/action/menu.hpp

28 lines
457 B
C++
Raw Normal View History

#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