mirror of
https://github.com/libretro/sameduck.git
synced 2024-11-26 18:50:26 +00:00
26 lines
978 B
Objective-C
26 lines
978 B
Objective-C
#ifndef KeyboardShortcutPrivateAPIs_h
|
|
#define KeyboardShortcutPrivateAPIs_h
|
|
|
|
/* These are private APIs, but they are a very simple and comprehensive way
|
|
to convert a key equivalent to its display name. */
|
|
|
|
@interface NSKeyboardShortcut : NSObject <NSCopying>
|
|
|
|
+ (id)shortcutWithPreferencesEncoding:(NSString *)encoding;
|
|
+ (id)shortcutWithKeyEquivalent:(NSString *)key_equivalent modifierMask:(unsigned long long)mask;
|
|
- (id)initWithKeyEquivalent:(NSString *)key_equivalent modifierMask:(unsigned long long)mask;
|
|
|
|
@property(readonly) unsigned long long modifierMask;
|
|
@property(readonly) NSString *keyEquivalent;
|
|
@property(readonly) NSString *preferencesEncoding;
|
|
@property(readonly) NSString *localizedModifierMaskDisplayName;
|
|
@property(readonly) NSString *localizedKeyEquivalentDisplayName;
|
|
@property(readonly) NSString *localizedDisplayName;
|
|
|
|
@end
|
|
|
|
@interface NSPrefPaneUtils : NSObject
|
|
+ (id)stringForVirtualKey:(unsigned int)key modifiers:(unsigned int)flags;
|
|
@end
|
|
|
|
#endif |