-
Notifications
You must be signed in to change notification settings - Fork 18
/
MASShortcutView.h
executable file
·33 lines (25 loc) · 993 Bytes
/
MASShortcutView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@class MASShortcut;
typedef enum {
MASShortcutViewAppearanceDefault = 0, // Height = 19 px
MASShortcutViewAppearanceTexturedRect, // Height = 25 px
MASShortcutViewAppearanceRounded // Height = 43 px
} MASShortcutViewAppearance;
@interface MASShortcutView : NSView {
NSButtonCell *_shortcutCell;
NSInteger _shortcutToolTipTag;
NSInteger _hintToolTipTag;
NSTrackingArea *_hintArea;
BOOL _enabled;
BOOL _hinting;
MASShortcut *_shortcutValue;
NSString *_shortcutPlaceholder;
void (^_shortcutValueChange)(MASShortcutView *sender);
BOOL _recording;
MASShortcutViewAppearance _appearance;
}
@property (nonatomic, strong) MASShortcut *shortcutValue;
@property (nonatomic, getter = isRecording) BOOL recording;
@property (nonatomic, getter = isEnabled) BOOL enabled;
@property (nonatomic, copy) void (^shortcutValueChange)(MASShortcutView *sender);
@property (nonatomic) MASShortcutViewAppearance appearance;
@end