mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
45 lines
1.4 KiB
Objective-C
45 lines
1.4 KiB
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
@class PGPhotoEditorView;
|
|
@class TGPaintingData;
|
|
|
|
@interface TGPhotoEditorPreviewView : UIView
|
|
|
|
@property (nonatomic, readonly) PGPhotoEditorView *imageView;
|
|
@property (nonatomic, readonly) UIImageView *paintingView;
|
|
|
|
@property (nonatomic, copy) void(^tapped)(void);
|
|
@property (nonatomic, copy) void(^touchedDown)(void);
|
|
@property (nonatomic, copy) void(^touchedUp)(void);
|
|
@property (nonatomic, copy) void(^interactionEnded)(void);
|
|
|
|
|
|
@property (nonatomic, readonly) bool applyMirror;
|
|
|
|
@property (nonatomic, readonly) bool isTracking;
|
|
@property (nonatomic, assign) bool customTouchDownHandling;
|
|
|
|
- (void)setSnapshotImage:(UIImage *)image;
|
|
- (void)setSnapshotView:(UIView *)view;
|
|
- (void)setPaintingImageWithData:(TGPaintingData *)values;
|
|
- (void)setPaintingHidden:(bool)hidden;
|
|
|
|
- (void)setSnapshotImageOnTransition:(UIImage *)image;
|
|
|
|
- (void)setCropRect:(CGRect)cropRect cropOrientation:(UIImageOrientation)cropOrientation cropRotation:(CGFloat)cropRotation cropMirrored:(bool)cropMirrored originalSize:(CGSize)originalSize;
|
|
|
|
- (UIView *)originalSnapshotView;
|
|
|
|
- (void)performTransitionInWithCompletion:(void (^)(void))completion;
|
|
- (void)setNeedsTransitionIn;
|
|
- (void)performTransitionInIfNeeded;
|
|
|
|
- (void)prepareTransitionFadeView;
|
|
- (void)performTransitionFade;
|
|
|
|
- (void)prepareForTransitionOut;
|
|
|
|
- (void)performTransitionToCropAnimated:(bool)animated;
|
|
|
|
@end
|