mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-11-12 01:59:48 +01:00
36 lines
1.1 KiB
Objective-C
36 lines
1.1 KiB
Objective-C
#import <TargetConditionals.h>
|
|
#if TARGET_OS_IOS
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "IDBlockDocument.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
typedef NS_ENUM(NSInteger, IDCanonicalBoundarySide) {
|
|
IDCanonicalBoundarySideText,
|
|
IDCanonicalBoundarySideBeforeSeparator,
|
|
IDCanonicalBoundarySideAfterSeparator,
|
|
};
|
|
|
|
@interface IDCanonicalLocation : NSObject
|
|
@property(nonatomic, copy, readonly) NSUUID *blockIdentifier;
|
|
@property(nonatomic, readonly) NSUInteger localOffset;
|
|
@property(nonatomic, readonly) IDCanonicalBoundarySide boundarySide;
|
|
@end
|
|
|
|
@interface IDCanonicalTextProjection : NSObject
|
|
@property(nonatomic, weak, readonly) IDBlockDocument *document;
|
|
@property(nonatomic, copy, readonly) NSString *string;
|
|
@property(nonatomic, copy, readonly) NSAttributedString *attributedString;
|
|
|
|
- (instancetype)initWithDocument:(IDBlockDocument *)document;
|
|
- (nullable IDCanonicalLocation *)locationForCanonicalOffset:(NSUInteger)offset;
|
|
- (NSUInteger)canonicalOffsetForBlockIdentifier:(NSUUID *)identifier
|
|
localOffset:(NSUInteger)localOffset;
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|
|
#endif
|