Files
GLEGram-iOS/submodules/LegacyComponents/PublicHeaders/LegacyComponents/TGPhotoCaptionInputMixin.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

59 lines
2.2 KiB
Objective-C

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@protocol TGPhotoPaintStickersContext;
@protocol TGCaptionPanelView;
@protocol TGLivePhotoButton;
@interface TGPhotoCaptionInputMixin : NSObject
@property (nonatomic, strong) id<TGPhotoPaintStickersContext> stickersContext;
@property (nonatomic, readonly) UIView *backgroundView;
@property (nonatomic, readonly) id<TGCaptionPanelView> inputPanel;
@property (nonatomic, readonly) UIView *inputPanelView;
@property (nonatomic, readonly) UIView *dismissView;
@property (nonatomic, readonly) id<TGLivePhotoButton> livePhotoButton;
@property (nonatomic, readonly) UIView *livePhotoButtonView;
@property (nonatomic, assign) UIInterfaceOrientation interfaceOrientation;
@property (nonatomic, readonly) CGFloat keyboardHeight;
@property (nonatomic, assign) CGFloat contentAreaHeight;
@property (nonatomic, assign) UIEdgeInsets safeAreaInset;
@property (nonatomic, assign) bool allowEntities;
@property (nonatomic, copy) UIView *(^panelParentView)(void);
@property (nonatomic, copy) void (^panelFocused)(void);
@property (nonatomic, copy) void (^finishedWithCaption)(NSAttributedString *caption);
@property (nonatomic, copy) void (^keyboardHeightChanged)(CGFloat keyboardHeight, NSTimeInterval duration, NSInteger animationCurve);
@property (nonatomic, copy) void (^timerUpdated)(NSNumber *timeout);
@property (nonatomic, copy) void (^captionIsAboveUpdated)(bool captionIsAbove);
@property (nonatomic, copy) void(^livePhotoModeUpdated)(NSUInteger mode);
@property (nonatomic, readonly) bool editing;
- (void)createInputPanelIfNeeded;
- (void)activateInput;
- (void)beginEditing;
- (void)finishEditing;
- (void)enableDismissal;
- (void)onAnimateOut;
- (void)destroy;
@property (nonatomic, strong) NSAttributedString *caption;
- (void)setCaption:(NSAttributedString *)caption animated:(bool)animated;
- (void)setCaptionPanelHidden:(bool)hidden animated:(bool)animated;
- (void)setTimeout:(int32_t)timeout isVideo:(bool)isVideo isCaptionAbove:(bool)isCaptionAbove;
- (void)setLivePhotoHidden:(bool)hidden;
- (void)setLivePhotoMode:(NSUInteger)mode;
- (void)updateLayoutWithFrame:(CGRect)frame edgeInsets:(UIEdgeInsets)edgeInsets animated:(bool)animated;
@end