mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-19 04:00:54 +00:00
81 lines
1.3 KiB
Objective-C
81 lines
1.3 KiB
Objective-C
#import "TGModernConversationAssociatedInputPanel.h"
|
|
|
|
@implementation TGModernConversationAssociatedInputPanel
|
|
|
|
- (instancetype)initWithStyle:(TGModernConversationAssociatedInputPanelStyle)style
|
|
{
|
|
_style = style;
|
|
return [self initWithFrame:CGRectZero];
|
|
}
|
|
|
|
- (instancetype)initWithFrame:(CGRect)frame
|
|
{
|
|
self = [super initWithFrame:frame];
|
|
if (self != nil)
|
|
{
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (CGFloat)preferredHeight
|
|
{
|
|
return 75.0f;
|
|
}
|
|
|
|
- (bool)displayForTextEntryOnly {
|
|
return false;
|
|
}
|
|
|
|
- (bool)fillsAvailableSpace {
|
|
return false;
|
|
}
|
|
|
|
- (void)setNeedsPreferredHeightUpdate
|
|
{
|
|
if (_preferredHeightUpdated)
|
|
_preferredHeightUpdated();
|
|
}
|
|
|
|
- (void)setSendAreaWidth:(CGFloat)__unused sendAreaWidth attachmentAreaWidth:(CGFloat)__unused attachmentAreaWidth
|
|
{
|
|
}
|
|
|
|
- (void)setContentAreaHeight:(CGFloat)__unused contentAreaHeight {
|
|
}
|
|
|
|
- (bool)hasSelectedItem
|
|
{
|
|
return false;
|
|
}
|
|
|
|
- (void)selectPreviousItem
|
|
{
|
|
}
|
|
|
|
- (void)selectNextItem
|
|
{
|
|
}
|
|
|
|
- (void)commitSelectedItem
|
|
{
|
|
}
|
|
|
|
- (void)animateIn {
|
|
}
|
|
|
|
- (void)animateOut:(void (^)())completion {
|
|
if (completion) {
|
|
completion();
|
|
}
|
|
}
|
|
|
|
- (void)setBarInset:(CGFloat)barInset {
|
|
[self setBarInset:barInset animated:false];
|
|
}
|
|
|
|
- (void)setBarInset:(CGFloat)barInset animated:(bool)__unused animated {
|
|
_barInset = barInset;
|
|
}
|
|
|
|
@end
|