mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-14 09:03:14 -07:00
Move mac-ui into src/
This commit is contained in:
parent
a40192a40b
commit
8594e17f2b
63 changed files with 0 additions and 0 deletions
31
ext/mac-ui-macgap1-wrapper/src/MacGap/Classes/Commands/MenuProxy.h
Executable file
31
ext/mac-ui-macgap1-wrapper/src/MacGap/Classes/Commands/MenuProxy.h
Executable file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue