mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
67 lines
1.7 KiB
Objective-C
67 lines
1.7 KiB
Objective-C
#import <Foundation/Foundation.h>
|
|
#import <UIKit/UIKit.h>
|
|
#import <CoreMedia/CoreMedia.h>
|
|
|
|
@class TGPaintingData;
|
|
@class TGStickerMaskDescription;
|
|
|
|
@protocol TGPhotoPaintEntityRenderer <NSObject>
|
|
|
|
- (void)entitiesForTime:(CMTime)time fps:(NSInteger)fps size:(CGSize)size completion:(void(^)(NSArray<CIImage *> *))completion;
|
|
|
|
@end
|
|
|
|
@protocol TGPhotoPaintStickerRenderView <NSObject>
|
|
|
|
@property (nonatomic, copy) void(^started)(double);
|
|
|
|
- (void)setIsVisible:(bool)isVisible;
|
|
- (void)seekTo:(double)timestamp;
|
|
- (void)play;
|
|
- (void)pause;
|
|
- (void)resetToStart;
|
|
- (int64_t)documentId;
|
|
- (UIImage *)image;
|
|
|
|
@end
|
|
|
|
@protocol TGPhotoPaintStickersScreen <NSObject>
|
|
|
|
@property (nonatomic, copy) void(^screenDidAppear)(void);
|
|
@property (nonatomic, copy) void(^screenWillDisappear)(void);
|
|
|
|
- (void)restore;
|
|
- (void)invalidate;
|
|
|
|
@end
|
|
|
|
@protocol TGCaptionPanelView <NSObject>
|
|
|
|
@property (nonatomic, readonly) UIView *view;
|
|
|
|
- (NSAttributedString *)caption;
|
|
- (void)setCaption:(NSAttributedString *)caption;
|
|
- (void)dismissInput;
|
|
|
|
@property (nonatomic, copy) void(^sendPressed)(NSAttributedString *string);
|
|
@property (nonatomic, copy) void(^focusUpdated)(BOOL focused);
|
|
@property (nonatomic, copy) void(^heightUpdated)(BOOL animated);
|
|
|
|
- (CGFloat)updateLayoutSize:(CGSize)size sideInset:(CGFloat)sideInset;
|
|
- (CGFloat)baseHeight;
|
|
|
|
@end
|
|
|
|
@protocol TGPhotoPaintStickersContext <NSObject>
|
|
|
|
- (int64_t)documentIdForDocument:(id)document;
|
|
- (TGStickerMaskDescription *)maskDescriptionForDocument:(id)document;
|
|
|
|
- (UIView<TGPhotoPaintStickerRenderView> *)stickerViewForDocument:(id)document;
|
|
|
|
@property (nonatomic, copy) id<TGPhotoPaintStickersScreen>(^presentStickersController)(void(^)(id, bool, UIView *, CGRect));
|
|
|
|
@property (nonatomic, copy) id<TGCaptionPanelView>(^captionPanelView)(void);
|
|
|
|
@end
|