Swiftgram/submodules/Display/Display/CATracingLayer.h
Peter 8f5a4f7dc1 Add 'submodules/Display/' from commit '7bd11013ea936e3d49d937550d599f5816d32560'
git-subtree-dir: submodules/Display
git-subtree-mainline: 9bc996374ffdad37aef175427db72731c9551dcf
git-subtree-split: 7bd11013ea936e3d49d937550d599f5816d32560
2019-06-11 18:44:37 +01:00

35 lines
1.1 KiB
Objective-C

#import <UIKit/UIKit.h>
@interface CATracingLayer : CALayer
@end
@interface CATracingLayerInfo : NSObject
@property (nonatomic, readonly) bool shouldBeAdjustedToInverseTransform;
@property (nonatomic, weak, readonly) id _Nullable userData;
@property (nonatomic, readonly) int32_t tracingTag;
@property (nonatomic, readonly) int32_t disableChildrenTracingTags;
- (instancetype _Nonnull)initWithShouldBeAdjustedToInverseTransform:(bool)shouldBeAdjustedToInverseTransform userData:(id _Nullable)userData tracingTag:(int32_t)tracingTag disableChildrenTracingTags:(int32_t)disableChildrenTracingTags;
@end
@interface CALayer (Tracing)
- (CATracingLayerInfo * _Nullable)traceableInfo;
- (void)setTraceableInfo:(CATracingLayerInfo * _Nullable)info;
- (bool)hasPositionOrOpacityAnimations;
- (bool)hasPositionAnimations;
- (void)setInvalidateTracingSublayers:(void (^_Nullable)())block;
- (NSArray<NSArray<CALayer *> *> * _Nonnull)traceableLayerSurfacesWithTag:(int32_t)tracingTag;
- (void)adjustTraceableLayerTransforms:(CGSize)offset;
- (void)setPositionAnimationMirrorTarget:(CALayer * _Nullable)animationMirrorTarget;
- (void)invalidateUpTheTree;
@end