diff options
Diffstat (limited to 'Framework/MASShortcutView.h')
| -rw-r--r-- | Framework/MASShortcutView.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Framework/MASShortcutView.h b/Framework/MASShortcutView.h new file mode 100644 index 0000000..c8a46bb --- /dev/null +++ b/Framework/MASShortcutView.h @@ -0,0 +1,23 @@ +#import <AppKit/AppKit.h> + +@class MASShortcut; + +typedef enum { + MASShortcutViewAppearanceDefault = 0, // Height = 19 px + MASShortcutViewAppearanceTexturedRect, // Height = 25 px + MASShortcutViewAppearanceRounded, // Height = 43 px + MASShortcutViewAppearanceFlat +} MASShortcutViewAppearance; + +@interface MASShortcutView : NSView + +@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; + +/// Returns custom class for drawing control. ++ (Class)shortcutCellClass; + +@end |
