Files
GLEGram-iOS/submodules/LegacyComponents/Sources/TGPhotoCropController.h
T
Leeksov 4647310322 GLEGram 12.5 — Initial public release
Based on Swiftgram 12.5 (Telegram iOS 12.5).
All GLEGram features ported and organized in GLEGram/ folder.

Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass,
Font Replacement, Fake Profile, Chat Export, Plugin System, and more.

See CHANGELOG_12.5.md for full details.
2026-04-06 09:48:12 +03:00

30 lines
992 B
Objective-C

#import <LegacyComponents/TGPhotoEditorTabController.h>
#import <LegacyComponents/LegacyComponentsContext.h>
@class PGCameraShotMetadata;
@class PGPhotoEditor;
@class TGPhotoEditorPreviewView;
@interface TGPhotoCropController : TGPhotoEditorTabController
@property (nonatomic, readonly) bool switching;
@property (nonatomic, readonly) UIImageOrientation cropOrientation;
@property (nonatomic, copy) void (^finishedPhotoProcessing)(void);
@property (nonatomic, copy) void (^cropReset)(void);
- (instancetype)initWithContext:(id<LegacyComponentsContext>)context photoEditor:(PGPhotoEditor *)photoEditor previewView:(TGPhotoEditorPreviewView *)previewView metadata:(PGCameraShotMetadata *)metadata forVideo:(bool)forVideo;
- (void)setAutorotationAngle:(CGFloat)autorotationAngle;
- (void)rotate;
- (void)mirror;
- (void)aspectRatioButtonPressed;
- (void)setImage:(UIImage *)image;
- (void)setSnapshotImage:(UIImage *)snapshotImage;
- (void)setSnapshotView:(UIView *)snapshotView;
@end