Swiftgram/submodules/LegacyComponents/Sources/TGPhotoEntitiesContainerView.h
2020-06-05 17:52:43 +03:00

35 lines
1.1 KiB
Objective-C

#import "TGPhotoPaintSparseView.h"
#import "TGPhotoPaintStickersContext.h"
@class TGPaintingData;
@class TGPhotoPaintEntity;
@class TGPhotoPaintEntityView;
@interface TGPhotoEntitiesContainerView : TGPhotoPaintSparseView
@property (nonatomic, strong) id<TGPhotoPaintStickersContext> stickersContext;
@property (nonatomic, readonly) NSUInteger entitiesCount;
@property (nonatomic, copy) void (^entitySelected)(TGPhotoPaintEntityView *);
@property (nonatomic, copy) void (^entityRemoved)(TGPhotoPaintEntityView *);
- (void)updateVisibility:(bool)visible;
- (UIColor *)colorAtPoint:(CGPoint)point;
- (void)setupWithPaintingData:(TGPaintingData *)paintingData;
- (TGPhotoPaintEntityView *)createEntityViewWithEntity:(TGPhotoPaintEntity *)entity;
- (TGPhotoPaintEntityView *)viewForUUID:(NSInteger)uuid;
- (void)removeViewWithUUID:(NSInteger)uuid;
- (void)removeAll;
- (void)handlePinch:(UIPinchGestureRecognizer *)gestureRecognizer;
- (void)handleRotate:(UIRotationGestureRecognizer *)gestureRecognizer;
- (UIImage *)imageInRect:(CGRect)rect background:(UIImage *)background still:(bool)still;
- (bool)isTrackingAnyEntityView;
@end