@class TSUColor, NSString, TSWPPadding, TSDLayout, TSWPListStyle, TSWPColumnStyle, TSWPStorage, NSObject, NSMutableArray, TSWPParagraphStyle, TSPObject, TSDCanvas; @protocol TSWPStyleProvider, TSWPTextDelegate, TSWPOffscreenColumn, TSWPFootnoteHeightMeasurer, TSDHint, TSWPFootnoteMarkProvider; @interface TSWPText : NSObject <TSWPLayoutTarget, TSWPLayoutOwner, TSWPColumnMetrics> { TSWPListStyle *_listStyle; TSWPColumnStyle *_columnStyle; TSWPStorage *_storage; struct CGSize { double width; double height; } _minSize; struct CGSize { double width; double height; } _maxSize; unsigned long long _pageNumber; unsigned long long _pageCount; int _flags; struct CGPoint { double x; double y; } _anchor; } @property (nonatomic) NSObject<TSWPTextDelegate> *delegate; @property (readonly, nonatomic) TSWPParagraphStyle *paragraphStyle; @property (retain, nonatomic) TSUColor *textColorOverride; @property (retain, nonatomic) id<TSWPStyleProvider> styleProvider; @property (nonatomic) unsigned int maxLineCount; @property (nonatomic) BOOL allowsLastLineTruncation; @property (nonatomic) double reservedWidthWhenTruncating; @property (readonly, retain, nonatomic) NSMutableArray *columns; @property (readonly, retain, nonatomic) id<TSWPOffscreenColumn> previousTargetLastColumn; @property (readonly, nonatomic) const void *previousTargetTopicNumbers; @property (readonly, retain, nonatomic) id<TSWPOffscreenColumn> nextTargetFirstColumn; @property (readonly, nonatomic) const void *nextTargetTopicNumbers; @property (readonly, nonatomic) id<TSWPFootnoteHeightMeasurer> footnoteHeightMeasurer; @property (readonly, nonatomic) id<TSWPFootnoteMarkProvider> footnoteMarkProvider; @property (readonly, nonatomic) TSPObject<TSDHint> *nextTargetFirstChildHint; @property (readonly, nonatomic) struct CGSize { double x0; double x1; } minSize; @property (readonly, nonatomic) struct CGSize { double x0; double x1; } maxSize; @property (readonly, nonatomic) struct CGSize { double x0; double x1; } currentSize; @property (readonly, nonatomic) struct CGPoint { double x0; double x1; } position; @property (readonly, nonatomic) struct CGPoint { double x0; double x1; } anchorPoint; @property (readonly, nonatomic) unsigned int autosizeFlags; @property (readonly, nonatomic) unsigned int verticalAlignment; @property (readonly, nonatomic) unsigned int naturalAlignment; @property (readonly, nonatomic) int naturalDirection; @property (readonly, nonatomic) BOOL wantsLineFragments; @property (readonly, nonatomic) unsigned long long pageNumber; @property (readonly, nonatomic) unsigned long long pageCount; @property (readonly, nonatomic) BOOL textIsVertical; @property (readonly, nonatomic) BOOL layoutIsValid; @property (readonly, nonatomic) double maxAnchorY; @property (readonly, nonatomic) struct CGRect { struct CGPoint { double x0; double x1; } x0; struct CGSize { double x0; double x1; } x1; } maskRect; @property (retain, nonatomic) NSMutableArray *anchoredDrawablesForRelayout; @property (readonly, nonatomic) TSDCanvas *canvas; @property (readonly, nonatomic) TSDLayout *parentLayoutForInlineAttachments; @property (readonly, nonatomic) BOOL shouldHyphenate; @property (readonly, nonatomic) struct __CFLocale { } *hyphenationLocale; @property (readonly, nonatomic) BOOL ignoresEquationAlignment; @property (readonly, nonatomic) BOOL allowsDescendersToClip; @property (readonly, nonatomic) BOOL pushAscendersIntoColumn; @property (readonly, nonatomic) BOOL alwaysAllowWordSplit; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (readonly, copy) NSString *description; @property (readonly, copy) NSString *debugDescription; @property (readonly, nonatomic) struct CGSize { double x0; double x1; } adjustedInsets; @property (readonly, nonatomic) TSWPPadding *layoutMargins; @property (readonly, nonatomic) unsigned long long columnCount; @property (readonly, nonatomic) BOOL alwaysStartsNewTarget; @property (readonly, nonatomic) BOOL shrinkTextToFit; @property (readonly, nonatomic) BOOL columnsAreLeftToRight; @property (readonly, nonatomic) double textScaleFactor; + (void)renderColumn:(id)a0 selection:(id)a1 inContext:(struct CGContext { } *)a2 isFlipped:(BOOL)a3 viewScale:(double)a4; + (void)renderColumns:(id)a0 selection:(id)a1 inContext:(struct CGContext { } *)a2 isFlipped:(BOOL)a3 viewScale:(double)a4; - (void)dealloc; - (struct CGSize { double x0; double x1; })measureStorage:(id)a0; - (void)addAttachmentLayout:(id)a0; - (BOOL)adjustColumnOriginForAlignment; - (id)columnMetricsForCharIndex:(unsigned long long)a0 outRange:(struct _NSRange { unsigned long long x0; unsigned long long x1; } *)a1; - (id)currentAnchoredDrawableLayouts; - (id)currentInlineDrawableLayouts; - (double)gapForColumnIndex:(unsigned long long)a0 bodyWidth:(double)a1; - (id)initWithParagraphStyle:(id)a0; - (BOOL)isLastTarget; - (BOOL)isLayoutOffscreen; - (unsigned long long)iterativeAttachmentPositioningMaxPassCount; - (id)layoutForInlineDrawable:(id)a0; - (double)positionForColumnIndex:(unsigned long long)a0 bodyWidth:(double)a1 outWidth:(double *)a2 outGap:(double *)a3; - (void)setNeedsDisplayInTargetRect:(struct CGRect { struct CGPoint { double x0; double x1; } x0; struct CGSize { double x0; double x1; } x1; })a0; - (BOOL)shouldPositionAttachmentsIteratively; - (struct CGRect { struct CGPoint { double x0; double x1; } x0; struct CGSize { double x0; double x1; } x1; })targetRectForCanvasRect:(struct CGRect { struct CGPoint { double x0; double x1; } x0; struct CGSize { double x0; double x1; } x1; })a0; - (id)textWrapper; - (id)validatedLayoutForAnchoredDrawable:(id)a0; - (double)widthForColumnIndex:(unsigned long long)a0 bodyWidth:(double)a1; - (BOOL)caresAboutStorageChanges; - (void)drawColumn:(id)a0 inContext:(struct CGContext { } *)a1 isFlipped:(BOOL)a2 viewScale:(double)a3; - (void)drawColumn:(id)a0 selection:(id)a1 inContext:(struct CGContext { } *)a2 isFlipped:(BOOL)a3 viewScale:(double)a4; - (void)drawText:(id)a0 inContext:(struct CGContext { } *)a1 minSize:(struct CGSize { double x0; double x1; })a2 maxSize:(struct CGSize { double x0; double x1; })a3 anchor:(struct CGPoint { double x0; double x1; })a4 flags:(int)a5 viewScale:(double)a6; - (BOOL)forceWesternLineBreaking; - (id)initWithParagraphStyle:(id)a0 columnStyle:(id)a1; - (id)initWithParagraphStyle:(id)a0 columnStyle:(id)a1 alignmentForNaturalAlignment:(unsigned int)a2 naturalDirection:(int)a3; - (id)initWithParagraphStyle:(id)a0 listStyle:(id)a1; - (id)initWithParagraphStyle:(id)a0 listStyle:(id)a1 columnStyle:(id)a2; - (id)initWithParagraphStyle:(id)a0 listStyle:(id)a1 columnStyle:(id)a2 alignmentForNaturalAlignment:(unsigned int)a3 naturalDirection:(int)a4; - (void)layoutManager:(id)a0 didClearDirtyRangeWithDelta:(long long)a1 afterCharIndex:(unsigned long long)a2; - (void)layoutManagerNeedsLayout:(id)a0; - (id)layoutMultiColumnTextStorage:(id)a0 minSize:(struct CGSize { double x0; double x1; })a1 maxSize:(struct CGSize { double x0; double x1; })a2 anchor:(struct CGPoint { double x0; double x1; })a3 pageNumber:(unsigned long long)a4 pageCount:(unsigned long long)a5 flags:(int)a6; - (id)layoutText:(id)a0 kind:(int)a1 minSize:(struct CGSize { double x0; double x1; })a2 maxSize:(struct CGSize { double x0; double x1; })a3 anchor:(struct CGPoint { double x0; double x1; })a4 flags:(int)a5; - (id)layoutText:(id)a0 minSize:(struct CGSize { double x0; double x1; })a1 maxSize:(struct CGSize { double x0; double x1; })a2 anchor:(struct CGPoint { double x0; double x1; })a3 flags:(int)a4; - (id)layoutTextStorage:(id)a0 minSize:(struct CGSize { double x0; double x1; })a1 maxSize:(struct CGSize { double x0; double x1; })a2 anchor:(struct CGPoint { double x0; double x1; })a3 flags:(int)a4; - (id)layoutTextStorage:(id)a0 minSize:(struct CGSize { double x0; double x1; })a1 maxSize:(struct CGSize { double x0; double x1; })a2 anchor:(struct CGPoint { double x0; double x1; })a3 pageNumber:(unsigned long long)a4 pageCount:(unsigned long long)a5 flags:(int)a6; - (id)lineHintsForTarget:(id)a0; - (struct CGSize { double x0; double x1; })measureText:(id)a0; @end