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 <UIKit/UIKit.h>
|
|
|
|
@class IDBlockDocument;
|
|
@class IDBlockStackCanvasView;
|
|
@class IDCanonicalTextStorageAdapter;
|
|
@class IDRichTextPosition;
|
|
@class IDRichTextRange;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface IDRichTextLayoutController : NSObject {
|
|
@private
|
|
__strong id _id_textInputControllerConnection;
|
|
}
|
|
|
|
@property(nonatomic, strong, readonly) IDBlockDocument *document;
|
|
@property(nonatomic, strong, readonly) IDCanonicalTextStorageAdapter *textStorageAdapter;
|
|
@property(nonatomic, strong, nullable, readonly) id inputController;
|
|
|
|
- (instancetype)initWithDocument:(IDBlockDocument *)document
|
|
blockStack:(IDBlockStackCanvasView *)blockStack;
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
- (IDRichTextPosition *)positionForCanonicalOffset:(NSUInteger)offset
|
|
affinity:(UITextStorageDirection)affinity;
|
|
- (IDRichTextRange *)rangeForCanonicalRange:(NSRange)range;
|
|
- (NSRange)canonicalRangeForTextRange:(IDRichTextRange *)range clipped:(BOOL)clipped;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|
|
#endif
|