Files
ghostgram/submodules/TelegramUI/Components/RichTextEditor/Sources/RichTextInputDecUpstream/include/IDTextRenderingSurfaceView.h
T
ichmagmaus111andClaude Opus 5.5 534cabe35b bug fixes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 16:55:08 +01:00

35 lines
1.2 KiB
Objective-C

#import <TargetConditionals.h>
#if TARGET_OS_IOS
@import UIKit;
NS_ASSUME_NONNULL_BEGIN
typedef void (^IDTextAttachmentEnumerationBlock)(UIView *view, CGRect fragmentFrame);
@interface IDTextRenderingSurfaceView : UIView
@property(nonatomic, strong, nullable, readonly) NSTextLayoutFragment *layoutFragment;
@property(nonatomic, readonly) CGPoint containerOrigin;
@property(nonatomic, readonly) CGSize containerSize;
@property(nonatomic, readonly) CGRect clipRect;
- (instancetype)initWithLayoutFragment:(NSTextLayoutFragment *)layoutFragment
containerOrigin:(CGPoint)containerOrigin
containerSize:(CGSize)containerSize
clipRect:(CGRect)clipRect NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;
- (void)performChanges:(dispatch_block_t)changes;
- (void)setContainerOrigin:(CGPoint)containerOrigin;
- (void)setContainerSize:(CGSize)containerSize;
- (void)setClipRect:(CGRect)clipRect;
- (void)enumerateTextAttachmentViewsUsingBlock:(IDTextAttachmentEnumerationBlock)block;
- (void)teardown;
@end
NS_ASSUME_NONNULL_END
#endif