-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathORBLayer.h
More file actions
80 lines (65 loc) · 2.78 KB
/
ORBLayer.h
File metadata and controls
80 lines (65 loc) · 2.78 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
//
// ORBLayer.h
// OpenRenderBox
#pragma once
#include <OpenRenderBox/ORBBase.h>
#if ORB_OBJC_FOUNDATION
#include <OpenRenderBox/ORBColor.h>
#include <OpenRenderBoxObjC/Device/ORBDevice.h>
#include <OpenRenderBoxObjC/Render/ORBDrawableStatistics.h>
#include <OpenRenderBoxObjC/Render/_ORBDrawableDelegate.h>
#include <OpenRenderBoxObjC/Render/ORBDisplayList.h>
//#include "RBImageQueueLayer.h"
//#include "RBSurfaceContentsLayer.h"
//#include "_RBSharedSurfaceOwner-Protocol.h"
#include <QuartzCore/QuartzCore.h>
#include <Foundation/Foundation.h>
@class CAContext, CALayer;
ORB_ASSUME_NONNULL_BEGIN
@interface ORBLayer: CALayer <_ORBDrawableDelegate, /*_RBSharedSurfaceOwner,*/ ORBDrawableStatistics>
@property (retain, nonatomic, nullable) ORBDevice *device;
@property (nonatomic) BOOL rendersAsynchronously;
@property (nonatomic) int colorMode;
@property (nonatomic) BOOL promotesFramebuffer;
@property (nonatomic) NSUInteger pixelFormat;
@property (nonatomic) BOOL clearsBackground;
@property (nonatomic) ORBColor clearColor;
@property (nonatomic) NSInteger maxDrawableCount;
@property (nonatomic) BOOL allowsPackedDrawable;
@property (nonatomic) BOOL allowsBottomLeftOrigin;
@property (readonly, nonatomic, getter=isDrawableAvailable) BOOL drawableAvailable;
@property (nonatomic) BOOL needsSynchronousUpdate;
@property (readonly) NSUInteger hash;
@property (readonly) Class superclass;
@property (readonly, copy) NSString *description;
@property (readonly, copy, nullable) NSString *debugDescription;
@property (readonly, copy, nonatomic, nullable) NSDictionary *statistics;
@property (copy, nonatomic, nullable) id /* block */ statisticsHandler;
/* class methods */
+ (nullable id)defaultValueForKey:(NSString *)key;
/* instance methods */
- (void)dealloc;
- (instancetype)init;
- (nullable instancetype)initWithCoder:(NSCoder *)coder;
- (void)display;
- (void)layoutSublayers;
- (void)displayIfNeeded;
- (void)_renderForegroundInContext:(CGContextRef)context;
- (nullable id<CAAction>)actionForKey:(NSString *)key;
- (instancetype)initWithLayer:(id)layer;
- (BOOL)isDrawableAvailable;
- (void)layerDidBecomeVisible:(BOOL)visible;
- (void)renderInContext:(CGContextRef)context;
- (void)setBounds:(CGRect)bounds;
- (void)setContents:(nullable id)contents;
- (void)_RBDrawableStatisticsDidChange;
- (void)_moveSubsurface:(void *)subsurface;
- (BOOL)_willMoveSubsurface:(unsigned int)subsurface;
- (void)copyImageInRect:(CGRect)rect options:(nullable id)options completionQueue:(nullable id)queue handler:(nullable id /* block */)handler;
- (BOOL)displayWithBounds:(CGRect)bounds callback:(nullable id /* block */)callback;
- (void)drawInDisplayList:(nullable ORBDisplayList *)list;
- (void)resetStatistics:(NSUInteger)statistics alpha:(double)alpha;
- (void)waitUntilAsyncRenderingCompleted;
@end
ORB_ASSUME_NONNULL_END
#endif