mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-28 14:10:44 +00:00
46 lines
1.3 KiB
Objective-C
46 lines
1.3 KiB
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
@interface TGPhotoAvatarCropView : UIView
|
|
|
|
@property (nonatomic, strong) UIImage *image;
|
|
|
|
@property (nonatomic, assign) CGRect cropRect;
|
|
@property (nonatomic, assign) UIImageOrientation cropOrientation;
|
|
@property (nonatomic, assign) bool cropMirrored;
|
|
|
|
@property (nonatomic, copy) void(^croppingChanged)(void);
|
|
@property (nonatomic, copy) void(^interactionEnded)(void);
|
|
|
|
@property (nonatomic, readonly) bool isTracking;
|
|
@property (nonatomic, readonly) bool isAnimating;
|
|
|
|
- (instancetype)initWithOriginalSize:(CGSize)originalSize screenSize:(CGSize)screenSize;
|
|
|
|
- (void)setSnapshotImage:(UIImage *)image;
|
|
- (void)setSnapshotView:(UIView *)snapshotView;
|
|
|
|
- (void)_replaceSnapshotImage:(UIImage *)image;
|
|
|
|
- (void)rotate90DegreesCCWAnimated:(bool)animated;
|
|
- (void)mirror;
|
|
- (void)resetAnimated:(bool)animated;
|
|
|
|
- (void)animateTransitionIn;
|
|
- (void)animateTransitionOutSwitching:(bool)switching;
|
|
- (void)transitionInFinishedFromCamera:(bool)fromCamera;
|
|
|
|
- (void)invalidateCropRect;
|
|
|
|
- (void)hideImageForCustomTransition;
|
|
|
|
- (CGRect)contentFrameForView:(UIView *)view;
|
|
- (CGRect)cropRectFrameForView:(UIView *)view;
|
|
- (UIImage *)croppedImageWithMaxSize:(CGSize)maxSize;
|
|
- (UIView *)cropSnapshotView;
|
|
|
|
- (void)updateCircleImageWithReferenceSize:(CGSize)referenceSize;
|
|
|
|
+ (CGSize)areaInsetSize;
|
|
|
|
@end
|