Swiftgram/LegacyComponents/TGPhotoPaintController.h
2017-07-28 16:50:06 +03:00

20 lines
718 B
Objective-C

#import "TGPhotoEditorTabController.h"
#import <LegacyComponents/LegacyComponentsContext.h>
@class PGPhotoEditor;
@class TGPhotoEditorPreviewView;
@interface TGPhotoPaintController : TGPhotoEditorTabController
- (instancetype)initWithContext:(id<LegacyComponentsContext>)context photoEditor:(PGPhotoEditor *)photoEditor previewView:(TGPhotoEditorPreviewView *)previewView;
- (TGPaintingData *)paintingData;
+ (CGRect)photoContainerFrameForParentViewFrame:(CGRect)parentViewFrame toolbarLandscapeSize:(CGFloat)toolbarLandscapeSize orientation:(UIInterfaceOrientation)orientation panelSize:(CGFloat)panelSize;
@end
extern const CGFloat TGPhotoPaintTopPanelSize;
extern const CGFloat TGPhotoPaintBottomPanelSize;