1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/Telegraph/TGStickerKeyboardView.h
2016-02-25 01:03:51 +01:00

27 lines
750 B
Objective-C

#import <UIKit/UIKit.h>
@class TGViewController;
@class TGDocumentMediaAttachment;
typedef enum
{
TGStickerKeyboardViewDefaultStyle,
TGStickerKeyboardViewDarkBlurredStyle
} TGStickerKeyboardViewStyle;
@interface TGStickerKeyboardView : UIView
@property (nonatomic) bool enableAnimation;
@property (nonatomic, weak) TGViewController *parentViewController;
@property (nonatomic, copy) void (^stickerSelected)(TGDocumentMediaAttachment *);
@property (nonatomic, copy) void (^gifSelected)(TGDocumentMediaAttachment *);
@property (nonatomic, copy) void (^gifTabActive)(bool active);
- (instancetype)initWithFrame:(CGRect)frame style:(TGStickerKeyboardViewStyle)style;
- (void)sizeToFitForWidth:(CGFloat)width;
- (void)updateIfNeeded;
@end