2015-10-01 18:19:52 +02:00
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
TGModernConversationAssociatedInputPanelDefaultStyle,
|
2016-02-25 01:03:51 +01:00
|
|
|
TGModernConversationAssociatedInputPanelDarkStyle,
|
|
|
|
TGModernConversationAssociatedInputPanelDarkBlurredStyle
|
2015-10-01 18:19:52 +02:00
|
|
|
} TGModernConversationAssociatedInputPanelStyle;
|
|
|
|
|
|
|
|
@interface TGModernConversationAssociatedInputPanel : UIView
|
|
|
|
|
|
|
|
@property (nonatomic, readonly) TGModernConversationAssociatedInputPanelStyle style;
|
|
|
|
@property (nonatomic, copy) void (^preferredHeightUpdated)();
|
|
|
|
|
|
|
|
- (CGFloat)preferredHeight;
|
2016-02-25 01:03:51 +01:00
|
|
|
- (bool)displayForTextEntryOnly;
|
2015-10-01 18:19:52 +02:00
|
|
|
- (void)setNeedsPreferredHeightUpdate;
|
|
|
|
|
|
|
|
- (void)setSendAreaWidth:(CGFloat)sendAreaWidth attachmentAreaWidth:(CGFloat)attachmentAreaWidth;
|
|
|
|
|
|
|
|
- (instancetype)initWithStyle:(TGModernConversationAssociatedInputPanelStyle)style;
|
|
|
|
|
2016-02-25 01:03:51 +01:00
|
|
|
- (void)selectPreviousItem;
|
|
|
|
- (void)selectNextItem;
|
|
|
|
- (void)commitSelectedItem;
|
|
|
|
|
2015-10-01 18:19:52 +02:00
|
|
|
@end
|