forked from scribendi/cindex-mac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLayoutDescriptor.h
36 lines (34 loc) · 990 Bytes
/
LayoutDescriptor.h
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
30
31
32
33
34
35
36
//
// LayoutDescriptor.h
// Cindex
//
// Created by PL on 4/9/05.
// Copyright 2005 Indexing Research. All rights reserved.
//
#import "IRAttributedDisplayString.h"
@interface LayoutDescriptor : NSObject {
RECN _record;
int _recordsConsumed;
NSAttributedString * _entry;
NSUInteger _length;
NSUInteger _lineCount;
float _height;
NSMutableArray * _lineRanges;
NSMutableArray * _lineHeights;
}
- (id)initWithStorage:(NSTextStorage *)storage range:(NSRange)range;
- (id)initWithStorage:(NSTextStorage *)storage entry:(IRAttributedDisplayString *)string;
- (NSRange)displayRangeForSourceRange:(NSRange)range;
- (RECN)record;
- (int)recordsConsumed;
- (void)setEntry:(NSAttributedString *)text;
- (NSAttributedString *)entry;
- (void)setEntryLength:(NSUInteger)length;
- (NSUInteger)entryLength;
- (void)setLineCount:(NSUInteger)count;
- (NSUInteger)lineCount;
- (void)setHeight:(float)height;
- (float)height;
- (NSMutableArray *)lineRanges;
- (NSMutableArray *)lineHeights;
@end