Seregon/StratoSDK

StratoSDK is a framework with a declarative approach similar to Flutter/React, written and designed entirely for Rust.

Rust/27.3 KB/No license
crates/strato-ui-renderer/src/platform/mac/objc/host_view.h
1#import <AppKit/AppKit.h>
2#import <QuartzCore/QuartzCore.h>
3 
4@interface NSPasteboard (Warp)
5- (NSArray *)getFilePaths;
6@end
7 
8/// WarpHostView is the Content view of a Warp window.
9// It is backed by a Metal CALayer.
10@interface WarpHostView : NSView <CALayerDelegate, NSTextInputClient>
11- (WarpHostView *)initWithFrame:(NSRect)frame
12 metalDevice:(id)metalDevice
13 enableTitlebarDrag:(BOOL)enableTitlebarDrag
14 testMode:(BOOL)testMode;
15- (void)setAsyncCallback:(BOOL)shouldAsync;
16- (BOOL)keyDownImpl:(NSEvent *)event;
17@end
18