Peter d153fe0f21 Add 'submodules/LegacyComponents/' from commit 'd5594346161c1b7f203d1e87068bbe77bcaac019'
git-subtree-dir: submodules/LegacyComponents
git-subtree-mainline: 608630530451e02e5aec48389d144dbf7a3625b9
git-subtree-split: d5594346161c1b7f203d1e87068bbe77bcaac019
2019-06-11 18:51:15 +01:00

44 lines
1.7 KiB
Objective-C

#import <UIKit/UIKit.h>
@interface TGPhotoCropScrollView : UIView
@property (nonatomic, assign) CGSize contentSize;
@property (nonatomic, assign) CGFloat contentRotation;
@property (nonatomic, strong) UIView *contentView;
@property (nonatomic, assign) CGFloat maximumZoomScale;
@property (nonatomic, readonly) CGFloat minimumZoomScale;
@property (nonatomic, readonly) CGAffineTransform cropTransform;
@property (nonatomic, readonly) CGRect zoomedRect;
@property (nonatomic, readonly) CGRect availableRect;
@property (nonatomic, weak) UIImageView *imageView;
@property (nonatomic, readonly) bool isTracking;
@property (nonatomic, readonly) bool animating;
@property (nonatomic, copy) bool(^shouldBeginChanging)(void);
@property (nonatomic, copy) void(^didBeginChanging)(void);
@property (nonatomic, copy) void(^didEndChanging)(void);
- (void)setContentRotation:(CGFloat)contentRotation maximize:(bool)maximize resetting:(bool)resetting;
- (void)setContentMirrored:(bool)mirrored;
- (void)translateContentViewWithOffset:(CGPoint)offset;
- (UIView *)setSnapshotViewEnabled:(bool)enabled;
- (void)setPaintingImage:(UIImage *)image;
- (void)zoomToRect:(CGRect)rect withFrame:(CGRect)frame animated:(bool)animated completion:(void (^)(void))completion;
- (void)fitContentInsideBoundsAllowScale:(bool)allowScale animated:(bool)animated completion:(void (^)(void))completion;
- (void)fitContentInsideBoundsAllowScale:(bool)allowScale maximize:(bool)maximize animated:(bool)animated completion:(void (^)(void))completion;
- (void)storeRotationStartValues;
- (void)resetRotationStartValues;
- (void)reset;
- (void)resetAnimatedWithFrame:(CGRect)frame completion:(void (^)(void))completion;
@end