StratoSDK is a framework with a declarative approach similar to Flutter/React, written and designed entirely for Rust.
| 1 | #import <AppKit/AppKit.h> |
| 2 | #import <Carbon/Carbon.h> |
| 3 | |
| 4 | @interface WarpHotKey : NSObject { |
| 5 | @public |
| 6 | EventHotKeyRef _eventHotKey; |
| 7 | @public |
| 8 | NSUInteger _keyCode; |
| 9 | @public |
| 10 | NSUInteger _modifierKeys; |
| 11 | } |
| 12 | |
| 13 | - (instancetype)initWithEventHotKey:(EventHotKeyRef)eventHotKey |
| 14 | keyCode:(NSUInteger)keyCode |
| 15 | modifierKeys:(NSUInteger)modifierKeys; |
| 16 | |
| 17 | - (BOOL)hotKeyKeyAndModifierEquals:(NSUInteger)keyCode modifierKeys:(NSUInteger)modifierKeys; |
| 18 | |
| 19 | @end |
| 20 |