1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-04 02:17:51 +01:00
Telegram/Telegraph/TGModernConversationAssociatedInputPanel.h

28 lines
845 B
C
Raw Normal View History

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