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

30 lines
977 B
Objective-C

/*
* This is the source code of Telegram for iOS v. 1.1
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Peter Iakovlev, 2013.
*/
#import "TGCollectionItem.h"
@interface TGCommentCollectionItem : TGCollectionItem
@property (nonatomic) bool skipLastLineInSizeComputation;
@property (nonatomic) CGFloat topInset;
@property (nonatomic) CGFloat bottomInset;
@property (nonatomic) CGFloat alpha;
@property (nonatomic) bool hidden;
@property (nonatomic, strong) UIColor *textColor;
@property (nonatomic, strong) NSString *text;
@property (nonatomic) bool showProgress;
@property (nonatomic, copy) void (^action)();
- (instancetype)initWithText:(NSString *)text;
- (instancetype)initWithFormattedText:(NSString *)text;
- (void)setFormattedText:(NSString *)formattedText;
+ (NSAttributedString *)attributedStringFromText:(NSString *)text allowFormatting:(bool)allowFormatting;
@end