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

28 lines
845 B
Objective-C

#import <UIKit/UIKit.h>
typedef enum
{
TGModernConversationAssociatedInputPanelDefaultStyle,
TGModernConversationAssociatedInputPanelDarkStyle,
TGModernConversationAssociatedInputPanelDarkBlurredStyle
} TGModernConversationAssociatedInputPanelStyle;
@interface TGModernConversationAssociatedInputPanel : UIView
@property (nonatomic, readonly) TGModernConversationAssociatedInputPanelStyle style;
@property (nonatomic, copy) void (^preferredHeightUpdated)();
- (CGFloat)preferredHeight;
- (bool)displayForTextEntryOnly;
- (void)setNeedsPreferredHeightUpdate;
- (void)setSendAreaWidth:(CGFloat)sendAreaWidth attachmentAreaWidth:(CGFloat)attachmentAreaWidth;
- (instancetype)initWithStyle:(TGModernConversationAssociatedInputPanelStyle)style;
- (void)selectPreviousItem;
- (void)selectNextItem;
- (void)commitSelectedItem;
@end