popup-menu.hpp 471 B

123456789101112131415161718192021222324252627
  1. #if defined(Hiro_PopupMenu)
  2. @interface CocoaPopupMenu : NSMenuItem {
  3. @public
  4. hiro::mPopupMenu* popupMenu;
  5. NSMenu* cocoaPopupMenu;
  6. }
  7. -(id) initWith:(hiro::mPopupMenu&)popupMenu;
  8. -(NSMenu*) cocoaPopupMenu;
  9. @end
  10. namespace hiro {
  11. struct pPopupMenu : pObject {
  12. Declare(PopupMenu, Object)
  13. auto append(sAction action) -> void;
  14. auto remove(sAction action) -> void;
  15. auto setVisible(bool visible) -> void;
  16. CocoaPopupMenu* cocoaPopupMenu = nullptr;
  17. };
  18. }
  19. #endif