-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTLStyledTextBlock.h
More file actions
29 lines (22 loc) · 866 Bytes
/
TLStyledTextBlock.h
File metadata and controls
29 lines (22 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// TLStyledTextBlock.h
// TLCommon
//
// Created by Joshua Bleecher Snyder on 10/26/09.
//
#import <Foundation/Foundation.h>
@class TLStyledTextFragment;
@interface TLStyledTextBlock : NSObject {
@private
NSMutableArray *lines; // each of these is an array of TLDrawnTextFragments
CGFloat lineWidth;
NSMutableDictionary *originalFragmentForNewFragment;
NSMutableDictionary *newFragmentsForOriginalFragment;
}
+ (TLStyledTextBlock *)blockWithFragments:(NSArray *)textFragments lineWidth:(CGFloat)width;
- (CGFloat)height;
- (NSArray *)siblingFragmentsForFragment:(TLStyledTextFragment *)fragment;
- (TLStyledTextFragment *)originalFragmentForFragment:(TLStyledTextFragment *)fragment;
- (void)renderAtPoint:(CGPoint)point textAlignment:(UITextAlignment)textAlignment;
- (TLStyledTextFragment *)fragmentAtPoint:(CGPoint)pointWithinTextBlock;
@end