forked from gnachman/iTerm2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiTermMetalGlue.h
36 lines (27 loc) · 873 Bytes
/
iTermMetalGlue.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
34
35
36
//
// iTermMetalGlue.h
// iTerm2SharedARC
//
// Created by George Nachman on 10/8/17.
//
#import <Foundation/Foundation.h>
#import "iTermMetalDriver.h"
NS_ASSUME_NONNULL_BEGIN
@class iTermTextDrawingHelper;
@class VT100Screen;
@class PTYTextView;
NS_CLASS_AVAILABLE(10_11, NA)
@protocol iTermMetalGlueDelegate<NSObject>
- (void)metalGlueDidDrawFrameAndNeedsRedraw:(BOOL)redrawAsap;
- (CGContextRef)metalGlueContext;
- (NSImage *)metalGlueBackgroundImage;
- (iTermBackgroundImageMode)metalGlueBackgroundImageMode;
- (CGFloat)metalGlueBackgroundImageBlend;
@end
NS_CLASS_AVAILABLE(10_11, NA)
@interface iTermMetalGlue : NSObject<iTermMetalDriverDataSource>
@property (nullable, nonatomic, strong) PTYTextView *textView;
@property (nonatomic, strong) VT100Screen *screen;
@property (nonatomic, weak) id<iTermMetalGlueDelegate> delegate;
@end
NS_ASSUME_NONNULL_END