summaryrefslogtreecommitdiff
path: root/ext/mac-ui-macgap1-wrapper/MacGap/Classes/Commands/MenuProxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mac-ui-macgap1-wrapper/MacGap/Classes/Commands/MenuProxy.h')
-rwxr-xr-xext/mac-ui-macgap1-wrapper/MacGap/Classes/Commands/MenuProxy.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/ext/mac-ui-macgap1-wrapper/MacGap/Classes/Commands/MenuProxy.h b/ext/mac-ui-macgap1-wrapper/MacGap/Classes/Commands/MenuProxy.h
new file mode 100755
index 00000000..afd6c6ed
--- /dev/null
+++ b/ext/mac-ui-macgap1-wrapper/MacGap/Classes/Commands/MenuProxy.h
@@ -0,0 +1,31 @@
+//
+// MenuProxy.h
+// MacGap
+//
+// Created by Joe Hildebrand on 1/14/12.
+// Copyright (c) 2012 Twitter. All rights reserved.
+//
+
+#import "Command.h"
+
+@class MenuItemProxy;
+
+@interface MenuProxy : Command {
+ NSMenu *menu;
+}
+
++ (MenuProxy*)proxyWithContext:(JSContextRef)aContext andMenu:(NSMenu*)aMenu;
+
+- (MenuItemProxy*)addItemWithTitle:(NSString*)title
+ keyEquivalent:(NSString*)aKey
+ callback:(WebScriptObject*)aCallback
+ atIndex:(NSInteger)index;
+
+- (MenuItemProxy*)addSeparator;
+- (MenuItemProxy*)itemForKey:(id)key;
+- (MenuProxy*)removeItem:(id)key;
+
++ (NSString*)getKeyFromString:(NSString*)keyCommand;
++ (NSUInteger*)getModifiersFromString:(NSString*)keyCommand;
+
+@end