objcjs-types 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/objcjs-types.ts +31 -0
- package/dist/AVFoundation/functions.d.ts +21 -0
- package/dist/AVFoundation/functions.js +32 -0
- package/dist/AVFoundation/index.d.ts +1 -0
- package/dist/AVFoundation/index.js +1 -0
- package/dist/Accessibility/functions.d.ts +16 -0
- package/dist/Accessibility/functions.js +35 -0
- package/dist/Accessibility/index.d.ts +1 -0
- package/dist/Accessibility/index.js +1 -0
- package/dist/AddressBook/functions.d.ts +98 -0
- package/dist/AddressBook/functions.js +290 -0
- package/dist/AddressBook/index.d.ts +1 -0
- package/dist/AddressBook/index.js +1 -0
- package/dist/AppKit/functions.d.ts +112 -0
- package/dist/AppKit/functions.js +272 -0
- package/dist/AppKit/index.d.ts +1 -0
- package/dist/AppKit/index.js +1 -0
- package/dist/AudioToolbox/functions.d.ts +377 -0
- package/dist/AudioToolbox/functions.js +1124 -0
- package/dist/AudioToolbox/index.d.ts +1 -0
- package/dist/AudioToolbox/index.js +1 -0
- package/dist/AuthenticationServices/functions.d.ts +2 -0
- package/dist/AuthenticationServices/functions.js +5 -0
- package/dist/AuthenticationServices/index.d.ts +1 -0
- package/dist/AuthenticationServices/index.js +1 -0
- package/dist/BrowserEngineCore/functions.d.ts +3 -0
- package/dist/BrowserEngineCore/functions.js +11 -0
- package/dist/BrowserEngineCore/index.d.ts +1 -0
- package/dist/BrowserEngineCore/index.js +1 -0
- package/dist/CoreAudio/functions.d.ts +60 -0
- package/dist/CoreAudio/functions.js +173 -0
- package/dist/CoreAudio/index.d.ts +1 -0
- package/dist/CoreAudio/index.js +1 -0
- package/dist/CoreMIDI/functions.d.ts +96 -0
- package/dist/CoreMIDI/functions.js +287 -0
- package/dist/CoreMIDI/index.d.ts +1 -0
- package/dist/CoreMIDI/index.js +1 -0
- package/dist/CoreML/functions.d.ts +2 -0
- package/dist/CoreML/functions.js +5 -0
- package/dist/CoreML/index.d.ts +1 -0
- package/dist/CoreML/index.js +1 -0
- package/dist/CoreMediaIO/functions.d.ts +38 -0
- package/dist/CoreMediaIO/functions.js +107 -0
- package/dist/CoreMediaIO/index.d.ts +1 -0
- package/dist/CoreMediaIO/index.js +1 -0
- package/dist/CoreText/functions.d.ts +209 -0
- package/dist/CoreText/functions.js +611 -0
- package/dist/CoreText/index.d.ts +1 -0
- package/dist/CoreText/index.js +1 -0
- package/dist/CoreWLAN/functions.d.ts +23 -0
- package/dist/CoreWLAN/functions.js +56 -0
- package/dist/CoreWLAN/index.d.ts +1 -0
- package/dist/CoreWLAN/index.js +1 -0
- package/dist/DeviceDiscoveryExtension/functions.d.ts +11 -0
- package/dist/DeviceDiscoveryExtension/functions.js +17 -0
- package/dist/DeviceDiscoveryExtension/index.d.ts +1 -0
- package/dist/DeviceDiscoveryExtension/index.js +1 -0
- package/dist/DiscRecording/functions.d.ts +97 -0
- package/dist/DiscRecording/functions.js +290 -0
- package/dist/DiscRecording/index.d.ts +1 -0
- package/dist/DiscRecording/index.js +1 -0
- package/dist/DiscRecordingUI/functions.d.ts +13 -0
- package/dist/DiscRecordingUI/functions.js +38 -0
- package/dist/DiscRecordingUI/index.d.ts +1 -0
- package/dist/DiscRecordingUI/index.js +1 -0
- package/dist/ExceptionHandling/functions.d.ts +1 -0
- package/dist/ExceptionHandling/functions.js +5 -0
- package/dist/ExceptionHandling/index.d.ts +1 -0
- package/dist/ExceptionHandling/index.js +1 -0
- package/dist/FSKit/functions.d.ts +4 -0
- package/dist/FSKit/functions.js +11 -0
- package/dist/FSKit/index.d.ts +1 -0
- package/dist/FSKit/index.js +1 -0
- package/dist/Foundation/functions.d.ts +145 -0
- package/dist/Foundation/functions.js +386 -0
- package/dist/Foundation/index.d.ts +1 -0
- package/dist/Foundation/index.js +1 -0
- package/dist/GLKit/functions.d.ts +51 -0
- package/dist/GLKit/functions.js +146 -0
- package/dist/GLKit/index.d.ts +1 -0
- package/dist/GLKit/index.js +1 -0
- package/dist/GameController/functions.d.ts +18 -0
- package/dist/GameController/functions.js +44 -0
- package/dist/GameController/index.d.ts +1 -0
- package/dist/GameController/index.js +1 -0
- package/dist/HealthKit/functions.d.ts +19 -0
- package/dist/HealthKit/functions.js +35 -0
- package/dist/HealthKit/index.d.ts +1 -0
- package/dist/HealthKit/index.js +1 -0
- package/dist/IOSurface/functions.d.ts +53 -0
- package/dist/IOSurface/functions.js +155 -0
- package/dist/IOSurface/index.d.ts +1 -0
- package/dist/IOSurface/index.js +1 -0
- package/dist/IOUSBHost/functions.d.ts +44 -0
- package/dist/IOUSBHost/functions.js +131 -0
- package/dist/IOUSBHost/index.d.ts +1 -0
- package/dist/IOUSBHost/index.js +1 -0
- package/dist/InstantMessage/functions.d.ts +1 -0
- package/dist/InstantMessage/functions.js +5 -0
- package/dist/InstantMessage/index.d.ts +1 -0
- package/dist/InstantMessage/index.js +1 -0
- package/dist/JavaRuntimeSupport/functions.d.ts +40 -0
- package/dist/JavaRuntimeSupport/functions.js +113 -0
- package/dist/JavaRuntimeSupport/index.d.ts +1 -0
- package/dist/JavaRuntimeSupport/index.js +1 -0
- package/dist/JavaScriptCore/functions.d.ts +120 -0
- package/dist/JavaScriptCore/functions.js +359 -0
- package/dist/JavaScriptCore/index.d.ts +1 -0
- package/dist/JavaScriptCore/index.js +1 -0
- package/dist/MLCompute/functions.d.ts +27 -0
- package/dist/MLCompute/functions.js +41 -0
- package/dist/MLCompute/index.d.ts +1 -0
- package/dist/MLCompute/index.js +1 -0
- package/dist/MapKit/functions.d.ts +23 -0
- package/dist/MapKit/functions.js +56 -0
- package/dist/MapKit/index.d.ts +1 -0
- package/dist/MapKit/index.js +1 -0
- package/dist/Matter/functions.d.ts +17 -0
- package/dist/Matter/functions.js +26 -0
- package/dist/Matter/index.d.ts +1 -0
- package/dist/Matter/index.js +1 -0
- package/dist/MediaAccessibility/functions.d.ts +28 -0
- package/dist/MediaAccessibility/functions.js +83 -0
- package/dist/MediaAccessibility/index.d.ts +1 -0
- package/dist/MediaAccessibility/index.js +1 -0
- package/dist/MediaPlayer/functions.d.ts +3 -0
- package/dist/MediaPlayer/functions.js +11 -0
- package/dist/MediaPlayer/index.d.ts +1 -0
- package/dist/MediaPlayer/index.js +1 -0
- package/dist/Metal/functions.d.ts +14 -0
- package/dist/Metal/functions.js +26 -0
- package/dist/Metal/index.d.ts +1 -0
- package/dist/Metal/index.js +1 -0
- package/dist/MetalKit/functions.d.ts +11 -0
- package/dist/MetalKit/functions.js +20 -0
- package/dist/MetalKit/index.d.ts +1 -0
- package/dist/MetalKit/index.js +1 -0
- package/dist/MetalPerformanceShaders/functions.d.ts +7 -0
- package/dist/MetalPerformanceShaders/functions.js +14 -0
- package/dist/MetalPerformanceShaders/index.d.ts +1 -0
- package/dist/MetalPerformanceShaders/index.js +1 -0
- package/dist/NearbyInteraction/functions.d.ts +3 -0
- package/dist/NearbyInteraction/functions.js +5 -0
- package/dist/NearbyInteraction/index.d.ts +1 -0
- package/dist/NearbyInteraction/index.js +1 -0
- package/dist/ParavirtualizedGraphics/functions.d.ts +7 -0
- package/dist/ParavirtualizedGraphics/functions.js +14 -0
- package/dist/ParavirtualizedGraphics/index.d.ts +1 -0
- package/dist/ParavirtualizedGraphics/index.js +1 -0
- package/dist/QuartzCore/functions.d.ts +19 -0
- package/dist/QuartzCore/functions.js +50 -0
- package/dist/QuartzCore/index.d.ts +1 -0
- package/dist/QuartzCore/index.js +1 -0
- package/dist/SceneKit/functions.d.ts +17 -0
- package/dist/SceneKit/functions.js +38 -0
- package/dist/SceneKit/index.d.ts +1 -0
- package/dist/SceneKit/index.js +1 -0
- package/dist/SensorKit/functions.d.ts +4 -0
- package/dist/SensorKit/functions.js +14 -0
- package/dist/SensorKit/index.d.ts +1 -0
- package/dist/SensorKit/index.js +1 -0
- package/dist/ServiceManagement/functions.d.ts +7 -0
- package/dist/ServiceManagement/functions.js +20 -0
- package/dist/ServiceManagement/index.d.ts +1 -0
- package/dist/ServiceManagement/index.js +1 -0
- package/dist/StoreKit/functions.d.ts +1 -0
- package/dist/StoreKit/functions.js +5 -0
- package/dist/StoreKit/index.d.ts +1 -0
- package/dist/StoreKit/index.js +1 -0
- package/dist/VideoToolbox/functions.d.ts +81 -0
- package/dist/VideoToolbox/functions.js +236 -0
- package/dist/VideoToolbox/index.d.ts +1 -0
- package/dist/VideoToolbox/index.js +1 -0
- package/dist/Vision/functions.d.ts +16 -0
- package/dist/Vision/functions.js +38 -0
- package/dist/Vision/index.d.ts +1 -0
- package/dist/Vision/index.js +1 -0
- package/generator/ast-parser.ts +1368 -0
- package/generator/clang.ts +167 -0
- package/generator/custom.ts +936 -0
- package/generator/discover.ts +111 -0
- package/generator/emitter.ts +2026 -0
- package/generator/frameworks.ts +135 -0
- package/generator/index.ts +1334 -0
- package/generator/parse-worker.ts +263 -0
- package/generator/resolve-strings.ts +121 -0
- package/generator/struct-fields.ts +46 -0
- package/generator/templates/bind.ts +100 -0
- package/generator/templates/helpers.ts +70 -0
- package/generator/templates/nsdata.ts +97 -0
- package/generator/templates/osversion.ts +91 -0
- package/generator/type-mapper.ts +615 -0
- package/generator/worker-pool.ts +309 -0
- package/package.json +13 -4
|
@@ -0,0 +1,611 @@
|
|
|
1
|
+
// AUTO-GENERATED by objcjs-types generator — DO NOT EDIT
|
|
2
|
+
import { callFunction } from "objc-js";
|
|
3
|
+
export function CTFontCollectionCopyExclusionDescriptors(collection) {
|
|
4
|
+
return callFunction("CTFontCollectionCopyExclusionDescriptors", { returns: "@" }, collection);
|
|
5
|
+
}
|
|
6
|
+
export function CTFontCollectionCopyFontAttribute(collection, attributeName, options) {
|
|
7
|
+
return callFunction("CTFontCollectionCopyFontAttribute", { returns: "@", args: ["@", "^", "@"] }, collection, attributeName, options);
|
|
8
|
+
}
|
|
9
|
+
export function CTFontCollectionCopyFontAttributes(collection, attributeNames, options) {
|
|
10
|
+
return callFunction("CTFontCollectionCopyFontAttributes", { returns: "@" }, collection, attributeNames, options);
|
|
11
|
+
}
|
|
12
|
+
export function CTFontCollectionCopyQueryDescriptors(collection) {
|
|
13
|
+
return callFunction("CTFontCollectionCopyQueryDescriptors", { returns: "@" }, collection);
|
|
14
|
+
}
|
|
15
|
+
export function CTFontCollectionCreateCopyWithFontDescriptors(original, queryDescriptors, options) {
|
|
16
|
+
return callFunction("CTFontCollectionCreateCopyWithFontDescriptors", { returns: "@" }, original, queryDescriptors, options);
|
|
17
|
+
}
|
|
18
|
+
export function CTFontCollectionCreateFromAvailableFonts(options) {
|
|
19
|
+
return callFunction("CTFontCollectionCreateFromAvailableFonts", { returns: "@" }, options);
|
|
20
|
+
}
|
|
21
|
+
export function CTFontCollectionCreateMatchingFontDescriptors(collection) {
|
|
22
|
+
return callFunction("CTFontCollectionCreateMatchingFontDescriptors", { returns: "@" }, collection);
|
|
23
|
+
}
|
|
24
|
+
export function CTFontCollectionCreateMatchingFontDescriptorsForFamily(collection, familyName, options) {
|
|
25
|
+
return callFunction("CTFontCollectionCreateMatchingFontDescriptorsForFamily", { returns: "@", args: ["@", "^", "@"] }, collection, familyName, options);
|
|
26
|
+
}
|
|
27
|
+
export function CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback(collection, sortCallback, refCon) {
|
|
28
|
+
return callFunction("CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback", { returns: "@", args: ["@", "@", "^v"] }, collection, sortCallback, refCon);
|
|
29
|
+
}
|
|
30
|
+
export function CTFontCollectionCreateMatchingFontDescriptorsWithOptions(collection, options) {
|
|
31
|
+
return callFunction("CTFontCollectionCreateMatchingFontDescriptorsWithOptions", { returns: "@" }, collection, options);
|
|
32
|
+
}
|
|
33
|
+
export function CTFontCollectionCreateMutableCopy(original) {
|
|
34
|
+
return callFunction("CTFontCollectionCreateMutableCopy", { returns: "@" }, original);
|
|
35
|
+
}
|
|
36
|
+
export function CTFontCollectionCreateWithFontDescriptors(queryDescriptors, options) {
|
|
37
|
+
return callFunction("CTFontCollectionCreateWithFontDescriptors", { returns: "@" }, queryDescriptors, options);
|
|
38
|
+
}
|
|
39
|
+
export function CTFontCollectionGetTypeID() {
|
|
40
|
+
return callFunction("CTFontCollectionGetTypeID", { returns: "L" });
|
|
41
|
+
}
|
|
42
|
+
export function CTFontCollectionSetExclusionDescriptors(collection, descriptors) {
|
|
43
|
+
callFunction("CTFontCollectionSetExclusionDescriptors", undefined, collection, descriptors);
|
|
44
|
+
}
|
|
45
|
+
export function CTFontCollectionSetQueryDescriptors(collection, descriptors) {
|
|
46
|
+
callFunction("CTFontCollectionSetQueryDescriptors", undefined, collection, descriptors);
|
|
47
|
+
}
|
|
48
|
+
export function CTFontCopyAttribute(font, attribute) {
|
|
49
|
+
return callFunction("CTFontCopyAttribute", { returns: "^", args: ["@", "^"] }, font, attribute);
|
|
50
|
+
}
|
|
51
|
+
export function CTFontCopyAvailableTables(font, options) {
|
|
52
|
+
return callFunction("CTFontCopyAvailableTables", { returns: "@" }, font, options);
|
|
53
|
+
}
|
|
54
|
+
export function CTFontCopyCharacterSet(font) {
|
|
55
|
+
return callFunction("CTFontCopyCharacterSet", { returns: "@" }, font);
|
|
56
|
+
}
|
|
57
|
+
export function CTFontCopyDefaultCascadeListForLanguages(font, languagePrefList) {
|
|
58
|
+
return callFunction("CTFontCopyDefaultCascadeListForLanguages", { returns: "@" }, font, languagePrefList);
|
|
59
|
+
}
|
|
60
|
+
export function CTFontCopyDisplayName(font) {
|
|
61
|
+
return callFunction("CTFontCopyDisplayName", { returns: "^" }, font);
|
|
62
|
+
}
|
|
63
|
+
export function CTFontCopyFamilyName(font) {
|
|
64
|
+
return callFunction("CTFontCopyFamilyName", { returns: "^" }, font);
|
|
65
|
+
}
|
|
66
|
+
export function CTFontCopyFeatures(font) {
|
|
67
|
+
return callFunction("CTFontCopyFeatures", { returns: "@" }, font);
|
|
68
|
+
}
|
|
69
|
+
export function CTFontCopyFeatureSettings(font) {
|
|
70
|
+
return callFunction("CTFontCopyFeatureSettings", { returns: "@" }, font);
|
|
71
|
+
}
|
|
72
|
+
export function CTFontCopyFontDescriptor(font) {
|
|
73
|
+
return callFunction("CTFontCopyFontDescriptor", { returns: "@" }, font);
|
|
74
|
+
}
|
|
75
|
+
export function CTFontCopyFullName(font) {
|
|
76
|
+
return callFunction("CTFontCopyFullName", { returns: "^" }, font);
|
|
77
|
+
}
|
|
78
|
+
export function CTFontCopyGraphicsFont(font, attributes) {
|
|
79
|
+
return callFunction("CTFontCopyGraphicsFont", { returns: "@" }, font, attributes);
|
|
80
|
+
}
|
|
81
|
+
export function CTFontCopyLocalizedName(font, nameKey, actualLanguage) {
|
|
82
|
+
return callFunction("CTFontCopyLocalizedName", { returns: "^", args: ["@", "^", "@"] }, font, nameKey, actualLanguage);
|
|
83
|
+
}
|
|
84
|
+
export function CTFontCopyName(font, nameKey) {
|
|
85
|
+
return callFunction("CTFontCopyName", { returns: "^", args: ["@", "^"] }, font, nameKey);
|
|
86
|
+
}
|
|
87
|
+
export function CTFontCopyNameForGlyph(font, glyph) {
|
|
88
|
+
return callFunction("CTFontCopyNameForGlyph", { returns: "^", args: ["@", "S"] }, font, glyph);
|
|
89
|
+
}
|
|
90
|
+
export function CTFontCopyPostScriptName(font) {
|
|
91
|
+
return callFunction("CTFontCopyPostScriptName", { returns: "^" }, font);
|
|
92
|
+
}
|
|
93
|
+
export function CTFontCopySupportedLanguages(font) {
|
|
94
|
+
return callFunction("CTFontCopySupportedLanguages", { returns: "@" }, font);
|
|
95
|
+
}
|
|
96
|
+
export function CTFontCopyTable(font, table, options) {
|
|
97
|
+
return callFunction("CTFontCopyTable", { returns: "@", args: ["@", "I", "@"] }, font, table, options);
|
|
98
|
+
}
|
|
99
|
+
export function CTFontCopyTraits(font) {
|
|
100
|
+
return callFunction("CTFontCopyTraits", { returns: "@" }, font);
|
|
101
|
+
}
|
|
102
|
+
export function CTFontCopyVariation(font) {
|
|
103
|
+
return callFunction("CTFontCopyVariation", { returns: "@" }, font);
|
|
104
|
+
}
|
|
105
|
+
export function CTFontCopyVariationAxes(font) {
|
|
106
|
+
return callFunction("CTFontCopyVariationAxes", { returns: "@" }, font);
|
|
107
|
+
}
|
|
108
|
+
export function CTFontCreateCopyWithAttributes(font, size, matrix, attributes) {
|
|
109
|
+
return callFunction("CTFontCreateCopyWithAttributes", { returns: "@", args: ["@", "d", "@", "@"] }, font, size, matrix, attributes);
|
|
110
|
+
}
|
|
111
|
+
export function CTFontCreateCopyWithFamily(font, size, matrix, family) {
|
|
112
|
+
return callFunction("CTFontCreateCopyWithFamily", { returns: "@", args: ["@", "d", "@", "^"] }, font, size, matrix, family);
|
|
113
|
+
}
|
|
114
|
+
export function CTFontCreateCopyWithSymbolicTraits(font, size, matrix, symTraitValue, symTraitMask) {
|
|
115
|
+
return callFunction("CTFontCreateCopyWithSymbolicTraits", { returns: "@", args: ["@", "d", "@", "@", "@"] }, font, size, matrix, symTraitValue, symTraitMask);
|
|
116
|
+
}
|
|
117
|
+
export function CTFontCreateForString(currentFont, string_, range) {
|
|
118
|
+
return callFunction("CTFontCreateForString", { returns: "@", args: ["@", "^", "@"] }, currentFont, string_, range);
|
|
119
|
+
}
|
|
120
|
+
export function CTFontCreateForStringWithLanguage(currentFont, string_, range, language) {
|
|
121
|
+
return callFunction("CTFontCreateForStringWithLanguage", { returns: "@", args: ["@", "^", "@", "^"] }, currentFont, string_, range, language);
|
|
122
|
+
}
|
|
123
|
+
export function CTFontCreatePathForGlyph(font, glyph, matrix) {
|
|
124
|
+
return callFunction("CTFontCreatePathForGlyph", { returns: "^", args: ["@", "S", "@"] }, font, glyph, matrix);
|
|
125
|
+
}
|
|
126
|
+
export function CTFontCreateUIFontForLanguage(uiType, size, language) {
|
|
127
|
+
return callFunction("CTFontCreateUIFontForLanguage", { returns: "@", args: ["@", "d", "^"] }, uiType, size, language);
|
|
128
|
+
}
|
|
129
|
+
export function CTFontCreateWithFontDescriptor(descriptor, size, matrix) {
|
|
130
|
+
return callFunction("CTFontCreateWithFontDescriptor", { returns: "@", args: ["@", "d", "@"] }, descriptor, size, matrix);
|
|
131
|
+
}
|
|
132
|
+
export function CTFontCreateWithFontDescriptorAndOptions(descriptor, size, matrix, options) {
|
|
133
|
+
return callFunction("CTFontCreateWithFontDescriptorAndOptions", { returns: "@", args: ["@", "d", "@", "@"] }, descriptor, size, matrix, options);
|
|
134
|
+
}
|
|
135
|
+
export function CTFontCreateWithGraphicsFont(graphicsFont, size, matrix, attributes) {
|
|
136
|
+
return callFunction("CTFontCreateWithGraphicsFont", { returns: "@", args: ["@", "d", "@", "@"] }, graphicsFont, size, matrix, attributes);
|
|
137
|
+
}
|
|
138
|
+
export function CTFontCreateWithName(name, size, matrix) {
|
|
139
|
+
return callFunction("CTFontCreateWithName", { returns: "@", args: ["^", "d", "@"] }, name, size, matrix);
|
|
140
|
+
}
|
|
141
|
+
export function CTFontCreateWithNameAndOptions(name, size, matrix, options) {
|
|
142
|
+
return callFunction("CTFontCreateWithNameAndOptions", { returns: "@", args: ["^", "d", "@", "@"] }, name, size, matrix, options);
|
|
143
|
+
}
|
|
144
|
+
export function CTFontCreateWithPlatformFont(platformFont, size, matrix, attributes) {
|
|
145
|
+
return callFunction("CTFontCreateWithPlatformFont", { returns: "@", args: ["I", "d", "@", "@"] }, platformFont, size, matrix, attributes);
|
|
146
|
+
}
|
|
147
|
+
export function CTFontCreateWithQuickdrawInstance(name, identifier, style, size) {
|
|
148
|
+
return callFunction("CTFontCreateWithQuickdrawInstance", { returns: "@", args: ["*", "s", "C", "d"] }, name, identifier, style, size);
|
|
149
|
+
}
|
|
150
|
+
export function CTFontDescriptorCopyAttribute(descriptor, attribute) {
|
|
151
|
+
return callFunction("CTFontDescriptorCopyAttribute", { returns: "^", args: ["@", "^"] }, descriptor, attribute);
|
|
152
|
+
}
|
|
153
|
+
export function CTFontDescriptorCopyAttributes(descriptor) {
|
|
154
|
+
return callFunction("CTFontDescriptorCopyAttributes", { returns: "@" }, descriptor);
|
|
155
|
+
}
|
|
156
|
+
export function CTFontDescriptorCopyLocalizedAttribute(descriptor, attribute, language) {
|
|
157
|
+
return callFunction("CTFontDescriptorCopyLocalizedAttribute", { returns: "^", args: ["@", "^", "@"] }, descriptor, attribute, language);
|
|
158
|
+
}
|
|
159
|
+
export function CTFontDescriptorCreateCopyWithAttributes(original, attributes) {
|
|
160
|
+
return callFunction("CTFontDescriptorCreateCopyWithAttributes", { returns: "@" }, original, attributes);
|
|
161
|
+
}
|
|
162
|
+
export function CTFontDescriptorCreateCopyWithFamily(original, family) {
|
|
163
|
+
return callFunction("CTFontDescriptorCreateCopyWithFamily", { returns: "@", args: ["@", "^"] }, original, family);
|
|
164
|
+
}
|
|
165
|
+
export function CTFontDescriptorCreateCopyWithFeature(original, featureTypeIdentifier, featureSelectorIdentifier) {
|
|
166
|
+
return callFunction("CTFontDescriptorCreateCopyWithFeature", { returns: "@" }, original, featureTypeIdentifier, featureSelectorIdentifier);
|
|
167
|
+
}
|
|
168
|
+
export function CTFontDescriptorCreateCopyWithSymbolicTraits(original, symTraitValue, symTraitMask) {
|
|
169
|
+
return callFunction("CTFontDescriptorCreateCopyWithSymbolicTraits", { returns: "@" }, original, symTraitValue, symTraitMask);
|
|
170
|
+
}
|
|
171
|
+
export function CTFontDescriptorCreateCopyWithVariation(original, variationIdentifier, variationValue) {
|
|
172
|
+
return callFunction("CTFontDescriptorCreateCopyWithVariation", { returns: "@", args: ["@", "@", "d"] }, original, variationIdentifier, variationValue);
|
|
173
|
+
}
|
|
174
|
+
export function CTFontDescriptorCreateMatchingFontDescriptor(descriptor, mandatoryAttributes) {
|
|
175
|
+
return callFunction("CTFontDescriptorCreateMatchingFontDescriptor", { returns: "@" }, descriptor, mandatoryAttributes);
|
|
176
|
+
}
|
|
177
|
+
export function CTFontDescriptorCreateMatchingFontDescriptors(descriptor, mandatoryAttributes) {
|
|
178
|
+
return callFunction("CTFontDescriptorCreateMatchingFontDescriptors", { returns: "@" }, descriptor, mandatoryAttributes);
|
|
179
|
+
}
|
|
180
|
+
export function CTFontDescriptorCreateWithAttributes(attributes) {
|
|
181
|
+
return callFunction("CTFontDescriptorCreateWithAttributes", { returns: "@" }, attributes);
|
|
182
|
+
}
|
|
183
|
+
export function CTFontDescriptorCreateWithNameAndSize(name, size) {
|
|
184
|
+
return callFunction("CTFontDescriptorCreateWithNameAndSize", { returns: "@", args: ["^", "d"] }, name, size);
|
|
185
|
+
}
|
|
186
|
+
export function CTFontDescriptorGetTypeID() {
|
|
187
|
+
return callFunction("CTFontDescriptorGetTypeID", { returns: "L" });
|
|
188
|
+
}
|
|
189
|
+
export function CTFontDescriptorMatchFontDescriptorsWithProgressHandler(descriptors, mandatoryAttributes, progressBlock) {
|
|
190
|
+
return callFunction("CTFontDescriptorMatchFontDescriptorsWithProgressHandler", { returns: "B" }, descriptors, mandatoryAttributes, progressBlock);
|
|
191
|
+
}
|
|
192
|
+
export function CTFontDrawGlyphs(font, glyphs, positions, count, context) {
|
|
193
|
+
callFunction("CTFontDrawGlyphs", { args: ["@", "@", "@", "Q", "^"] }, font, glyphs, positions, count, context);
|
|
194
|
+
}
|
|
195
|
+
export function CTFontDrawImageFromAdaptiveImageProviderAtPoint(font, provider, point, context) {
|
|
196
|
+
callFunction("CTFontDrawImageFromAdaptiveImageProviderAtPoint", { args: ["@", "@", "{CGPoint}", "^"] }, font, provider, point, context);
|
|
197
|
+
}
|
|
198
|
+
export function CTFontGetAdvancesForGlyphs(font, orientation, glyphs, advances, count) {
|
|
199
|
+
return callFunction("CTFontGetAdvancesForGlyphs", { returns: "d", args: ["@", "@", "@", "@", "q"] }, font, orientation, glyphs, advances, count);
|
|
200
|
+
}
|
|
201
|
+
export function CTFontGetAscent(font) {
|
|
202
|
+
return callFunction("CTFontGetAscent", { returns: "d" }, font);
|
|
203
|
+
}
|
|
204
|
+
export function CTFontGetBoundingBox(font) {
|
|
205
|
+
return callFunction("CTFontGetBoundingBox", { returns: "{CGRect}" }, font);
|
|
206
|
+
}
|
|
207
|
+
export function CTFontGetBoundingRectsForGlyphs(font, orientation, glyphs, boundingRects, count) {
|
|
208
|
+
return callFunction("CTFontGetBoundingRectsForGlyphs", { returns: "{CGRect}", args: ["@", "@", "@", "@", "q"] }, font, orientation, glyphs, boundingRects, count);
|
|
209
|
+
}
|
|
210
|
+
export function CTFontGetCapHeight(font) {
|
|
211
|
+
return callFunction("CTFontGetCapHeight", { returns: "d" }, font);
|
|
212
|
+
}
|
|
213
|
+
export function CTFontGetDescent(font) {
|
|
214
|
+
return callFunction("CTFontGetDescent", { returns: "d" }, font);
|
|
215
|
+
}
|
|
216
|
+
export function CTFontGetGlyphCount(font) {
|
|
217
|
+
return callFunction("CTFontGetGlyphCount", { returns: "q" }, font);
|
|
218
|
+
}
|
|
219
|
+
export function CTFontGetGlyphsForCharacters(font, characters, glyphs, count) {
|
|
220
|
+
return callFunction("CTFontGetGlyphsForCharacters", { returns: "B", args: ["@", "@", "@", "q"] }, font, characters, glyphs, count);
|
|
221
|
+
}
|
|
222
|
+
export function CTFontGetGlyphWithName(font, glyphName) {
|
|
223
|
+
return callFunction("CTFontGetGlyphWithName", { returns: "S", args: ["@", "^"] }, font, glyphName);
|
|
224
|
+
}
|
|
225
|
+
export function CTFontGetLeading(font) {
|
|
226
|
+
return callFunction("CTFontGetLeading", { returns: "d" }, font);
|
|
227
|
+
}
|
|
228
|
+
export function CTFontGetLigatureCaretPositions(font, glyph, positions, maxPositions) {
|
|
229
|
+
return callFunction("CTFontGetLigatureCaretPositions", { returns: "q", args: ["@", "S", "@", "q"] }, font, glyph, positions, maxPositions);
|
|
230
|
+
}
|
|
231
|
+
export function CTFontGetMatrix(font) {
|
|
232
|
+
return callFunction("CTFontGetMatrix", { returns: "{CGAffineTransform}" }, font);
|
|
233
|
+
}
|
|
234
|
+
export function CTFontGetOpticalBoundsForGlyphs(font, glyphs, boundingRects, count, options) {
|
|
235
|
+
return callFunction("CTFontGetOpticalBoundsForGlyphs", { returns: "{CGRect}", args: ["@", "@", "@", "q", "L"] }, font, glyphs, boundingRects, count, options);
|
|
236
|
+
}
|
|
237
|
+
export function CTFontGetPlatformFont(font, attributes) {
|
|
238
|
+
return callFunction("CTFontGetPlatformFont", { returns: "I" }, font, attributes);
|
|
239
|
+
}
|
|
240
|
+
export function CTFontGetSize(font) {
|
|
241
|
+
return callFunction("CTFontGetSize", { returns: "d" }, font);
|
|
242
|
+
}
|
|
243
|
+
export function CTFontGetSlantAngle(font) {
|
|
244
|
+
return callFunction("CTFontGetSlantAngle", { returns: "d" }, font);
|
|
245
|
+
}
|
|
246
|
+
export function CTFontGetStringEncoding(font) {
|
|
247
|
+
return callFunction("CTFontGetStringEncoding", { returns: "I" }, font);
|
|
248
|
+
}
|
|
249
|
+
export function CTFontGetSymbolicTraits(font) {
|
|
250
|
+
return callFunction("CTFontGetSymbolicTraits", { returns: "@" }, font);
|
|
251
|
+
}
|
|
252
|
+
export function CTFontGetTypeID() {
|
|
253
|
+
return callFunction("CTFontGetTypeID", { returns: "L" });
|
|
254
|
+
}
|
|
255
|
+
export function CTFontGetTypographicBoundsForAdaptiveImageProvider(font, provider) {
|
|
256
|
+
return callFunction("CTFontGetTypographicBoundsForAdaptiveImageProvider", { returns: "{CGRect}" }, font, provider);
|
|
257
|
+
}
|
|
258
|
+
export function CTFontGetUnderlinePosition(font) {
|
|
259
|
+
return callFunction("CTFontGetUnderlinePosition", { returns: "d" }, font);
|
|
260
|
+
}
|
|
261
|
+
export function CTFontGetUnderlineThickness(font) {
|
|
262
|
+
return callFunction("CTFontGetUnderlineThickness", { returns: "d" }, font);
|
|
263
|
+
}
|
|
264
|
+
export function CTFontGetUnitsPerEm(font) {
|
|
265
|
+
return callFunction("CTFontGetUnitsPerEm", { returns: "I" }, font);
|
|
266
|
+
}
|
|
267
|
+
export function CTFontGetVerticalTranslationsForGlyphs(font, glyphs, translations, count) {
|
|
268
|
+
callFunction("CTFontGetVerticalTranslationsForGlyphs", { args: ["@", "@", "@", "q"] }, font, glyphs, translations, count);
|
|
269
|
+
}
|
|
270
|
+
export function CTFontGetXHeight(font) {
|
|
271
|
+
return callFunction("CTFontGetXHeight", { returns: "d" }, font);
|
|
272
|
+
}
|
|
273
|
+
export function CTFontHasTable(font, tag) {
|
|
274
|
+
return callFunction("CTFontHasTable", { returns: "B", args: ["@", "I"] }, font, tag);
|
|
275
|
+
}
|
|
276
|
+
export function CTFontManagerCompareFontFamilyNames(family1, family2, context) {
|
|
277
|
+
return callFunction("CTFontManagerCompareFontFamilyNames", { returns: "@", args: ["^v", "^v", "^v"] }, family1, family2, context);
|
|
278
|
+
}
|
|
279
|
+
export function CTFontManagerCopyAvailableFontFamilyNames() {
|
|
280
|
+
return callFunction("CTFontManagerCopyAvailableFontFamilyNames", { returns: "@" });
|
|
281
|
+
}
|
|
282
|
+
export function CTFontManagerCopyAvailableFontURLs() {
|
|
283
|
+
return callFunction("CTFontManagerCopyAvailableFontURLs", { returns: "@" });
|
|
284
|
+
}
|
|
285
|
+
export function CTFontManagerCopyAvailablePostScriptNames() {
|
|
286
|
+
return callFunction("CTFontManagerCopyAvailablePostScriptNames", { returns: "@" });
|
|
287
|
+
}
|
|
288
|
+
export function CTFontManagerCopyRegisteredFontDescriptors(scope, enabled) {
|
|
289
|
+
return callFunction("CTFontManagerCopyRegisteredFontDescriptors", { returns: "@", args: ["@", "B"] }, scope, enabled);
|
|
290
|
+
}
|
|
291
|
+
export function CTFontManagerCreateFontDescriptorFromData(data) {
|
|
292
|
+
return callFunction("CTFontManagerCreateFontDescriptorFromData", { returns: "@" }, data);
|
|
293
|
+
}
|
|
294
|
+
export function CTFontManagerCreateFontDescriptorsFromData(data) {
|
|
295
|
+
return callFunction("CTFontManagerCreateFontDescriptorsFromData", { returns: "@" }, data);
|
|
296
|
+
}
|
|
297
|
+
export function CTFontManagerCreateFontDescriptorsFromURL(fileURL) {
|
|
298
|
+
return callFunction("CTFontManagerCreateFontDescriptorsFromURL", { returns: "@" }, fileURL);
|
|
299
|
+
}
|
|
300
|
+
export function CTFontManagerCreateFontRequestRunLoopSource(sourceOrder, createMatchesCallback) {
|
|
301
|
+
return callFunction("CTFontManagerCreateFontRequestRunLoopSource", { returns: "@", args: ["q", "@"] }, sourceOrder, createMatchesCallback);
|
|
302
|
+
}
|
|
303
|
+
export function CTFontManagerEnableFontDescriptors(descriptors, enable) {
|
|
304
|
+
callFunction("CTFontManagerEnableFontDescriptors", { args: ["@", "B"] }, descriptors, enable);
|
|
305
|
+
}
|
|
306
|
+
export function CTFontManagerGetAutoActivationSetting(bundleIdentifier) {
|
|
307
|
+
return callFunction("CTFontManagerGetAutoActivationSetting", { returns: "@", args: ["^"] }, bundleIdentifier);
|
|
308
|
+
}
|
|
309
|
+
export function CTFontManagerGetScopeForURL(fontURL) {
|
|
310
|
+
return callFunction("CTFontManagerGetScopeForURL", { returns: "@" }, fontURL);
|
|
311
|
+
}
|
|
312
|
+
export function CTFontManagerIsSupportedFont(fontURL) {
|
|
313
|
+
return callFunction("CTFontManagerIsSupportedFont", { returns: "B" }, fontURL);
|
|
314
|
+
}
|
|
315
|
+
export function CTFontManagerRegisterFontDescriptors(fontDescriptors, scope, enabled, registrationHandler) {
|
|
316
|
+
callFunction("CTFontManagerRegisterFontDescriptors", { args: ["@", "@", "B", "@"] }, fontDescriptors, scope, enabled, registrationHandler);
|
|
317
|
+
}
|
|
318
|
+
export function CTFontManagerRegisterFontsForURL(fontURL, scope, error) {
|
|
319
|
+
return callFunction("CTFontManagerRegisterFontsForURL", { returns: "B" }, fontURL, scope, error);
|
|
320
|
+
}
|
|
321
|
+
export function CTFontManagerRegisterFontsForURLs(fontURLs, scope, errors) {
|
|
322
|
+
return callFunction("CTFontManagerRegisterFontsForURLs", { returns: "B" }, fontURLs, scope, errors);
|
|
323
|
+
}
|
|
324
|
+
export function CTFontManagerRegisterFontsWithAssetNames(fontAssetNames, bundle, scope, enabled, registrationHandler) {
|
|
325
|
+
callFunction("CTFontManagerRegisterFontsWithAssetNames", { args: ["@", "@", "@", "B", "@"] }, fontAssetNames, bundle, scope, enabled, registrationHandler);
|
|
326
|
+
}
|
|
327
|
+
export function CTFontManagerRegisterFontURLs(fontURLs, scope, enabled, registrationHandler) {
|
|
328
|
+
callFunction("CTFontManagerRegisterFontURLs", { args: ["@", "@", "B", "@"] }, fontURLs, scope, enabled, registrationHandler);
|
|
329
|
+
}
|
|
330
|
+
export function CTFontManagerRegisterGraphicsFont(font, error) {
|
|
331
|
+
return callFunction("CTFontManagerRegisterGraphicsFont", { returns: "B" }, font, error);
|
|
332
|
+
}
|
|
333
|
+
export function CTFontManagerRequestFonts(fontDescriptors, completionHandler) {
|
|
334
|
+
callFunction("CTFontManagerRequestFonts", undefined, fontDescriptors, completionHandler);
|
|
335
|
+
}
|
|
336
|
+
export function CTFontManagerSetAutoActivationSetting(bundleIdentifier, setting) {
|
|
337
|
+
callFunction("CTFontManagerSetAutoActivationSetting", { args: ["^", "@"] }, bundleIdentifier, setting);
|
|
338
|
+
}
|
|
339
|
+
export function CTFontManagerUnregisterFontDescriptors(fontDescriptors, scope, registrationHandler) {
|
|
340
|
+
callFunction("CTFontManagerUnregisterFontDescriptors", undefined, fontDescriptors, scope, registrationHandler);
|
|
341
|
+
}
|
|
342
|
+
export function CTFontManagerUnregisterFontsForURL(fontURL, scope, error) {
|
|
343
|
+
return callFunction("CTFontManagerUnregisterFontsForURL", { returns: "B" }, fontURL, scope, error);
|
|
344
|
+
}
|
|
345
|
+
export function CTFontManagerUnregisterFontsForURLs(fontURLs, scope, errors) {
|
|
346
|
+
return callFunction("CTFontManagerUnregisterFontsForURLs", { returns: "B" }, fontURLs, scope, errors);
|
|
347
|
+
}
|
|
348
|
+
export function CTFontManagerUnregisterFontURLs(fontURLs, scope, registrationHandler) {
|
|
349
|
+
callFunction("CTFontManagerUnregisterFontURLs", undefined, fontURLs, scope, registrationHandler);
|
|
350
|
+
}
|
|
351
|
+
export function CTFontManagerUnregisterGraphicsFont(font, error) {
|
|
352
|
+
return callFunction("CTFontManagerUnregisterGraphicsFont", { returns: "B" }, font, error);
|
|
353
|
+
}
|
|
354
|
+
export function CTFrameDraw(frame, context) {
|
|
355
|
+
callFunction("CTFrameDraw", { args: ["@", "^"] }, frame, context);
|
|
356
|
+
}
|
|
357
|
+
export function CTFrameGetFrameAttributes(frame) {
|
|
358
|
+
return callFunction("CTFrameGetFrameAttributes", { returns: "@" }, frame);
|
|
359
|
+
}
|
|
360
|
+
export function CTFrameGetLineOrigins(frame, range, origins) {
|
|
361
|
+
callFunction("CTFrameGetLineOrigins", undefined, frame, range, origins);
|
|
362
|
+
}
|
|
363
|
+
export function CTFrameGetLines(frame) {
|
|
364
|
+
return callFunction("CTFrameGetLines", { returns: "@" }, frame);
|
|
365
|
+
}
|
|
366
|
+
export function CTFrameGetPath(frame) {
|
|
367
|
+
return callFunction("CTFrameGetPath", { returns: "^" }, frame);
|
|
368
|
+
}
|
|
369
|
+
export function CTFrameGetStringRange(frame) {
|
|
370
|
+
return callFunction("CTFrameGetStringRange", { returns: "@" }, frame);
|
|
371
|
+
}
|
|
372
|
+
export function CTFrameGetTypeID() {
|
|
373
|
+
return callFunction("CTFrameGetTypeID", { returns: "L" });
|
|
374
|
+
}
|
|
375
|
+
export function CTFrameGetVisibleStringRange(frame) {
|
|
376
|
+
return callFunction("CTFrameGetVisibleStringRange", { returns: "@" }, frame);
|
|
377
|
+
}
|
|
378
|
+
export function CTFramesetterCreateFrame(framesetter, stringRange, path, frameAttributes) {
|
|
379
|
+
return callFunction("CTFramesetterCreateFrame", { returns: "@", args: ["@", "@", "^", "@"] }, framesetter, stringRange, path, frameAttributes);
|
|
380
|
+
}
|
|
381
|
+
export function CTFramesetterCreateWithAttributedString(attrString) {
|
|
382
|
+
return callFunction("CTFramesetterCreateWithAttributedString", { returns: "@" }, attrString);
|
|
383
|
+
}
|
|
384
|
+
export function CTFramesetterCreateWithTypesetter(typesetter) {
|
|
385
|
+
return callFunction("CTFramesetterCreateWithTypesetter", { returns: "@" }, typesetter);
|
|
386
|
+
}
|
|
387
|
+
export function CTFramesetterGetTypeID() {
|
|
388
|
+
return callFunction("CTFramesetterGetTypeID", { returns: "L" });
|
|
389
|
+
}
|
|
390
|
+
export function CTFramesetterGetTypesetter(framesetter) {
|
|
391
|
+
return callFunction("CTFramesetterGetTypesetter", { returns: "@" }, framesetter);
|
|
392
|
+
}
|
|
393
|
+
export function CTFramesetterSuggestFrameSizeWithConstraints(framesetter, stringRange, frameAttributes, constraints, fitRange) {
|
|
394
|
+
return callFunction("CTFramesetterSuggestFrameSizeWithConstraints", { returns: "{CGSize}", args: ["@", "@", "@", "{CGSize}", "@"] }, framesetter, stringRange, frameAttributes, constraints, fitRange);
|
|
395
|
+
}
|
|
396
|
+
export function CTGetCoreTextVersion() {
|
|
397
|
+
return callFunction("CTGetCoreTextVersion", { returns: "I" });
|
|
398
|
+
}
|
|
399
|
+
export function CTGlyphInfoCreateWithCharacterIdentifier(cid, collection, baseString) {
|
|
400
|
+
return callFunction("CTGlyphInfoCreateWithCharacterIdentifier", { returns: "@", args: ["S", "@", "^"] }, cid, collection, baseString);
|
|
401
|
+
}
|
|
402
|
+
export function CTGlyphInfoCreateWithGlyph(glyph, font, baseString) {
|
|
403
|
+
return callFunction("CTGlyphInfoCreateWithGlyph", { returns: "@", args: ["S", "@", "^"] }, glyph, font, baseString);
|
|
404
|
+
}
|
|
405
|
+
export function CTGlyphInfoCreateWithGlyphName(glyphName, font, baseString) {
|
|
406
|
+
return callFunction("CTGlyphInfoCreateWithGlyphName", { returns: "@", args: ["^", "@", "^"] }, glyphName, font, baseString);
|
|
407
|
+
}
|
|
408
|
+
export function CTGlyphInfoGetCharacterCollection(glyphInfo) {
|
|
409
|
+
return callFunction("CTGlyphInfoGetCharacterCollection", { returns: "@" }, glyphInfo);
|
|
410
|
+
}
|
|
411
|
+
export function CTGlyphInfoGetCharacterIdentifier(glyphInfo) {
|
|
412
|
+
return callFunction("CTGlyphInfoGetCharacterIdentifier", { returns: "S" }, glyphInfo);
|
|
413
|
+
}
|
|
414
|
+
export function CTGlyphInfoGetGlyph(glyphInfo) {
|
|
415
|
+
return callFunction("CTGlyphInfoGetGlyph", { returns: "S" }, glyphInfo);
|
|
416
|
+
}
|
|
417
|
+
export function CTGlyphInfoGetGlyphName(glyphInfo) {
|
|
418
|
+
return callFunction("CTGlyphInfoGetGlyphName", { returns: "^" }, glyphInfo);
|
|
419
|
+
}
|
|
420
|
+
export function CTGlyphInfoGetTypeID() {
|
|
421
|
+
return callFunction("CTGlyphInfoGetTypeID", { returns: "L" });
|
|
422
|
+
}
|
|
423
|
+
export function CTLineCreateJustifiedLine(line, justificationFactor, justificationWidth) {
|
|
424
|
+
return callFunction("CTLineCreateJustifiedLine", { returns: "@", args: ["@", "d", "d"] }, line, justificationFactor, justificationWidth);
|
|
425
|
+
}
|
|
426
|
+
export function CTLineCreateTruncatedLine(line, width, truncationType, truncationToken) {
|
|
427
|
+
return callFunction("CTLineCreateTruncatedLine", { returns: "@", args: ["@", "d", "@", "@"] }, line, width, truncationType, truncationToken);
|
|
428
|
+
}
|
|
429
|
+
export function CTLineCreateWithAttributedString(attrString) {
|
|
430
|
+
return callFunction("CTLineCreateWithAttributedString", { returns: "@" }, attrString);
|
|
431
|
+
}
|
|
432
|
+
export function CTLineDraw(line, context) {
|
|
433
|
+
callFunction("CTLineDraw", { args: ["@", "^"] }, line, context);
|
|
434
|
+
}
|
|
435
|
+
export function CTLineEnumerateCaretOffsets(line, block) {
|
|
436
|
+
callFunction("CTLineEnumerateCaretOffsets", undefined, line, block);
|
|
437
|
+
}
|
|
438
|
+
export function CTLineGetBoundsWithOptions(line, options) {
|
|
439
|
+
return callFunction("CTLineGetBoundsWithOptions", { returns: "{CGRect}" }, line, options);
|
|
440
|
+
}
|
|
441
|
+
export function CTLineGetGlyphCount(line) {
|
|
442
|
+
return callFunction("CTLineGetGlyphCount", { returns: "q" }, line);
|
|
443
|
+
}
|
|
444
|
+
export function CTLineGetGlyphRuns(line) {
|
|
445
|
+
return callFunction("CTLineGetGlyphRuns", { returns: "@" }, line);
|
|
446
|
+
}
|
|
447
|
+
export function CTLineGetImageBounds(line, context) {
|
|
448
|
+
return callFunction("CTLineGetImageBounds", { returns: "{CGRect}", args: ["@", "^"] }, line, context);
|
|
449
|
+
}
|
|
450
|
+
export function CTLineGetOffsetForStringIndex(line, charIndex, secondaryOffset) {
|
|
451
|
+
return callFunction("CTLineGetOffsetForStringIndex", { returns: "d", args: ["@", "q", "@"] }, line, charIndex, secondaryOffset);
|
|
452
|
+
}
|
|
453
|
+
export function CTLineGetPenOffsetForFlush(line, flushFactor, flushWidth) {
|
|
454
|
+
return callFunction("CTLineGetPenOffsetForFlush", { returns: "d", args: ["@", "d", "d"] }, line, flushFactor, flushWidth);
|
|
455
|
+
}
|
|
456
|
+
export function CTLineGetStringIndexForPosition(line, position) {
|
|
457
|
+
return callFunction("CTLineGetStringIndexForPosition", { returns: "q", args: ["@", "{CGPoint}"] }, line, position);
|
|
458
|
+
}
|
|
459
|
+
export function CTLineGetStringRange(line) {
|
|
460
|
+
return callFunction("CTLineGetStringRange", { returns: "@" }, line);
|
|
461
|
+
}
|
|
462
|
+
export function CTLineGetTrailingWhitespaceWidth(line) {
|
|
463
|
+
return callFunction("CTLineGetTrailingWhitespaceWidth", { returns: "d" }, line);
|
|
464
|
+
}
|
|
465
|
+
export function CTLineGetTypeID() {
|
|
466
|
+
return callFunction("CTLineGetTypeID", { returns: "L" });
|
|
467
|
+
}
|
|
468
|
+
export function CTLineGetTypographicBounds(line, ascent, descent, leading) {
|
|
469
|
+
return callFunction("CTLineGetTypographicBounds", { returns: "d" }, line, ascent, descent, leading);
|
|
470
|
+
}
|
|
471
|
+
export function CTParagraphStyleCreate(settings, settingCount) {
|
|
472
|
+
return callFunction("CTParagraphStyleCreate", { returns: "@", args: ["@", "Q"] }, settings, settingCount);
|
|
473
|
+
}
|
|
474
|
+
export function CTParagraphStyleCreateCopy(paragraphStyle) {
|
|
475
|
+
return callFunction("CTParagraphStyleCreateCopy", { returns: "@" }, paragraphStyle);
|
|
476
|
+
}
|
|
477
|
+
export function CTParagraphStyleGetTypeID() {
|
|
478
|
+
return callFunction("CTParagraphStyleGetTypeID", { returns: "L" });
|
|
479
|
+
}
|
|
480
|
+
export function CTParagraphStyleGetValueForSpecifier(paragraphStyle, spec, valueBufferSize, valueBuffer) {
|
|
481
|
+
return callFunction("CTParagraphStyleGetValueForSpecifier", { returns: "B", args: ["@", "@", "Q", "^v"] }, paragraphStyle, spec, valueBufferSize, valueBuffer);
|
|
482
|
+
}
|
|
483
|
+
export function CTRubyAnnotationCreate(alignment, overhang, sizeFactor, text) {
|
|
484
|
+
return callFunction("CTRubyAnnotationCreate", { returns: "@", args: ["@", "@", "d", "@"] }, alignment, overhang, sizeFactor, text);
|
|
485
|
+
}
|
|
486
|
+
export function CTRubyAnnotationCreateCopy(rubyAnnotation) {
|
|
487
|
+
return callFunction("CTRubyAnnotationCreateCopy", { returns: "@" }, rubyAnnotation);
|
|
488
|
+
}
|
|
489
|
+
export function CTRubyAnnotationCreateWithAttributes(alignment, overhang, position, string_, attributes) {
|
|
490
|
+
return callFunction("CTRubyAnnotationCreateWithAttributes", { returns: "@", args: ["@", "@", "@", "^", "@"] }, alignment, overhang, position, string_, attributes);
|
|
491
|
+
}
|
|
492
|
+
export function CTRubyAnnotationGetAlignment(rubyAnnotation) {
|
|
493
|
+
return callFunction("CTRubyAnnotationGetAlignment", { returns: "@" }, rubyAnnotation);
|
|
494
|
+
}
|
|
495
|
+
export function CTRubyAnnotationGetOverhang(rubyAnnotation) {
|
|
496
|
+
return callFunction("CTRubyAnnotationGetOverhang", { returns: "@" }, rubyAnnotation);
|
|
497
|
+
}
|
|
498
|
+
export function CTRubyAnnotationGetSizeFactor(rubyAnnotation) {
|
|
499
|
+
return callFunction("CTRubyAnnotationGetSizeFactor", { returns: "d" }, rubyAnnotation);
|
|
500
|
+
}
|
|
501
|
+
export function CTRubyAnnotationGetTextForPosition(rubyAnnotation, position) {
|
|
502
|
+
return callFunction("CTRubyAnnotationGetTextForPosition", { returns: "^" }, rubyAnnotation, position);
|
|
503
|
+
}
|
|
504
|
+
export function CTRubyAnnotationGetTypeID() {
|
|
505
|
+
return callFunction("CTRubyAnnotationGetTypeID", { returns: "L" });
|
|
506
|
+
}
|
|
507
|
+
export function CTRunDelegateCreate(callbacks, refCon) {
|
|
508
|
+
return callFunction("CTRunDelegateCreate", { returns: "@", args: ["@", "^v"] }, callbacks, refCon);
|
|
509
|
+
}
|
|
510
|
+
export function CTRunDelegateGetRefCon(runDelegate) {
|
|
511
|
+
return callFunction("CTRunDelegateGetRefCon", { returns: "^v" }, runDelegate);
|
|
512
|
+
}
|
|
513
|
+
export function CTRunDelegateGetTypeID() {
|
|
514
|
+
return callFunction("CTRunDelegateGetTypeID", { returns: "L" });
|
|
515
|
+
}
|
|
516
|
+
export function CTRunDraw(run, context, range) {
|
|
517
|
+
callFunction("CTRunDraw", { args: ["@", "^", "@"] }, run, context, range);
|
|
518
|
+
}
|
|
519
|
+
export function CTRunGetAdvances(run, range, buffer) {
|
|
520
|
+
callFunction("CTRunGetAdvances", undefined, run, range, buffer);
|
|
521
|
+
}
|
|
522
|
+
export function CTRunGetAdvancesPtr(run) {
|
|
523
|
+
return callFunction("CTRunGetAdvancesPtr", { returns: "@" }, run);
|
|
524
|
+
}
|
|
525
|
+
export function CTRunGetAttributes(run) {
|
|
526
|
+
return callFunction("CTRunGetAttributes", { returns: "@" }, run);
|
|
527
|
+
}
|
|
528
|
+
export function CTRunGetBaseAdvancesAndOrigins(runRef, range, advancesBuffer, originsBuffer) {
|
|
529
|
+
callFunction("CTRunGetBaseAdvancesAndOrigins", undefined, runRef, range, advancesBuffer, originsBuffer);
|
|
530
|
+
}
|
|
531
|
+
export function CTRunGetGlyphCount(run) {
|
|
532
|
+
return callFunction("CTRunGetGlyphCount", { returns: "q" }, run);
|
|
533
|
+
}
|
|
534
|
+
export function CTRunGetGlyphs(run, range, buffer) {
|
|
535
|
+
callFunction("CTRunGetGlyphs", undefined, run, range, buffer);
|
|
536
|
+
}
|
|
537
|
+
export function CTRunGetGlyphsPtr(run) {
|
|
538
|
+
return callFunction("CTRunGetGlyphsPtr", { returns: "@" }, run);
|
|
539
|
+
}
|
|
540
|
+
export function CTRunGetImageBounds(run, context, range) {
|
|
541
|
+
return callFunction("CTRunGetImageBounds", { returns: "{CGRect}", args: ["@", "^", "@"] }, run, context, range);
|
|
542
|
+
}
|
|
543
|
+
export function CTRunGetPositions(run, range, buffer) {
|
|
544
|
+
callFunction("CTRunGetPositions", undefined, run, range, buffer);
|
|
545
|
+
}
|
|
546
|
+
export function CTRunGetPositionsPtr(run) {
|
|
547
|
+
return callFunction("CTRunGetPositionsPtr", { returns: "@" }, run);
|
|
548
|
+
}
|
|
549
|
+
export function CTRunGetStatus(run) {
|
|
550
|
+
return callFunction("CTRunGetStatus", { returns: "@" }, run);
|
|
551
|
+
}
|
|
552
|
+
export function CTRunGetStringIndices(run, range, buffer) {
|
|
553
|
+
callFunction("CTRunGetStringIndices", undefined, run, range, buffer);
|
|
554
|
+
}
|
|
555
|
+
export function CTRunGetStringIndicesPtr(run) {
|
|
556
|
+
return callFunction("CTRunGetStringIndicesPtr", { returns: "@" }, run);
|
|
557
|
+
}
|
|
558
|
+
export function CTRunGetStringRange(run) {
|
|
559
|
+
return callFunction("CTRunGetStringRange", { returns: "@" }, run);
|
|
560
|
+
}
|
|
561
|
+
export function CTRunGetTextMatrix(run) {
|
|
562
|
+
return callFunction("CTRunGetTextMatrix", { returns: "{CGAffineTransform}" }, run);
|
|
563
|
+
}
|
|
564
|
+
export function CTRunGetTypeID() {
|
|
565
|
+
return callFunction("CTRunGetTypeID", { returns: "L" });
|
|
566
|
+
}
|
|
567
|
+
export function CTRunGetTypographicBounds(run, range, ascent, descent, leading) {
|
|
568
|
+
return callFunction("CTRunGetTypographicBounds", { returns: "d" }, run, range, ascent, descent, leading);
|
|
569
|
+
}
|
|
570
|
+
export function CTTextTabCreate(alignment, location, options) {
|
|
571
|
+
return callFunction("CTTextTabCreate", { returns: "@", args: ["@", "d", "@"] }, alignment, location, options);
|
|
572
|
+
}
|
|
573
|
+
export function CTTextTabGetAlignment(tab) {
|
|
574
|
+
return callFunction("CTTextTabGetAlignment", { returns: "@" }, tab);
|
|
575
|
+
}
|
|
576
|
+
export function CTTextTabGetLocation(tab) {
|
|
577
|
+
return callFunction("CTTextTabGetLocation", { returns: "d" }, tab);
|
|
578
|
+
}
|
|
579
|
+
export function CTTextTabGetOptions(tab) {
|
|
580
|
+
return callFunction("CTTextTabGetOptions", { returns: "@" }, tab);
|
|
581
|
+
}
|
|
582
|
+
export function CTTextTabGetTypeID() {
|
|
583
|
+
return callFunction("CTTextTabGetTypeID", { returns: "L" });
|
|
584
|
+
}
|
|
585
|
+
export function CTTypesetterCreateLine(typesetter, stringRange) {
|
|
586
|
+
return callFunction("CTTypesetterCreateLine", { returns: "@" }, typesetter, stringRange);
|
|
587
|
+
}
|
|
588
|
+
export function CTTypesetterCreateLineWithOffset(typesetter, stringRange, offset) {
|
|
589
|
+
return callFunction("CTTypesetterCreateLineWithOffset", { returns: "@", args: ["@", "@", "d"] }, typesetter, stringRange, offset);
|
|
590
|
+
}
|
|
591
|
+
export function CTTypesetterCreateWithAttributedString(string_) {
|
|
592
|
+
return callFunction("CTTypesetterCreateWithAttributedString", { returns: "@" }, string_);
|
|
593
|
+
}
|
|
594
|
+
export function CTTypesetterCreateWithAttributedStringAndOptions(string_, options) {
|
|
595
|
+
return callFunction("CTTypesetterCreateWithAttributedStringAndOptions", { returns: "@" }, string_, options);
|
|
596
|
+
}
|
|
597
|
+
export function CTTypesetterGetTypeID() {
|
|
598
|
+
return callFunction("CTTypesetterGetTypeID", { returns: "L" });
|
|
599
|
+
}
|
|
600
|
+
export function CTTypesetterSuggestClusterBreak(typesetter, startIndex, width) {
|
|
601
|
+
return callFunction("CTTypesetterSuggestClusterBreak", { returns: "q", args: ["@", "q", "d"] }, typesetter, startIndex, width);
|
|
602
|
+
}
|
|
603
|
+
export function CTTypesetterSuggestClusterBreakWithOffset(typesetter, startIndex, width, offset) {
|
|
604
|
+
return callFunction("CTTypesetterSuggestClusterBreakWithOffset", { returns: "q", args: ["@", "q", "d", "d"] }, typesetter, startIndex, width, offset);
|
|
605
|
+
}
|
|
606
|
+
export function CTTypesetterSuggestLineBreak(typesetter, startIndex, width) {
|
|
607
|
+
return callFunction("CTTypesetterSuggestLineBreak", { returns: "q", args: ["@", "q", "d"] }, typesetter, startIndex, width);
|
|
608
|
+
}
|
|
609
|
+
export function CTTypesetterSuggestLineBreakWithOffset(typesetter, startIndex, width, offset) {
|
|
610
|
+
return callFunction("CTTypesetterSuggestLineBreakWithOffset", { returns: "q", args: ["@", "q", "d", "d"] }, typesetter, startIndex, width, offset);
|
|
611
|
+
}
|
package/dist/CoreText/index.d.ts
CHANGED
package/dist/CoreText/index.js
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { NobjcObject } from "objc-js";
|
|
2
|
+
import type { _NSData } from "../Foundation/NSData.js";
|
|
3
|
+
import type { _NSSet } from "../Foundation/NSSet.js";
|
|
4
|
+
import type { _NSString } from "../Foundation/NSString.js";
|
|
5
|
+
import type { CWKeychainDomain } from "./CWKeychainDomain.js";
|
|
6
|
+
export declare function CWKeychainCopyEAPIdentity(ssidData: NobjcObject, identity: NobjcObject | null): number;
|
|
7
|
+
export declare function CWKeychainCopyEAPIdentityList(list: NobjcObject | null): number;
|
|
8
|
+
export declare function CWKeychainCopyEAPUsernameAndPassword(ssidData: NobjcObject, username: NobjcObject | null, password: NobjcObject | null): number;
|
|
9
|
+
export declare function CWKeychainCopyPassword(ssidData: NobjcObject, password: NobjcObject | null): number;
|
|
10
|
+
export declare function CWKeychainCopyWiFiEAPIdentity(domain: CWKeychainDomain, ssid: _NSData, identity: NobjcObject | null): number;
|
|
11
|
+
export declare function CWKeychainDeleteEAPUsernameAndPassword(ssidData: NobjcObject): number;
|
|
12
|
+
export declare function CWKeychainDeletePassword(ssidData: NobjcObject): number;
|
|
13
|
+
export declare function CWKeychainDeleteWiFiEAPUsernameAndPassword(domain: CWKeychainDomain, ssid: _NSData): number;
|
|
14
|
+
export declare function CWKeychainDeleteWiFiPassword(domain: CWKeychainDomain, ssid: _NSData): number;
|
|
15
|
+
export declare function CWKeychainFindWiFiEAPUsernameAndPassword(domain: CWKeychainDomain, ssid: _NSData, username: NobjcObject | null, password: NobjcObject | null): number;
|
|
16
|
+
export declare function CWKeychainFindWiFiPassword(domain: CWKeychainDomain, ssid: _NSData, password: NobjcObject | null): number;
|
|
17
|
+
export declare function CWKeychainSetEAPIdentity(ssidData: NobjcObject, identity: Uint8Array | null): number;
|
|
18
|
+
export declare function CWKeychainSetEAPUsernameAndPassword(ssidData: NobjcObject, username: Uint8Array | null, password: Uint8Array | null): number;
|
|
19
|
+
export declare function CWKeychainSetPassword(ssidData: NobjcObject, password: Uint8Array): number;
|
|
20
|
+
export declare function CWKeychainSetWiFiEAPIdentity(domain: CWKeychainDomain, ssid: _NSData, identity: Uint8Array | null): number;
|
|
21
|
+
export declare function CWKeychainSetWiFiEAPUsernameAndPassword(domain: CWKeychainDomain, ssid: _NSData, username: _NSString | null, password: _NSString | null): number;
|
|
22
|
+
export declare function CWKeychainSetWiFiPassword(domain: CWKeychainDomain, ssid: _NSData, password: _NSString): number;
|
|
23
|
+
export declare function CWMergeNetworks(networks: _NSSet): _NSSet;
|