github.com/secoba/wails/v2@v2.6.4/internal/frontend/desktop/darwin/WailsMenu.h (about) 1 // 2 // WailsMenu.h 3 // test 4 // 5 // Created by Lea Anthony on 25/10/21. 6 // 7 8 #ifndef WailsMenu_h 9 #define WailsMenu_h 10 11 #import <Cocoa/Cocoa.h> 12 #import "Role.h" 13 #import "WailsMenu.h" 14 #import "WailsContext.h" 15 16 @interface WailsMenu : NSMenu 17 18 //- (void) AddMenuByRole :(Role)role; 19 - (WailsMenu*) initWithNSTitle :(NSString*)title; 20 - (void) appendSubmenu :(WailsMenu*)child; 21 - (void) appendRole :(WailsContext*)ctx :(Role)role; 22 23 - (NSMenuItem*) newMenuItemWithContext :(WailsContext*)ctx :(NSString*)title :(SEL)selector :(NSString*)key :(NSEventModifierFlags)flags; 24 - (void*) AppendMenuItem :(WailsContext*)ctx :(NSString*)label :(NSString *)shortcutKey :(int)modifiers :(bool)disabled :(bool)checked :(int)menuItemID; 25 - (void) AppendSeparator; 26 27 @end 28 29 30 #endif /* WailsMenu_h */