tns-platform-declarations
Version:
Platform-specific TypeScript declarations for NativeScript for accessing native objects
1,498 lines (783 loc) • 592 kB
TypeScript
declare function CGAffineTransformFromString(string: string): CGAffineTransform;
declare function CGPointFromString(string: string): CGPoint;
declare function CGRectFromString(string: string): CGRect;
declare function CGSizeFromString(string: string): CGSize;
declare function CGVectorFromString(string: string): CGVector;
declare var NSAttachmentAttributeName: string;
declare const NSAttachmentCharacter: number;
declare var NSBackgroundColorAttributeName: string;
declare var NSBackgroundColorDocumentAttribute: string;
declare var NSBaselineOffsetAttributeName: string;
declare var NSCharacterEncodingDocumentAttribute: string;
declare var NSCharacterEncodingDocumentOption: string;
declare var NSCocoaVersionDocumentAttribute: string;
declare class NSCollectionLayoutAnchor extends NSObject implements NSCopying {
static alloc(): NSCollectionLayoutAnchor; // inherited from NSObject
static layoutAnchorWithEdges(edges: NSDirectionalRectEdge): NSCollectionLayoutAnchor;
static layoutAnchorWithEdgesAbsoluteOffset(edges: NSDirectionalRectEdge, absoluteOffset: CGPoint): NSCollectionLayoutAnchor;
static layoutAnchorWithEdgesFractionalOffset(edges: NSDirectionalRectEdge, fractionalOffset: CGPoint): NSCollectionLayoutAnchor;
static new(): NSCollectionLayoutAnchor; // inherited from NSObject
readonly edges: NSDirectionalRectEdge;
readonly isAbsoluteOffset: boolean;
readonly isFractionalOffset: boolean;
readonly offset: CGPoint;
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
}
declare class NSCollectionLayoutBoundarySupplementaryItem extends NSCollectionLayoutSupplementaryItem implements NSCopying {
static alloc(): NSCollectionLayoutBoundarySupplementaryItem; // inherited from NSObject
static boundarySupplementaryItemWithLayoutSizeElementKindAlignment(layoutSize: NSCollectionLayoutSize, elementKind: string, alignment: NSRectAlignment): NSCollectionLayoutBoundarySupplementaryItem;
static boundarySupplementaryItemWithLayoutSizeElementKindAlignmentAbsoluteOffset(layoutSize: NSCollectionLayoutSize, elementKind: string, alignment: NSRectAlignment, absoluteOffset: CGPoint): NSCollectionLayoutBoundarySupplementaryItem;
static itemWithLayoutSize(layoutSize: NSCollectionLayoutSize): NSCollectionLayoutBoundarySupplementaryItem; // inherited from NSCollectionLayoutItem
static itemWithLayoutSizeSupplementaryItems(layoutSize: NSCollectionLayoutSize, supplementaryItems: NSArray<NSCollectionLayoutSupplementaryItem> | NSCollectionLayoutSupplementaryItem[]): NSCollectionLayoutBoundarySupplementaryItem; // inherited from NSCollectionLayoutItem
static new(): NSCollectionLayoutBoundarySupplementaryItem; // inherited from NSObject
static supplementaryItemWithLayoutSizeElementKindContainerAnchor(layoutSize: NSCollectionLayoutSize, elementKind: string, containerAnchor: NSCollectionLayoutAnchor): NSCollectionLayoutBoundarySupplementaryItem; // inherited from NSCollectionLayoutSupplementaryItem
static supplementaryItemWithLayoutSizeElementKindContainerAnchorItemAnchor(layoutSize: NSCollectionLayoutSize, elementKind: string, containerAnchor: NSCollectionLayoutAnchor, itemAnchor: NSCollectionLayoutAnchor): NSCollectionLayoutBoundarySupplementaryItem; // inherited from NSCollectionLayoutSupplementaryItem
readonly alignment: NSRectAlignment;
extendsBoundary: boolean;
readonly offset: CGPoint;
pinToVisibleBounds: boolean;
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
}
interface NSCollectionLayoutContainer extends NSObjectProtocol {
contentInsets: NSDirectionalEdgeInsets;
contentSize: CGSize;
effectiveContentInsets: NSDirectionalEdgeInsets;
effectiveContentSize: CGSize;
}
declare var NSCollectionLayoutContainer: {
prototype: NSCollectionLayoutContainer;
};
declare class NSCollectionLayoutDecorationItem extends NSCollectionLayoutItem implements NSCopying {
static alloc(): NSCollectionLayoutDecorationItem; // inherited from NSObject
static backgroundDecorationItemWithElementKind(elementKind: string): NSCollectionLayoutDecorationItem;
static itemWithLayoutSize(layoutSize: NSCollectionLayoutSize): NSCollectionLayoutDecorationItem; // inherited from NSCollectionLayoutItem
static itemWithLayoutSizeSupplementaryItems(layoutSize: NSCollectionLayoutSize, supplementaryItems: NSArray<NSCollectionLayoutSupplementaryItem> | NSCollectionLayoutSupplementaryItem[]): NSCollectionLayoutDecorationItem; // inherited from NSCollectionLayoutItem
static new(): NSCollectionLayoutDecorationItem; // inherited from NSObject
readonly elementKind: string;
zIndex: number;
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
}
declare class NSCollectionLayoutDimension extends NSObject implements NSCopying {
static absoluteDimension(absoluteDimension: number): NSCollectionLayoutDimension;
static alloc(): NSCollectionLayoutDimension; // inherited from NSObject
static estimatedDimension(estimatedDimension: number): NSCollectionLayoutDimension;
static fractionalHeightDimension(fractionalHeight: number): NSCollectionLayoutDimension;
static fractionalWidthDimension(fractionalWidth: number): NSCollectionLayoutDimension;
static new(): NSCollectionLayoutDimension; // inherited from NSObject
readonly dimension: number;
readonly isAbsolute: boolean;
readonly isEstimated: boolean;
readonly isFractionalHeight: boolean;
readonly isFractionalWidth: boolean;
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
}
declare class NSCollectionLayoutEdgeSpacing extends NSObject implements NSCopying {
static alloc(): NSCollectionLayoutEdgeSpacing; // inherited from NSObject
static new(): NSCollectionLayoutEdgeSpacing; // inherited from NSObject
static spacingForLeadingTopTrailingBottom(leading: NSCollectionLayoutSpacing, top: NSCollectionLayoutSpacing, trailing: NSCollectionLayoutSpacing, bottom: NSCollectionLayoutSpacing): NSCollectionLayoutEdgeSpacing;
readonly bottom: NSCollectionLayoutSpacing;
readonly leading: NSCollectionLayoutSpacing;
readonly top: NSCollectionLayoutSpacing;
readonly trailing: NSCollectionLayoutSpacing;
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
}
interface NSCollectionLayoutEnvironment extends NSObjectProtocol {
container: NSCollectionLayoutContainer;
traitCollection: UITraitCollection;
}
declare var NSCollectionLayoutEnvironment: {
prototype: NSCollectionLayoutEnvironment;
};
declare class NSCollectionLayoutGroup extends NSCollectionLayoutItem implements NSCopying {
static alloc(): NSCollectionLayoutGroup; // inherited from NSObject
static customGroupWithLayoutSizeItemProvider(layoutSize: NSCollectionLayoutSize, itemProvider: (p1: NSCollectionLayoutEnvironment) => NSArray<NSCollectionLayoutGroupCustomItem>): NSCollectionLayoutGroup;
static horizontalGroupWithLayoutSizeSubitemCount(layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: number): NSCollectionLayoutGroup;
static horizontalGroupWithLayoutSizeSubitems(layoutSize: NSCollectionLayoutSize, subitems: NSArray<NSCollectionLayoutItem> | NSCollectionLayoutItem[]): NSCollectionLayoutGroup;
static itemWithLayoutSize(layoutSize: NSCollectionLayoutSize): NSCollectionLayoutGroup; // inherited from NSCollectionLayoutItem
static itemWithLayoutSizeSupplementaryItems(layoutSize: NSCollectionLayoutSize, supplementaryItems: NSArray<NSCollectionLayoutSupplementaryItem> | NSCollectionLayoutSupplementaryItem[]): NSCollectionLayoutGroup; // inherited from NSCollectionLayoutItem
static new(): NSCollectionLayoutGroup; // inherited from NSObject
static verticalGroupWithLayoutSizeSubitemCount(layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: number): NSCollectionLayoutGroup;
static verticalGroupWithLayoutSizeSubitems(layoutSize: NSCollectionLayoutSize, subitems: NSArray<NSCollectionLayoutItem> | NSCollectionLayoutItem[]): NSCollectionLayoutGroup;
interItemSpacing: NSCollectionLayoutSpacing;
readonly subitems: NSArray<NSCollectionLayoutItem>;
supplementaryItems: NSArray<NSCollectionLayoutSupplementaryItem>;
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
visualDescription(): string;
}
declare class NSCollectionLayoutGroupCustomItem extends NSObject implements NSCopying {
static alloc(): NSCollectionLayoutGroupCustomItem; // inherited from NSObject
static customItemWithFrame(frame: CGRect): NSCollectionLayoutGroupCustomItem;
static customItemWithFrameZIndex(frame: CGRect, zIndex: number): NSCollectionLayoutGroupCustomItem;
static new(): NSCollectionLayoutGroupCustomItem; // inherited from NSObject
readonly frame: CGRect;
readonly zIndex: number;
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
}
declare class NSCollectionLayoutItem extends NSObject implements NSCopying {
static alloc(): NSCollectionLayoutItem; // inherited from NSObject
static itemWithLayoutSize(layoutSize: NSCollectionLayoutSize): NSCollectionLayoutItem;
static itemWithLayoutSizeSupplementaryItems(layoutSize: NSCollectionLayoutSize, supplementaryItems: NSArray<NSCollectionLayoutSupplementaryItem> | NSCollectionLayoutSupplementaryItem[]): NSCollectionLayoutItem;
static new(): NSCollectionLayoutItem; // inherited from NSObject
contentInsets: NSDirectionalEdgeInsets;
edgeSpacing: NSCollectionLayoutEdgeSpacing;
readonly layoutSize: NSCollectionLayoutSize;
readonly supplementaryItems: NSArray<NSCollectionLayoutSupplementaryItem>;
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
}
declare class NSCollectionLayoutSection extends NSObject implements NSCopying {
static alloc(): NSCollectionLayoutSection; // inherited from NSObject
static new(): NSCollectionLayoutSection; // inherited from NSObject
static sectionWithGroup(group: NSCollectionLayoutGroup): NSCollectionLayoutSection;
boundarySupplementaryItems: NSArray<NSCollectionLayoutBoundarySupplementaryItem>;
contentInsets: NSDirectionalEdgeInsets;
decorationItems: NSArray<NSCollectionLayoutDecorationItem>;
interGroupSpacing: number;
orthogonalScrollingBehavior: UICollectionLayoutSectionOrthogonalScrollingBehavior;
supplementariesFollowContentInsets: boolean;
visibleItemsInvalidationHandler: (p1: NSArray<NSCollectionLayoutVisibleItem>, p2: CGPoint, p3: NSCollectionLayoutEnvironment) => void;
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
}
declare class NSCollectionLayoutSize extends NSObject implements NSCopying {
static alloc(): NSCollectionLayoutSize; // inherited from NSObject
static new(): NSCollectionLayoutSize; // inherited from NSObject
static sizeWithWidthDimensionHeightDimension(width: NSCollectionLayoutDimension, height: NSCollectionLayoutDimension): NSCollectionLayoutSize;
readonly heightDimension: NSCollectionLayoutDimension;
readonly widthDimension: NSCollectionLayoutDimension;
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
}
declare class NSCollectionLayoutSpacing extends NSObject implements NSCopying {
static alloc(): NSCollectionLayoutSpacing; // inherited from NSObject
static fixedSpacing(fixedSpacing: number): NSCollectionLayoutSpacing;
static flexibleSpacing(flexibleSpacing: number): NSCollectionLayoutSpacing;
static new(): NSCollectionLayoutSpacing; // inherited from NSObject
readonly isFixedSpacing: boolean;
readonly isFlexibleSpacing: boolean;
readonly spacing: number;
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
}
declare class NSCollectionLayoutSupplementaryItem extends NSCollectionLayoutItem implements NSCopying {
static alloc(): NSCollectionLayoutSupplementaryItem; // inherited from NSObject
static itemWithLayoutSize(layoutSize: NSCollectionLayoutSize): NSCollectionLayoutSupplementaryItem; // inherited from NSCollectionLayoutItem
static itemWithLayoutSizeSupplementaryItems(layoutSize: NSCollectionLayoutSize, supplementaryItems: NSArray<NSCollectionLayoutSupplementaryItem> | NSCollectionLayoutSupplementaryItem[]): NSCollectionLayoutSupplementaryItem; // inherited from NSCollectionLayoutItem
static new(): NSCollectionLayoutSupplementaryItem; // inherited from NSObject
static supplementaryItemWithLayoutSizeElementKindContainerAnchor(layoutSize: NSCollectionLayoutSize, elementKind: string, containerAnchor: NSCollectionLayoutAnchor): NSCollectionLayoutSupplementaryItem;
static supplementaryItemWithLayoutSizeElementKindContainerAnchorItemAnchor(layoutSize: NSCollectionLayoutSize, elementKind: string, containerAnchor: NSCollectionLayoutAnchor, itemAnchor: NSCollectionLayoutAnchor): NSCollectionLayoutSupplementaryItem;
readonly containerAnchor: NSCollectionLayoutAnchor;
readonly elementKind: string;
readonly itemAnchor: NSCollectionLayoutAnchor;
zIndex: number;
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
}
interface NSCollectionLayoutVisibleItem extends NSObjectProtocol, UIDynamicItem {
alpha: number;
frame: CGRect;
hidden: boolean;
indexPath: NSIndexPath;
name: string;
representedElementCategory: UICollectionElementCategory;
representedElementKind: string;
transform3D: CATransform3D;
zIndex: number;
}
declare var NSCollectionLayoutVisibleItem: {
prototype: NSCollectionLayoutVisibleItem;
};
declare const enum NSControlCharacterAction {
ZeroAdvancement = 1,
Whitespace = 2,
HorizontalTab = 4,
LineBreak = 8,
ParagraphBreak = 16,
ContainerBreak = 32
}
declare const NSControlCharacterContainerBreakAction: number;
declare const NSControlCharacterHorizontalTabAction: number;
declare const NSControlCharacterLineBreakAction: number;
declare const NSControlCharacterParagraphBreakAction: number;
declare const NSControlCharacterWhitespaceAction: number;
declare const NSControlCharacterZeroAdvancementAction: number;
declare class NSDataAsset extends NSObject implements NSCopying {
static alloc(): NSDataAsset; // inherited from NSObject
static new(): NSDataAsset; // inherited from NSObject
readonly data: NSData;
readonly name: string;
readonly typeIdentifier: string;
constructor(o: { name: string; });
constructor(o: { name: string; bundle: NSBundle; });
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
initWithName(name: string): this;
initWithNameBundle(name: string, bundle: NSBundle): this;
}
declare var NSDefaultAttributesDocumentAttribute: string;
declare var NSDefaultAttributesDocumentOption: string;
declare var NSDefaultTabIntervalDocumentAttribute: string;
declare class NSDiffableDataSourceSnapshot<SectionIdentifierType, ItemIdentifierType> extends NSObject implements NSCopying {
static alloc<SectionIdentifierType, ItemIdentifierType>(): NSDiffableDataSourceSnapshot<SectionIdentifierType, ItemIdentifierType>; // inherited from NSObject
static new<SectionIdentifierType, ItemIdentifierType>(): NSDiffableDataSourceSnapshot<SectionIdentifierType, ItemIdentifierType>; // inherited from NSObject
readonly itemIdentifiers: NSArray<ItemIdentifierType>;
readonly numberOfItems: number;
readonly numberOfSections: number;
readonly sectionIdentifiers: NSArray<SectionIdentifierType>;
appendItemsWithIdentifiers(identifiers: NSArray<ItemIdentifierType> | ItemIdentifierType[]): void;
appendItemsWithIdentifiersIntoSectionWithIdentifier(identifiers: NSArray<ItemIdentifierType> | ItemIdentifierType[], sectionIdentifier: SectionIdentifierType): void;
appendSectionsWithIdentifiers(sectionIdentifiers: NSArray<any> | any[]): void;
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
deleteAllItems(): void;
deleteItemsWithIdentifiers(identifiers: NSArray<ItemIdentifierType> | ItemIdentifierType[]): void;
deleteSectionsWithIdentifiers(sectionIdentifiers: NSArray<SectionIdentifierType> | SectionIdentifierType[]): void;
indexOfItemIdentifier(itemIdentifier: ItemIdentifierType): number;
indexOfSectionIdentifier(sectionIdentifier: SectionIdentifierType): number;
insertItemsWithIdentifiersAfterItemWithIdentifier(identifiers: NSArray<ItemIdentifierType> | ItemIdentifierType[], itemIdentifier: ItemIdentifierType): void;
insertItemsWithIdentifiersBeforeItemWithIdentifier(identifiers: NSArray<ItemIdentifierType> | ItemIdentifierType[], itemIdentifier: ItemIdentifierType): void;
insertSectionsWithIdentifiersAfterSectionWithIdentifier(sectionIdentifiers: NSArray<SectionIdentifierType> | SectionIdentifierType[], toSectionIdentifier: SectionIdentifierType): void;
insertSectionsWithIdentifiersBeforeSectionWithIdentifier(sectionIdentifiers: NSArray<SectionIdentifierType> | SectionIdentifierType[], toSectionIdentifier: SectionIdentifierType): void;
itemIdentifiersInSectionWithIdentifier(sectionIdentifier: SectionIdentifierType): NSArray<ItemIdentifierType>;
moveItemWithIdentifierAfterItemWithIdentifier(fromIdentifier: ItemIdentifierType, toIdentifier: ItemIdentifierType): void;
moveItemWithIdentifierBeforeItemWithIdentifier(fromIdentifier: ItemIdentifierType, toIdentifier: ItemIdentifierType): void;
moveSectionWithIdentifierAfterSectionWithIdentifier(fromSectionIdentifier: SectionIdentifierType, toSectionIdentifier: SectionIdentifierType): void;
moveSectionWithIdentifierBeforeSectionWithIdentifier(fromSectionIdentifier: SectionIdentifierType, toSectionIdentifier: SectionIdentifierType): void;
numberOfItemsInSection(sectionIdentifier: SectionIdentifierType): number;
reloadItemsWithIdentifiers(identifiers: NSArray<ItemIdentifierType> | ItemIdentifierType[]): void;
reloadSectionsWithIdentifiers(sectionIdentifiers: NSArray<SectionIdentifierType> | SectionIdentifierType[]): void;
sectionIdentifierForSectionContainingItemIdentifier(itemIdentifier: ItemIdentifierType): SectionIdentifierType;
}
interface NSDirectionalEdgeInsets {
top: number;
leading: number;
bottom: number;
trailing: number;
}
declare var NSDirectionalEdgeInsets: interop.StructType<NSDirectionalEdgeInsets>;
declare function NSDirectionalEdgeInsetsFromString(string: string): NSDirectionalEdgeInsets;
declare var NSDirectionalEdgeInsetsZero: NSDirectionalEdgeInsets;
declare const enum NSDirectionalRectEdge {
None = 0,
Top = 1,
Leading = 2,
Bottom = 4,
Trailing = 8,
All = 15
}
declare var NSDocumentTypeDocumentAttribute: string;
declare var NSDocumentTypeDocumentOption: string;
declare var NSExpansionAttributeName: string;
declare var NSFontAttributeName: string;
declare var NSForegroundColorAttributeName: string;
declare const enum NSGlyphProperty {
Null = 1,
ControlCharacter = 2,
Elastic = 4,
NonBaseCharacter = 8
}
declare var NSHTMLTextDocumentType: string;
declare var NSHyphenationFactorDocumentAttribute: string;
declare var NSKernAttributeName: string;
declare class NSLayoutAnchor<AnchorType> extends NSObject {
static alloc<AnchorType>(): NSLayoutAnchor<AnchorType>; // inherited from NSObject
static new<AnchorType>(): NSLayoutAnchor<AnchorType>; // inherited from NSObject
constraintEqualToAnchor(anchor: NSLayoutAnchor<AnchorType>): NSLayoutConstraint;
constraintEqualToAnchorConstant(anchor: NSLayoutAnchor<AnchorType>, c: number): NSLayoutConstraint;
constraintGreaterThanOrEqualToAnchor(anchor: NSLayoutAnchor<AnchorType>): NSLayoutConstraint;
constraintGreaterThanOrEqualToAnchorConstant(anchor: NSLayoutAnchor<AnchorType>, c: number): NSLayoutConstraint;
constraintLessThanOrEqualToAnchor(anchor: NSLayoutAnchor<AnchorType>): NSLayoutConstraint;
constraintLessThanOrEqualToAnchorConstant(anchor: NSLayoutAnchor<AnchorType>, c: number): NSLayoutConstraint;
}
declare const enum NSLayoutAttribute {
Left = 1,
Right = 2,
Top = 3,
Bottom = 4,
Leading = 5,
Trailing = 6,
Width = 7,
Height = 8,
CenterX = 9,
CenterY = 10,
LastBaseline = 11,
Baseline = 11,
FirstBaseline = 12,
LeftMargin = 13,
RightMargin = 14,
TopMargin = 15,
BottomMargin = 16,
LeadingMargin = 17,
TrailingMargin = 18,
CenterXWithinMargins = 19,
CenterYWithinMargins = 20,
NotAnAttribute = 0
}
declare class NSLayoutConstraint extends NSObject {
static activateConstraints(constraints: NSArray<NSLayoutConstraint> | NSLayoutConstraint[]): void;
static alloc(): NSLayoutConstraint; // inherited from NSObject
static constraintWithItemAttributeRelatedByToItemAttributeMultiplierConstant(view1: any, attr1: NSLayoutAttribute, relation: NSLayoutRelation, view2: any, attr2: NSLayoutAttribute, multiplier: number, c: number): NSLayoutConstraint;
static constraintsWithVisualFormatOptionsMetricsViews(format: string, opts: NSLayoutFormatOptions, metrics: NSDictionary<string, any>, views: NSDictionary<string, any>): NSArray<NSLayoutConstraint>;
static deactivateConstraints(constraints: NSArray<NSLayoutConstraint> | NSLayoutConstraint[]): void;
static new(): NSLayoutConstraint; // inherited from NSObject
active: boolean;
constant: number;
readonly firstAnchor: NSLayoutAnchor<any>;
readonly firstAttribute: NSLayoutAttribute;
readonly firstItem: any;
identifier: string;
readonly multiplier: number;
priority: number;
readonly relation: NSLayoutRelation;
readonly secondAnchor: NSLayoutAnchor<any>;
readonly secondAttribute: NSLayoutAttribute;
readonly secondItem: any;
shouldBeArchived: boolean;
}
declare class NSLayoutDimension extends NSLayoutAnchor<NSLayoutDimension> {
static alloc(): NSLayoutDimension; // inherited from NSObject
static new(): NSLayoutDimension; // inherited from NSObject
constraintEqualToAnchorMultiplier(anchor: NSLayoutDimension, m: number): NSLayoutConstraint;
constraintEqualToAnchorMultiplierConstant(anchor: NSLayoutDimension, m: number, c: number): NSLayoutConstraint;
constraintEqualToConstant(c: number): NSLayoutConstraint;
constraintGreaterThanOrEqualToAnchorMultiplier(anchor: NSLayoutDimension, m: number): NSLayoutConstraint;
constraintGreaterThanOrEqualToAnchorMultiplierConstant(anchor: NSLayoutDimension, m: number, c: number): NSLayoutConstraint;
constraintGreaterThanOrEqualToConstant(c: number): NSLayoutConstraint;
constraintLessThanOrEqualToAnchorMultiplier(anchor: NSLayoutDimension, m: number): NSLayoutConstraint;
constraintLessThanOrEqualToAnchorMultiplierConstant(anchor: NSLayoutDimension, m: number, c: number): NSLayoutConstraint;
constraintLessThanOrEqualToConstant(c: number): NSLayoutConstraint;
}
declare const enum NSLayoutFormatOptions {
AlignAllLeft = 2,
AlignAllRight = 4,
AlignAllTop = 8,
AlignAllBottom = 16,
AlignAllLeading = 32,
AlignAllTrailing = 64,
AlignAllCenterX = 512,
AlignAllCenterY = 1024,
AlignAllLastBaseline = 2048,
AlignAllFirstBaseline = 4096,
AlignAllBaseline = 2048,
AlignmentMask = 65535,
DirectionLeadingToTrailing = 0,
DirectionLeftToRight = 65536,
DirectionRightToLeft = 131072,
DirectionMask = 196608,
SpacingEdgeToEdge = 0,
SpacingBaselineToBaseline = 524288,
SpacingMask = 524288
}
declare class NSLayoutManager extends NSObject implements NSSecureCoding {
static alloc(): NSLayoutManager; // inherited from NSObject
static new(): NSLayoutManager; // inherited from NSObject
allowsNonContiguousLayout: boolean;
delegate: NSLayoutManagerDelegate;
readonly extraLineFragmentRect: CGRect;
readonly extraLineFragmentTextContainer: NSTextContainer;
readonly extraLineFragmentUsedRect: CGRect;
readonly hasNonContiguousLayout: boolean;
hyphenationFactor: number;
limitsLayoutForSuspiciousContents: boolean;
readonly numberOfGlyphs: number;
showsControlCharacters: boolean;
showsInvisibleCharacters: boolean;
readonly textContainers: NSArray<NSTextContainer>;
textStorage: NSTextStorage;
usesDefaultHyphenation: boolean;
usesFontLeading: boolean;
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
CGGlyphAtIndex(glyphIndex: number): number;
CGGlyphAtIndexIsValidIndex(glyphIndex: number, isValidIndex: interop.Pointer | interop.Reference<boolean>): number;
addTextContainer(container: NSTextContainer): void;
attachmentSizeForGlyphAtIndex(glyphIndex: number): CGSize;
boundingRectForGlyphRangeInTextContainer(glyphRange: NSRange, container: NSTextContainer): CGRect;
characterIndexForGlyphAtIndex(glyphIndex: number): number;
characterIndexForPointInTextContainerFractionOfDistanceBetweenInsertionPoints(point: CGPoint, container: NSTextContainer, partialFraction: interop.Pointer | interop.Reference<number>): number;
characterRangeForGlyphRangeActualGlyphRange(glyphRange: NSRange, actualGlyphRange: interop.Pointer | interop.Reference<NSRange>): NSRange;
drawBackgroundForGlyphRangeAtPoint(glyphsToShow: NSRange, origin: CGPoint): void;
drawGlyphsForGlyphRangeAtPoint(glyphsToShow: NSRange, origin: CGPoint): void;
drawStrikethroughForGlyphRangeStrikethroughTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange: NSRange, strikethroughVal: NSUnderlineStyle, baselineOffset: number, lineRect: CGRect, lineGlyphRange: NSRange, containerOrigin: CGPoint): void;
drawUnderlineForGlyphRangeUnderlineTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange: NSRange, underlineVal: NSUnderlineStyle, baselineOffset: number, lineRect: CGRect, lineGlyphRange: NSRange, containerOrigin: CGPoint): void;
drawsOutsideLineFragmentForGlyphAtIndex(glyphIndex: number): boolean;
encodeWithCoder(coder: NSCoder): void;
ensureGlyphsForCharacterRange(charRange: NSRange): void;
ensureGlyphsForGlyphRange(glyphRange: NSRange): void;
ensureLayoutForBoundingRectInTextContainer(bounds: CGRect, container: NSTextContainer): void;
ensureLayoutForCharacterRange(charRange: NSRange): void;
ensureLayoutForGlyphRange(glyphRange: NSRange): void;
ensureLayoutForTextContainer(container: NSTextContainer): void;
enumerateEnclosingRectsForGlyphRangeWithinSelectedGlyphRangeInTextContainerUsingBlock(glyphRange: NSRange, selectedRange: NSRange, textContainer: NSTextContainer, block: (p1: CGRect, p2: interop.Pointer | interop.Reference<boolean>) => void): void;
enumerateLineFragmentsForGlyphRangeUsingBlock(glyphRange: NSRange, block: (p1: CGRect, p2: CGRect, p3: NSTextContainer, p4: NSRange, p5: interop.Pointer | interop.Reference<boolean>) => void): void;
fillBackgroundRectArrayCountForCharacterRangeColor(rectArray: interop.Pointer | interop.Reference<CGRect>, rectCount: number, charRange: NSRange, color: UIColor): void;
firstUnlaidCharacterIndex(): number;
firstUnlaidGlyphIndex(): number;
fractionOfDistanceThroughGlyphForPointInTextContainer(point: CGPoint, container: NSTextContainer): number;
getFirstUnlaidCharacterIndexGlyphIndex(charIndex: interop.Pointer | interop.Reference<number>, glyphIndex: interop.Pointer | interop.Reference<number>): void;
getGlyphsInRangeGlyphsPropertiesCharacterIndexesBidiLevels(glyphRange: NSRange, glyphBuffer: interop.Pointer | interop.Reference<number>, props: interop.Pointer | interop.Reference<NSGlyphProperty>, charIndexBuffer: interop.Pointer | interop.Reference<number>, bidiLevelBuffer: string | interop.Pointer | interop.Reference<any>): number;
getLineFragmentInsertionPointsForCharacterAtIndexAlternatePositionsInDisplayOrderPositionsCharacterIndexes(charIndex: number, aFlag: boolean, dFlag: boolean, positions: interop.Pointer | interop.Reference<number>, charIndexes: interop.Pointer | interop.Reference<number>): number;
glyphAtIndex(glyphIndex: number): number;
glyphAtIndexIsValidIndex(glyphIndex: number, isValidIndex: interop.Pointer | interop.Reference<boolean>): number;
glyphIndexForCharacterAtIndex(charIndex: number): number;
glyphIndexForPointInTextContainer(point: CGPoint, container: NSTextContainer): number;
glyphIndexForPointInTextContainerFractionOfDistanceThroughGlyph(point: CGPoint, container: NSTextContainer, partialFraction: interop.Pointer | interop.Reference<number>): number;
glyphRangeForBoundingRectInTextContainer(bounds: CGRect, container: NSTextContainer): NSRange;
glyphRangeForBoundingRectWithoutAdditionalLayoutInTextContainer(bounds: CGRect, container: NSTextContainer): NSRange;
glyphRangeForCharacterRangeActualCharacterRange(charRange: NSRange, actualCharRange: interop.Pointer | interop.Reference<NSRange>): NSRange;
glyphRangeForTextContainer(container: NSTextContainer): NSRange;
initWithCoder(coder: NSCoder): this;
insertTextContainerAtIndex(container: NSTextContainer, index: number): void;
invalidateDisplayForCharacterRange(charRange: NSRange): void;
invalidateDisplayForGlyphRange(glyphRange: NSRange): void;
invalidateGlyphsForCharacterRangeChangeInLengthActualCharacterRange(charRange: NSRange, delta: number, actualCharRange: interop.Pointer | interop.Reference<NSRange>): void;
invalidateLayoutForCharacterRangeActualCharacterRange(charRange: NSRange, actualCharRange: interop.Pointer | interop.Reference<NSRange>): void;
isValidGlyphIndex(glyphIndex: number): boolean;
lineFragmentRectForGlyphAtIndexEffectiveRange(glyphIndex: number, effectiveGlyphRange: interop.Pointer | interop.Reference<NSRange>): CGRect;
lineFragmentRectForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(glyphIndex: number, effectiveGlyphRange: interop.Pointer | interop.Reference<NSRange>, flag: boolean): CGRect;
lineFragmentUsedRectForGlyphAtIndexEffectiveRange(glyphIndex: number, effectiveGlyphRange: interop.Pointer | interop.Reference<NSRange>): CGRect;
lineFragmentUsedRectForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(glyphIndex: number, effectiveGlyphRange: interop.Pointer | interop.Reference<NSRange>, flag: boolean): CGRect;
locationForGlyphAtIndex(glyphIndex: number): CGPoint;
notShownAttributeForGlyphAtIndex(glyphIndex: number): boolean;
processEditingForTextStorageEditedRangeChangeInLengthInvalidatedRange(textStorage: NSTextStorage, editMask: NSTextStorageEditActions, newCharRange: NSRange, delta: number, invalidatedCharRange: NSRange): void;
propertyForGlyphAtIndex(glyphIndex: number): NSGlyphProperty;
rangeOfNominallySpacedGlyphsContainingIndex(glyphIndex: number): NSRange;
removeTextContainerAtIndex(index: number): void;
setAttachmentSizeForGlyphRange(attachmentSize: CGSize, glyphRange: NSRange): void;
setDrawsOutsideLineFragmentForGlyphAtIndex(flag: boolean, glyphIndex: number): void;
setExtraLineFragmentRectUsedRectTextContainer(fragmentRect: CGRect, usedRect: CGRect, container: NSTextContainer): void;
setGlyphsPropertiesCharacterIndexesFontForGlyphRange(glyphs: interop.Pointer | interop.Reference<number>, props: interop.Pointer | interop.Reference<NSGlyphProperty>, charIndexes: interop.Pointer | interop.Reference<number>, aFont: UIFont, glyphRange: NSRange): void;
setLineFragmentRectForGlyphRangeUsedRect(fragmentRect: CGRect, glyphRange: NSRange, usedRect: CGRect): void;
setLocationForStartOfGlyphRange(location: CGPoint, glyphRange: NSRange): void;
setNotShownAttributeForGlyphAtIndex(flag: boolean, glyphIndex: number): void;
setTextContainerForGlyphRange(container: NSTextContainer, glyphRange: NSRange): void;
showCGGlyphsPositionsCountFontMatrixAttributesInContext(glyphs: interop.Pointer | interop.Reference<number>, positions: interop.Pointer | interop.Reference<CGPoint>, glyphCount: number, font: UIFont, textMatrix: CGAffineTransform, attributes: NSDictionary<string, any>, graphicsContext: any): void;
showCGGlyphsPositionsCountFontTextMatrixAttributesInContext(glyphs: interop.Pointer | interop.Reference<number>, positions: interop.Pointer | interop.Reference<CGPoint>, glyphCount: number, font: UIFont, textMatrix: CGAffineTransform, attributes: NSDictionary<string, any>, CGContext: any): void;
strikethroughGlyphRangeStrikethroughTypeLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange: NSRange, strikethroughVal: NSUnderlineStyle, lineRect: CGRect, lineGlyphRange: NSRange, containerOrigin: CGPoint): void;
textContainerChangedGeometry(container: NSTextContainer): void;
textContainerForGlyphAtIndexEffectiveRange(glyphIndex: number, effectiveGlyphRange: interop.Pointer | interop.Reference<NSRange>): NSTextContainer;
textContainerForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(glyphIndex: number, effectiveGlyphRange: interop.Pointer | interop.Reference<NSRange>, flag: boolean): NSTextContainer;
truncatedGlyphRangeInLineFragmentForGlyphAtIndex(glyphIndex: number): NSRange;
underlineGlyphRangeUnderlineTypeLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange: NSRange, underlineVal: NSUnderlineStyle, lineRect: CGRect, lineGlyphRange: NSRange, containerOrigin: CGPoint): void;
usedRectForTextContainer(container: NSTextContainer): CGRect;
}
interface NSLayoutManagerDelegate extends NSObjectProtocol {
layoutManagerBoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex?(layoutManager: NSLayoutManager, glyphIndex: number, textContainer: NSTextContainer, proposedRect: CGRect, glyphPosition: CGPoint, charIndex: number): CGRect;
layoutManagerDidCompleteLayoutForTextContainerAtEnd?(layoutManager: NSLayoutManager, textContainer: NSTextContainer, layoutFinishedFlag: boolean): void;
layoutManagerDidInvalidateLayout?(sender: NSLayoutManager): void;
layoutManagerLineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect?(layoutManager: NSLayoutManager, glyphIndex: number, rect: CGRect): number;
layoutManagerParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect?(layoutManager: NSLayoutManager, glyphIndex: number, rect: CGRect): number;
layoutManagerParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentRect?(layoutManager: NSLayoutManager, glyphIndex: number, rect: CGRect): number;
layoutManagerShouldBreakLineByHyphenatingBeforeCharacterAtIndex?(layoutManager: NSLayoutManager, charIndex: number): boolean;
layoutManagerShouldBreakLineByWordBeforeCharacterAtIndex?(layoutManager: NSLayoutManager, charIndex: number): boolean;
layoutManagerShouldGenerateGlyphsPropertiesCharacterIndexesFontForGlyphRange?(layoutManager: NSLayoutManager, glyphs: interop.Pointer | interop.Reference<number>, props: interop.Pointer | interop.Reference<NSGlyphProperty>, charIndexes: interop.Pointer | interop.Reference<number>, aFont: UIFont, glyphRange: NSRange): number;
layoutManagerShouldSetLineFragmentRectLineFragmentUsedRectBaselineOffsetInTextContainerForGlyphRange?(layoutManager: NSLayoutManager, lineFragmentRect: interop.Pointer | interop.Reference<CGRect>, lineFragmentUsedRect: interop.Pointer | interop.Reference<CGRect>, baselineOffset: interop.Pointer | interop.Reference<number>, textContainer: NSTextContainer, glyphRange: NSRange): boolean;
layoutManagerShouldUseActionForControlCharacterAtIndex?(layoutManager: NSLayoutManager, action: NSControlCharacterAction, charIndex: number): NSControlCharacterAction;
layoutManagerTextContainerDidChangeGeometryFromSize?(layoutManager: NSLayoutManager, textContainer: NSTextContainer, oldSize: CGSize): void;
}
declare var NSLayoutManagerDelegate: {
prototype: NSLayoutManagerDelegate;
};
declare const enum NSLayoutRelation {
LessThanOrEqual = -1,
Equal = 0,
GreaterThanOrEqual = 1
}
declare class NSLayoutXAxisAnchor extends NSLayoutAnchor<NSLayoutXAxisAnchor> {
static alloc(): NSLayoutXAxisAnchor; // inherited from NSObject
static new(): NSLayoutXAxisAnchor; // inherited from NSObject
anchorWithOffsetToAnchor(otherAnchor: NSLayoutXAxisAnchor): NSLayoutDimension;
constraintEqualToSystemSpacingAfterAnchorMultiplier(anchor: NSLayoutXAxisAnchor, multiplier: number): NSLayoutConstraint;
constraintGreaterThanOrEqualToSystemSpacingAfterAnchorMultiplier(anchor: NSLayoutXAxisAnchor, multiplier: number): NSLayoutConstraint;
constraintLessThanOrEqualToSystemSpacingAfterAnchorMultiplier(anchor: NSLayoutXAxisAnchor, multiplier: number): NSLayoutConstraint;
}
declare class NSLayoutYAxisAnchor extends NSLayoutAnchor<NSLayoutYAxisAnchor> {
static alloc(): NSLayoutYAxisAnchor; // inherited from NSObject
static new(): NSLayoutYAxisAnchor; // inherited from NSObject
anchorWithOffsetToAnchor(otherAnchor: NSLayoutYAxisAnchor): NSLayoutDimension;
constraintEqualToSystemSpacingBelowAnchorMultiplier(anchor: NSLayoutYAxisAnchor, multiplier: number): NSLayoutConstraint;
constraintGreaterThanOrEqualToSystemSpacingBelowAnchorMultiplier(anchor: NSLayoutYAxisAnchor, multiplier: number): NSLayoutConstraint;
constraintLessThanOrEqualToSystemSpacingBelowAnchorMultiplier(anchor: NSLayoutYAxisAnchor, multiplier: number): NSLayoutConstraint;
}
declare var NSLigatureAttributeName: string;
declare const enum NSLineBreakMode {
ByWordWrapping = 0,
ByCharWrapping = 1,
ByClipping = 2,
ByTruncatingHead = 3,
ByTruncatingTail = 4,
ByTruncatingMiddle = 5
}
declare var NSLinkAttributeName: string;
declare class NSMutableParagraphStyle extends NSParagraphStyle {
static alloc(): NSMutableParagraphStyle; // inherited from NSObject
static new(): NSMutableParagraphStyle; // inherited from NSObject
alignment: NSTextAlignment;
allowsDefaultTighteningForTruncation: boolean;
baseWritingDirection: NSWritingDirection;
defaultTabInterval: number;
firstLineHeadIndent: number;
headIndent: number;
hyphenationFactor: number;
lineBreakMode: NSLineBreakMode;
lineHeightMultiple: number;
lineSpacing: number;
maximumLineHeight: number;
minimumLineHeight: number;
paragraphSpacing: number;
paragraphSpacingBefore: number;
tabStops: NSArray<NSTextTab>;
tailIndent: number;
addTabStop(anObject: NSTextTab): void;
removeTabStop(anObject: NSTextTab): void;
setParagraphStyle(obj: NSParagraphStyle): void;
}
declare var NSObliquenessAttributeName: string;
declare var NSPaperMarginDocumentAttribute: string;
declare var NSPaperSizeDocumentAttribute: string;
declare class NSParagraphStyle extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding {
static alloc(): NSParagraphStyle; // inherited from NSObject
static defaultWritingDirectionForLanguage(languageName: string): NSWritingDirection;
static new(): NSParagraphStyle; // inherited from NSObject
readonly alignment: NSTextAlignment;
readonly allowsDefaultTighteningForTruncation: boolean;
readonly baseWritingDirection: NSWritingDirection;
readonly defaultTabInterval: number;
readonly firstLineHeadIndent: number;
readonly headIndent: number;
readonly hyphenationFactor: number;
readonly lineBreakMode: NSLineBreakMode;
readonly lineHeightMultiple: number;
readonly lineSpacing: number;
readonly maximumLineHeight: number;
readonly minimumLineHeight: number;
readonly paragraphSpacing: number;
readonly paragraphSpacingBefore: number;
readonly tabStops: NSArray<NSTextTab>;
readonly tailIndent: number;
static readonly defaultParagraphStyle: NSParagraphStyle;
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
mutableCopyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
}
declare var NSParagraphStyleAttributeName: string;
declare var NSPlainTextDocumentType: string;
declare var NSRTFDTextDocumentType: string;
declare var NSRTFTextDocumentType: string;
declare var NSReadOnlyDocumentAttribute: string;
declare const enum NSRectAlignment {
None = 0,
Top = 1,
TopLeading = 2,
Leading = 3,
BottomLeading = 4,
Bottom = 5,
BottomTrailing = 6,
Trailing = 7,
TopTrailing = 8
}
declare class NSShadow extends NSObject implements NSCopying, NSSecureCoding {
static alloc(): NSShadow; // inherited from NSObject
static new(): NSShadow; // inherited from NSObject
shadowBlurRadius: number;
shadowColor: any;
shadowOffset: CGSize;
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
}
declare var NSShadowAttributeName: string;
declare var NSSourceTextScalingDocumentAttribute: string;
declare var NSSourceTextScalingDocumentOption: string;
declare var NSStrikethroughColorAttributeName: string;
declare var NSStrikethroughStyleAttributeName: string;
declare class NSStringDrawingContext extends NSObject {
static alloc(): NSStringDrawingContext; // inherited from NSObject
static new(): NSStringDrawingContext; // inherited from NSObject
readonly actualScaleFactor: number;
readonly actualTrackingAdjustment: number;
minimumScaleFactor: number;
minimumTrackingAdjustment: number;
readonly totalBounds: CGRect;
}
declare const enum NSStringDrawingOptions {
UsesLineFragmentOrigin = 1,
UsesFontLeading = 2,
UsesDeviceMetrics = 8,
TruncatesLastVisibleLine = 32
}
declare function NSStringFromCGAffineTransform(transform: CGAffineTransform): string;
declare function NSStringFromCGPoint(point: CGPoint): string;
declare function NSStringFromCGRect(rect: CGRect): string;
declare function NSStringFromCGSize(size: CGSize): string;
declare function NSStringFromCGVector(vector: CGVector): string;
declare function NSStringFromDirectionalEdgeInsets(insets: NSDirectionalEdgeInsets): string;
declare function NSStringFromUIEdgeInsets(insets: UIEdgeInsets): string;
declare function NSStringFromUIOffset(offset: UIOffset): string;
declare var NSStrokeColorAttributeName: string;
declare var NSStrokeWidthAttributeName: string;
declare var NSTabColumnTerminatorsAttributeName: string;
declare var NSTargetTextScalingDocumentOption: string;
declare const enum NSTextAlignment {
Left = 0,
Center = 1,
Right = 2,
Justified = 3,
Natural = 4
}
declare function NSTextAlignmentFromCTTextAlignment(ctTextAlignment: CTTextAlignment): NSTextAlignment;
declare function NSTextAlignmentToCTTextAlignment(nsTextAlignment: NSTextAlignment): CTTextAlignment;
declare class NSTextAttachment extends NSObject implements NSSecureCoding, NSTextAttachmentContainer, UIAccessibilityContentSizeCategoryImageAdjusting {
static alloc(): NSTextAttachment; // inherited from NSObject
static new(): NSTextAttachment; // inherited from NSObject
static textAttachmentWithImage(image: UIImage): NSTextAttachment;
bounds: CGRect;
contents: NSData;
fileType: string;
fileWrapper: NSFileWrapper;
image: UIImage;
adjustsImageSizeForAccessibilityContentSizeCategory: boolean; // inherited from UIAccessibilityContentSizeCategoryImageAdjusting
readonly debugDescription: string; // inherited from NSObjectProtocol
readonly description: string; // inherited from NSObjectProtocol
readonly hash: number; // inherited from NSObjectProtocol
readonly isProxy: boolean; // inherited from NSObjectProtocol
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
readonly // inherited from NSObjectProtocol
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
constructor(o: { data: NSData; ofType: string; });
attachmentBoundsForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(textContainer: NSTextContainer, lineFrag: CGRect, position: CGPoint, charIndex: number): CGRect;
class(): typeof NSObject;
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
encodeWithCoder(coder: NSCoder): void;
imageForBoundsTextContainerCharacterIndex(imageBounds: CGRect, textContainer: NSTextContainer, charIndex: number): UIImage;
initWithCoder(coder: NSCoder): this;
initWithDataOfType(contentData: NSData, uti: string): this;
isEqual(object: any): boolean;
isKindOfClass(aClass: typeof NSObject): boolean;
isMemberOfClass(aClass: typeof NSObject): boolean;
performSelector(aSelector: string): any;
performSelectorWithObject(aSelector: string, object: any): any;
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
respondsToSelector(aSelector: string): boolean;
retainCount(): number;
self(): this;
}
interface NSTextAttachmentContainer extends NSObjectProtocol {
attachmentBoundsForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(textContainer: NSTextContainer, lineFrag: CGRect, position: CGPoint, charIndex: number): CGRect;
imageForBoundsTextContainerCharacterIndex(imageBounds: CGRect, textContainer: NSTextContainer, charIndex: number): UIImage;
}
declare var NSTextAttachmentContainer: {
prototype: NSTextAttachmentContainer;
};
declare class NSTextContainer extends NSObject implements NSSecureCoding, NSTextLayoutOrientationProvider {
static alloc(): NSTextContainer; // inherited from NSObject
static new(): NSTextContainer; // inherited from NSObject
exclusionPaths: NSArray<UIBezierPath>;
heightTracksTextView: boolean;
layoutManager: NSLayoutManager;
lineBreakMode: NSLineBreakMode;
lineFragmentPadding: number;
maximumNumberOfLines: number;
readonly simpleRectangularTextContainer: boolean;
size: CGSize;
widthTracksTextView: boolean;
readonly layoutOrientation: NSTextLayoutOrientation; // inherited from NSTextLayoutOrientationProvider
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
constructor(o: { size: CGSize; });
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
initWithSize(size: CGSize): this;
lineFragmentRectForProposedRectAtIndexWritingDirectionRemainingRect(proposedRect: CGRect, characterIndex: number, baseWritingDirection: NSWritingDirection, remainingRect: interop.Pointer | interop.Reference<CGRect>): CGRect;
replaceLayoutManager(newLayoutManager: NSLayoutManager): void;
}
declare var NSTextEffectAttributeName: string;
declare var NSTextEffectLetterpressStyle: string;
declare const enum NSTextLayoutOrientation {
Horizontal = 0,
Vertical = 1
}
interface NSTextLayoutOrientationProvider {
layoutOrientation: NSTextLayoutOrientation;
}
declare var NSTextLayoutOrientationProvider: {
prototype: NSTextLayoutOrientationProvider;
};
declare var NSTextLayoutSectionOrientation: string;
declare var NSTextLayoutSectionRange: string;
declare var NSTextLayoutSectionsAttribute: string;
declare var NSTextScalingDocumentAttribute: string;
declare const enum NSTextScalingType {
Standard = 0,
iOS = 1
}
declare class NSTextStorage extends NSMutableAttributedString implements NSSecureCoding {
static alloc(): NSTextStorage; // inherited from NSObject
static new(): NSTextStorage; // inherited from NSObject
static objectWithItemProviderDataTypeIdentifierError(data: NSData, typeIdentifier: string): NSTextStorage; // inherited from NSItemProviderReading
readonly changeInLength: number;
delegate: NSTextStorageDelegate;
readonly editedMask: NSTextStorageEditActions;
readonly editedRange: NSRange;
readonly fixesAttributesLazily: boolean;
readonly layoutManagers: NSArray<NSLayoutManager>;
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
addLayoutManager(aLayoutManager: NSLayoutManager): void;
editedRangeChangeInLength(editedMask: NSTextStorageEditActions, editedRange: NSRange, delta: number): void;
encodeWithCoder(coder: NSCoder): void;
ensureAttributesAreFixedInRange(range: NSRange): void;
initWithCoder(coder: NSCoder): this;
invalidateAttributesInRange(range: NSRange): void;
processEditing(): void;
removeLayoutManager(aLayoutManager: NSLayoutManager): void;
}
interface NSTextStorageDelegate extends NSObjectProtocol {
textStorageDidProcessEditingRangeChangeInLength?(textStorage: NSTextStorage, editedMask: NSTextStorageEditActions, editedRange: NSRange, delta: number): void;
textStorageWillProcessEditingRangeChangeInLength?(textStorage: NSTextStorage, editedMask: NSTextStorageEditActions, editedRange: NSRange, delta: number): void;
}
declare var NSTextStorageDelegate: {
prototype: NSTextStorageDelegate;
};
declare var NSTextStorageDidProcessEditingNotification: string;
declare const enum NSTextStorageEditActions {
EditedAttributes = 1,
EditedCharacters = 2
}
declare var NSTextStorageWillProcessEditingNotification: string;
declare class NSTextTab extends NSObject implements NSCoding, NSCopying, NSSecureCoding {
static alloc(): NSTextTab; // inherited from NSObject
static columnTerminatorsForLocale(aLocale: NSLocale): NSCharacterSet;
static new(): NSTextTab; // inherited from NSObject
readonly alignment: NSTextAlignment;
readonly location: number;
readonly options: NSDictionary<string, any>;
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
constructor(o: { textAlignment: NSTextAlignment; location: number; options: NSDictionary<string, any>; });
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
initWithTextAlignmentLocationOptions(alignment: NSTextAlignment, loc: number, options: NSDictionary<string, any>): this;
}
declare const enum NSTextWritingDirection {
Embedding = 0,
Override = 2
}
declare var NSUnderlineByWord: NSUnderlineStyle;
declare var NSUnderlineColorAttributeName: string;
declare var NSUnderlinePatternDash: NSUnderlineStyle;
declare var NSUnderlinePatternDashDot: NSUnderlineStyle;
declare var NSUnderlinePatternDashDotDot: NSUnderlineStyle;
declare var NSUnderlinePatternDot: NSUnderlineStyle;
declare var NSUnderlinePatternSolid: NSUnderlineStyle;
declare const enum NSUnderlineStyle {
None = 0,
Single = 1,
Thick = 2,
Double = 9,
PatternSolid = 0,
PatternDot = 256,
PatternDash = 512,
PatternDashDot = 768,
PatternDashDotDot = 1024,
ByWord = 32768