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.
Files changed (194) hide show
  1. package/bin/objcjs-types.ts +31 -0
  2. package/dist/AVFoundation/functions.d.ts +21 -0
  3. package/dist/AVFoundation/functions.js +32 -0
  4. package/dist/AVFoundation/index.d.ts +1 -0
  5. package/dist/AVFoundation/index.js +1 -0
  6. package/dist/Accessibility/functions.d.ts +16 -0
  7. package/dist/Accessibility/functions.js +35 -0
  8. package/dist/Accessibility/index.d.ts +1 -0
  9. package/dist/Accessibility/index.js +1 -0
  10. package/dist/AddressBook/functions.d.ts +98 -0
  11. package/dist/AddressBook/functions.js +290 -0
  12. package/dist/AddressBook/index.d.ts +1 -0
  13. package/dist/AddressBook/index.js +1 -0
  14. package/dist/AppKit/functions.d.ts +112 -0
  15. package/dist/AppKit/functions.js +272 -0
  16. package/dist/AppKit/index.d.ts +1 -0
  17. package/dist/AppKit/index.js +1 -0
  18. package/dist/AudioToolbox/functions.d.ts +377 -0
  19. package/dist/AudioToolbox/functions.js +1124 -0
  20. package/dist/AudioToolbox/index.d.ts +1 -0
  21. package/dist/AudioToolbox/index.js +1 -0
  22. package/dist/AuthenticationServices/functions.d.ts +2 -0
  23. package/dist/AuthenticationServices/functions.js +5 -0
  24. package/dist/AuthenticationServices/index.d.ts +1 -0
  25. package/dist/AuthenticationServices/index.js +1 -0
  26. package/dist/BrowserEngineCore/functions.d.ts +3 -0
  27. package/dist/BrowserEngineCore/functions.js +11 -0
  28. package/dist/BrowserEngineCore/index.d.ts +1 -0
  29. package/dist/BrowserEngineCore/index.js +1 -0
  30. package/dist/CoreAudio/functions.d.ts +60 -0
  31. package/dist/CoreAudio/functions.js +173 -0
  32. package/dist/CoreAudio/index.d.ts +1 -0
  33. package/dist/CoreAudio/index.js +1 -0
  34. package/dist/CoreMIDI/functions.d.ts +96 -0
  35. package/dist/CoreMIDI/functions.js +287 -0
  36. package/dist/CoreMIDI/index.d.ts +1 -0
  37. package/dist/CoreMIDI/index.js +1 -0
  38. package/dist/CoreML/functions.d.ts +2 -0
  39. package/dist/CoreML/functions.js +5 -0
  40. package/dist/CoreML/index.d.ts +1 -0
  41. package/dist/CoreML/index.js +1 -0
  42. package/dist/CoreMediaIO/functions.d.ts +38 -0
  43. package/dist/CoreMediaIO/functions.js +107 -0
  44. package/dist/CoreMediaIO/index.d.ts +1 -0
  45. package/dist/CoreMediaIO/index.js +1 -0
  46. package/dist/CoreText/functions.d.ts +209 -0
  47. package/dist/CoreText/functions.js +611 -0
  48. package/dist/CoreText/index.d.ts +1 -0
  49. package/dist/CoreText/index.js +1 -0
  50. package/dist/CoreWLAN/functions.d.ts +23 -0
  51. package/dist/CoreWLAN/functions.js +56 -0
  52. package/dist/CoreWLAN/index.d.ts +1 -0
  53. package/dist/CoreWLAN/index.js +1 -0
  54. package/dist/DeviceDiscoveryExtension/functions.d.ts +11 -0
  55. package/dist/DeviceDiscoveryExtension/functions.js +17 -0
  56. package/dist/DeviceDiscoveryExtension/index.d.ts +1 -0
  57. package/dist/DeviceDiscoveryExtension/index.js +1 -0
  58. package/dist/DiscRecording/functions.d.ts +97 -0
  59. package/dist/DiscRecording/functions.js +290 -0
  60. package/dist/DiscRecording/index.d.ts +1 -0
  61. package/dist/DiscRecording/index.js +1 -0
  62. package/dist/DiscRecordingUI/functions.d.ts +13 -0
  63. package/dist/DiscRecordingUI/functions.js +38 -0
  64. package/dist/DiscRecordingUI/index.d.ts +1 -0
  65. package/dist/DiscRecordingUI/index.js +1 -0
  66. package/dist/ExceptionHandling/functions.d.ts +1 -0
  67. package/dist/ExceptionHandling/functions.js +5 -0
  68. package/dist/ExceptionHandling/index.d.ts +1 -0
  69. package/dist/ExceptionHandling/index.js +1 -0
  70. package/dist/FSKit/functions.d.ts +4 -0
  71. package/dist/FSKit/functions.js +11 -0
  72. package/dist/FSKit/index.d.ts +1 -0
  73. package/dist/FSKit/index.js +1 -0
  74. package/dist/Foundation/functions.d.ts +145 -0
  75. package/dist/Foundation/functions.js +386 -0
  76. package/dist/Foundation/index.d.ts +1 -0
  77. package/dist/Foundation/index.js +1 -0
  78. package/dist/GLKit/functions.d.ts +51 -0
  79. package/dist/GLKit/functions.js +146 -0
  80. package/dist/GLKit/index.d.ts +1 -0
  81. package/dist/GLKit/index.js +1 -0
  82. package/dist/GameController/functions.d.ts +18 -0
  83. package/dist/GameController/functions.js +44 -0
  84. package/dist/GameController/index.d.ts +1 -0
  85. package/dist/GameController/index.js +1 -0
  86. package/dist/HealthKit/functions.d.ts +19 -0
  87. package/dist/HealthKit/functions.js +35 -0
  88. package/dist/HealthKit/index.d.ts +1 -0
  89. package/dist/HealthKit/index.js +1 -0
  90. package/dist/IOSurface/functions.d.ts +53 -0
  91. package/dist/IOSurface/functions.js +155 -0
  92. package/dist/IOSurface/index.d.ts +1 -0
  93. package/dist/IOSurface/index.js +1 -0
  94. package/dist/IOUSBHost/functions.d.ts +44 -0
  95. package/dist/IOUSBHost/functions.js +131 -0
  96. package/dist/IOUSBHost/index.d.ts +1 -0
  97. package/dist/IOUSBHost/index.js +1 -0
  98. package/dist/InstantMessage/functions.d.ts +1 -0
  99. package/dist/InstantMessage/functions.js +5 -0
  100. package/dist/InstantMessage/index.d.ts +1 -0
  101. package/dist/InstantMessage/index.js +1 -0
  102. package/dist/JavaRuntimeSupport/functions.d.ts +40 -0
  103. package/dist/JavaRuntimeSupport/functions.js +113 -0
  104. package/dist/JavaRuntimeSupport/index.d.ts +1 -0
  105. package/dist/JavaRuntimeSupport/index.js +1 -0
  106. package/dist/JavaScriptCore/functions.d.ts +120 -0
  107. package/dist/JavaScriptCore/functions.js +359 -0
  108. package/dist/JavaScriptCore/index.d.ts +1 -0
  109. package/dist/JavaScriptCore/index.js +1 -0
  110. package/dist/MLCompute/functions.d.ts +27 -0
  111. package/dist/MLCompute/functions.js +41 -0
  112. package/dist/MLCompute/index.d.ts +1 -0
  113. package/dist/MLCompute/index.js +1 -0
  114. package/dist/MapKit/functions.d.ts +23 -0
  115. package/dist/MapKit/functions.js +56 -0
  116. package/dist/MapKit/index.d.ts +1 -0
  117. package/dist/MapKit/index.js +1 -0
  118. package/dist/Matter/functions.d.ts +17 -0
  119. package/dist/Matter/functions.js +26 -0
  120. package/dist/Matter/index.d.ts +1 -0
  121. package/dist/Matter/index.js +1 -0
  122. package/dist/MediaAccessibility/functions.d.ts +28 -0
  123. package/dist/MediaAccessibility/functions.js +83 -0
  124. package/dist/MediaAccessibility/index.d.ts +1 -0
  125. package/dist/MediaAccessibility/index.js +1 -0
  126. package/dist/MediaPlayer/functions.d.ts +3 -0
  127. package/dist/MediaPlayer/functions.js +11 -0
  128. package/dist/MediaPlayer/index.d.ts +1 -0
  129. package/dist/MediaPlayer/index.js +1 -0
  130. package/dist/Metal/functions.d.ts +14 -0
  131. package/dist/Metal/functions.js +26 -0
  132. package/dist/Metal/index.d.ts +1 -0
  133. package/dist/Metal/index.js +1 -0
  134. package/dist/MetalKit/functions.d.ts +11 -0
  135. package/dist/MetalKit/functions.js +20 -0
  136. package/dist/MetalKit/index.d.ts +1 -0
  137. package/dist/MetalKit/index.js +1 -0
  138. package/dist/MetalPerformanceShaders/functions.d.ts +7 -0
  139. package/dist/MetalPerformanceShaders/functions.js +14 -0
  140. package/dist/MetalPerformanceShaders/index.d.ts +1 -0
  141. package/dist/MetalPerformanceShaders/index.js +1 -0
  142. package/dist/NearbyInteraction/functions.d.ts +3 -0
  143. package/dist/NearbyInteraction/functions.js +5 -0
  144. package/dist/NearbyInteraction/index.d.ts +1 -0
  145. package/dist/NearbyInteraction/index.js +1 -0
  146. package/dist/ParavirtualizedGraphics/functions.d.ts +7 -0
  147. package/dist/ParavirtualizedGraphics/functions.js +14 -0
  148. package/dist/ParavirtualizedGraphics/index.d.ts +1 -0
  149. package/dist/ParavirtualizedGraphics/index.js +1 -0
  150. package/dist/QuartzCore/functions.d.ts +19 -0
  151. package/dist/QuartzCore/functions.js +50 -0
  152. package/dist/QuartzCore/index.d.ts +1 -0
  153. package/dist/QuartzCore/index.js +1 -0
  154. package/dist/SceneKit/functions.d.ts +17 -0
  155. package/dist/SceneKit/functions.js +38 -0
  156. package/dist/SceneKit/index.d.ts +1 -0
  157. package/dist/SceneKit/index.js +1 -0
  158. package/dist/SensorKit/functions.d.ts +4 -0
  159. package/dist/SensorKit/functions.js +14 -0
  160. package/dist/SensorKit/index.d.ts +1 -0
  161. package/dist/SensorKit/index.js +1 -0
  162. package/dist/ServiceManagement/functions.d.ts +7 -0
  163. package/dist/ServiceManagement/functions.js +20 -0
  164. package/dist/ServiceManagement/index.d.ts +1 -0
  165. package/dist/ServiceManagement/index.js +1 -0
  166. package/dist/StoreKit/functions.d.ts +1 -0
  167. package/dist/StoreKit/functions.js +5 -0
  168. package/dist/StoreKit/index.d.ts +1 -0
  169. package/dist/StoreKit/index.js +1 -0
  170. package/dist/VideoToolbox/functions.d.ts +81 -0
  171. package/dist/VideoToolbox/functions.js +236 -0
  172. package/dist/VideoToolbox/index.d.ts +1 -0
  173. package/dist/VideoToolbox/index.js +1 -0
  174. package/dist/Vision/functions.d.ts +16 -0
  175. package/dist/Vision/functions.js +38 -0
  176. package/dist/Vision/index.d.ts +1 -0
  177. package/dist/Vision/index.js +1 -0
  178. package/generator/ast-parser.ts +1368 -0
  179. package/generator/clang.ts +167 -0
  180. package/generator/custom.ts +936 -0
  181. package/generator/discover.ts +111 -0
  182. package/generator/emitter.ts +2026 -0
  183. package/generator/frameworks.ts +135 -0
  184. package/generator/index.ts +1334 -0
  185. package/generator/parse-worker.ts +263 -0
  186. package/generator/resolve-strings.ts +121 -0
  187. package/generator/struct-fields.ts +46 -0
  188. package/generator/templates/bind.ts +100 -0
  189. package/generator/templates/helpers.ts +70 -0
  190. package/generator/templates/nsdata.ts +97 -0
  191. package/generator/templates/osversion.ts +91 -0
  192. package/generator/type-mapper.ts +615 -0
  193. package/generator/worker-pool.ts +309 -0
  194. package/package.json +13 -4
@@ -0,0 +1,146 @@
1
+ // AUTO-GENERATED by objcjs-types generator — DO NOT EDIT
2
+ import { callFunction } from "objc-js";
3
+ export function GLKMathProject(object_, model, projection, viewport) {
4
+ return callFunction("GLKMathProject", { returns: "@" }, object_, model, projection, viewport);
5
+ }
6
+ export function GLKMathUnproject(window, model, projection, viewport, success) {
7
+ return callFunction("GLKMathUnproject", { returns: "@" }, window, model, projection, viewport, success);
8
+ }
9
+ export function GLKMatrix3Invert(matrix, isInvertible) {
10
+ return callFunction("GLKMatrix3Invert", { returns: "@" }, matrix, isInvertible);
11
+ }
12
+ export function GLKMatrix3InvertAndTranspose(matrix, isInvertible) {
13
+ return callFunction("GLKMatrix3InvertAndTranspose", { returns: "@" }, matrix, isInvertible);
14
+ }
15
+ export function GLKMatrix4Invert(matrix, isInvertible) {
16
+ return callFunction("GLKMatrix4Invert", { returns: "@" }, matrix, isInvertible);
17
+ }
18
+ export function GLKMatrix4InvertAndTranspose(matrix, isInvertible) {
19
+ return callFunction("GLKMatrix4InvertAndTranspose", { returns: "@" }, matrix, isInvertible);
20
+ }
21
+ export function GLKMatrixStackCreate(alloc) {
22
+ return callFunction("GLKMatrixStackCreate", { returns: "@" }, alloc);
23
+ }
24
+ export function GLKMatrixStackGetMatrix2(stack) {
25
+ return callFunction("GLKMatrixStackGetMatrix2", { returns: "@" }, stack);
26
+ }
27
+ export function GLKMatrixStackGetMatrix3(stack) {
28
+ return callFunction("GLKMatrixStackGetMatrix3", { returns: "@" }, stack);
29
+ }
30
+ export function GLKMatrixStackGetMatrix3Inverse(stack) {
31
+ return callFunction("GLKMatrixStackGetMatrix3Inverse", { returns: "@" }, stack);
32
+ }
33
+ export function GLKMatrixStackGetMatrix3InverseTranspose(stack) {
34
+ return callFunction("GLKMatrixStackGetMatrix3InverseTranspose", { returns: "@" }, stack);
35
+ }
36
+ export function GLKMatrixStackGetMatrix4(stack) {
37
+ return callFunction("GLKMatrixStackGetMatrix4", { returns: "@" }, stack);
38
+ }
39
+ export function GLKMatrixStackGetMatrix4Inverse(stack) {
40
+ return callFunction("GLKMatrixStackGetMatrix4Inverse", { returns: "@" }, stack);
41
+ }
42
+ export function GLKMatrixStackGetMatrix4InverseTranspose(stack) {
43
+ return callFunction("GLKMatrixStackGetMatrix4InverseTranspose", { returns: "@" }, stack);
44
+ }
45
+ export function GLKMatrixStackGetTypeID() {
46
+ return callFunction("GLKMatrixStackGetTypeID", { returns: "L" });
47
+ }
48
+ export function GLKMatrixStackLoadMatrix4(stack, matrix) {
49
+ callFunction("GLKMatrixStackLoadMatrix4", undefined, stack, matrix);
50
+ }
51
+ export function GLKMatrixStackMultiplyMatrix4(stack, matrix) {
52
+ callFunction("GLKMatrixStackMultiplyMatrix4", undefined, stack, matrix);
53
+ }
54
+ export function GLKMatrixStackMultiplyMatrixStack(stackLeft, stackRight) {
55
+ callFunction("GLKMatrixStackMultiplyMatrixStack", undefined, stackLeft, stackRight);
56
+ }
57
+ export function GLKMatrixStackPop(stack) {
58
+ callFunction("GLKMatrixStackPop", undefined, stack);
59
+ }
60
+ export function GLKMatrixStackPush(stack) {
61
+ callFunction("GLKMatrixStackPush", undefined, stack);
62
+ }
63
+ export function GLKMatrixStackRotate(stack, radians, x, y, z) {
64
+ callFunction("GLKMatrixStackRotate", { args: ["@", "f", "f", "f", "f"] }, stack, radians, x, y, z);
65
+ }
66
+ export function GLKMatrixStackRotateWithVector3(stack, radians, axisVector) {
67
+ callFunction("GLKMatrixStackRotateWithVector3", { args: ["@", "f", "@"] }, stack, radians, axisVector);
68
+ }
69
+ export function GLKMatrixStackRotateWithVector4(stack, radians, axisVector) {
70
+ callFunction("GLKMatrixStackRotateWithVector4", { args: ["@", "f", "@"] }, stack, radians, axisVector);
71
+ }
72
+ export function GLKMatrixStackRotateX(stack, radians) {
73
+ callFunction("GLKMatrixStackRotateX", { args: ["@", "f"] }, stack, radians);
74
+ }
75
+ export function GLKMatrixStackRotateY(stack, radians) {
76
+ callFunction("GLKMatrixStackRotateY", { args: ["@", "f"] }, stack, radians);
77
+ }
78
+ export function GLKMatrixStackRotateZ(stack, radians) {
79
+ callFunction("GLKMatrixStackRotateZ", { args: ["@", "f"] }, stack, radians);
80
+ }
81
+ export function GLKMatrixStackScale(stack, sx, sy, sz) {
82
+ callFunction("GLKMatrixStackScale", { args: ["@", "f", "f", "f"] }, stack, sx, sy, sz);
83
+ }
84
+ export function GLKMatrixStackScaleWithVector3(stack, scaleVector) {
85
+ callFunction("GLKMatrixStackScaleWithVector3", undefined, stack, scaleVector);
86
+ }
87
+ export function GLKMatrixStackScaleWithVector4(stack, scaleVector) {
88
+ callFunction("GLKMatrixStackScaleWithVector4", undefined, stack, scaleVector);
89
+ }
90
+ export function GLKMatrixStackSize(stack) {
91
+ return callFunction("GLKMatrixStackSize", { returns: "i" }, stack);
92
+ }
93
+ export function GLKMatrixStackTranslate(stack, tx, ty, tz) {
94
+ callFunction("GLKMatrixStackTranslate", { args: ["@", "f", "f", "f"] }, stack, tx, ty, tz);
95
+ }
96
+ export function GLKMatrixStackTranslateWithVector3(stack, translationVector) {
97
+ callFunction("GLKMatrixStackTranslateWithVector3", undefined, stack, translationVector);
98
+ }
99
+ export function GLKMatrixStackTranslateWithVector4(stack, translationVector) {
100
+ callFunction("GLKMatrixStackTranslateWithVector4", undefined, stack, translationVector);
101
+ }
102
+ export function GLKQuaternionAngle(quaternion) {
103
+ return callFunction("GLKQuaternionAngle", { returns: "f" }, quaternion);
104
+ }
105
+ export function GLKQuaternionAxis(quaternion) {
106
+ return callFunction("GLKQuaternionAxis", { returns: "@" }, quaternion);
107
+ }
108
+ export function GLKQuaternionMakeWithMatrix3(matrix) {
109
+ return callFunction("GLKQuaternionMakeWithMatrix3", { returns: "@" }, matrix);
110
+ }
111
+ export function GLKQuaternionMakeWithMatrix4(matrix) {
112
+ return callFunction("GLKQuaternionMakeWithMatrix4", { returns: "@" }, matrix);
113
+ }
114
+ export function GLKQuaternionRotateVector3Array(quaternion, vectors, vectorCount) {
115
+ callFunction("GLKQuaternionRotateVector3Array", { args: ["@", "@", "Q"] }, quaternion, vectors, vectorCount);
116
+ }
117
+ export function GLKQuaternionRotateVector4Array(quaternion, vectors, vectorCount) {
118
+ callFunction("GLKQuaternionRotateVector4Array", { args: ["@", "@", "Q"] }, quaternion, vectors, vectorCount);
119
+ }
120
+ export function GLKQuaternionSlerp(quaternionStart, quaternionEnd, t) {
121
+ return callFunction("GLKQuaternionSlerp", { returns: "@", args: ["@", "@", "f"] }, quaternionStart, quaternionEnd, t);
122
+ }
123
+ export function GLKVertexAttributeParametersFromModelIO(vertexFormat) {
124
+ return callFunction("GLKVertexAttributeParametersFromModelIO", { returns: "@", args: ["q"] }, vertexFormat);
125
+ }
126
+ export function NSStringFromGLKMatrix2(matrix) {
127
+ return callFunction("NSStringFromGLKMatrix2", { returns: "@" }, matrix);
128
+ }
129
+ export function NSStringFromGLKMatrix3(matrix) {
130
+ return callFunction("NSStringFromGLKMatrix3", { returns: "@" }, matrix);
131
+ }
132
+ export function NSStringFromGLKMatrix4(matrix) {
133
+ return callFunction("NSStringFromGLKMatrix4", { returns: "@" }, matrix);
134
+ }
135
+ export function NSStringFromGLKQuaternion(quaternion) {
136
+ return callFunction("NSStringFromGLKQuaternion", { returns: "@" }, quaternion);
137
+ }
138
+ export function NSStringFromGLKVector2(vector) {
139
+ return callFunction("NSStringFromGLKVector2", { returns: "@" }, vector);
140
+ }
141
+ export function NSStringFromGLKVector3(vector) {
142
+ return callFunction("NSStringFromGLKVector3", { returns: "@" }, vector);
143
+ }
144
+ export function NSStringFromGLKVector4(vector) {
145
+ return callFunction("NSStringFromGLKVector4", { returns: "@" }, vector);
146
+ }
@@ -55,3 +55,4 @@ export { GLKTextureInfoOrigin } from "./GLKTextureInfoOrigin.js";
55
55
  export { GLKTextureLoaderError } from "./GLKTextureLoaderError.js";
56
56
  export { GLKTextureTarget } from "./GLKTextureTarget.js";
57
57
  export { GLKVertexAttrib } from "./GLKVertexAttrib.js";
58
+ export * from "./functions.js";
@@ -25,3 +25,4 @@ export { GLKTextureInfoOrigin } from "./GLKTextureInfoOrigin.js";
25
25
  export { GLKTextureLoaderError } from "./GLKTextureLoaderError.js";
26
26
  export { GLKTextureTarget } from "./GLKTextureTarget.js";
27
27
  export { GLKVertexAttrib } from "./GLKVertexAttrib.js";
28
+ export * from "./functions.js";
@@ -0,0 +1,18 @@
1
+ import type { NobjcObject } from "objc-js";
2
+ import type { _NSData } from "../Foundation/NSData.js";
3
+ import type { _NSString } from "../Foundation/NSString.js";
4
+ import type { GCPoint2 } from "../structs/GCPoint2.js";
5
+ export declare function GCExtendedGamepadSnapshotDataFromNSData(snapshotData: NobjcObject | null, data: _NSData | null): boolean;
6
+ export declare function GCExtendedGamepadSnapShotDataV100FromNSData(snapshotData: NobjcObject | null, data: _NSData | null): boolean;
7
+ export declare function GCGamepadSnapShotDataV100FromNSData(snapshotData: NobjcObject | null, data: _NSData | null): boolean;
8
+ export declare function GCInputArcadeButtonName(row: number, column: number): NobjcObject;
9
+ export declare function GCInputBackLeftButton(position: number): NobjcObject;
10
+ export declare function GCInputBackRightButton(position: number): NobjcObject;
11
+ export declare function GCMicroGamepadSnapshotDataFromNSData(snapshotData: NobjcObject | null, data: _NSData | null): boolean;
12
+ export declare function GCMicroGamepadSnapShotDataV100FromNSData(snapshotData: NobjcObject | null, data: _NSData | null): boolean;
13
+ export declare function NSDataFromGCExtendedGamepadSnapshotData(snapshotData: NobjcObject | null): _NSData | null;
14
+ export declare function NSDataFromGCExtendedGamepadSnapShotDataV100(snapshotData: NobjcObject | null): _NSData | null;
15
+ export declare function NSDataFromGCGamepadSnapShotDataV100(snapshotData: NobjcObject | null): _NSData | null;
16
+ export declare function NSDataFromGCMicroGamepadSnapshotData(snapshotData: NobjcObject | null): _NSData | null;
17
+ export declare function NSDataFromGCMicroGamepadSnapShotDataV100(snapshotData: NobjcObject | null): _NSData | null;
18
+ export declare function NSStringFromGCPoint2(point: GCPoint2): _NSString;
@@ -0,0 +1,44 @@
1
+ // AUTO-GENERATED by objcjs-types generator — DO NOT EDIT
2
+ import { callFunction } from "objc-js";
3
+ export function GCExtendedGamepadSnapshotDataFromNSData(snapshotData, data) {
4
+ return callFunction("GCExtendedGamepadSnapshotDataFromNSData", { returns: "B" }, snapshotData, data);
5
+ }
6
+ export function GCExtendedGamepadSnapShotDataV100FromNSData(snapshotData, data) {
7
+ return callFunction("GCExtendedGamepadSnapShotDataV100FromNSData", { returns: "B" }, snapshotData, data);
8
+ }
9
+ export function GCGamepadSnapShotDataV100FromNSData(snapshotData, data) {
10
+ return callFunction("GCGamepadSnapShotDataV100FromNSData", { returns: "B" }, snapshotData, data);
11
+ }
12
+ export function GCInputArcadeButtonName(row, column) {
13
+ return callFunction("GCInputArcadeButtonName", { returns: "@", args: ["q", "q"] }, row, column);
14
+ }
15
+ export function GCInputBackLeftButton(position) {
16
+ return callFunction("GCInputBackLeftButton", { returns: "@", args: ["q"] }, position);
17
+ }
18
+ export function GCInputBackRightButton(position) {
19
+ return callFunction("GCInputBackRightButton", { returns: "@", args: ["q"] }, position);
20
+ }
21
+ export function GCMicroGamepadSnapshotDataFromNSData(snapshotData, data) {
22
+ return callFunction("GCMicroGamepadSnapshotDataFromNSData", { returns: "B" }, snapshotData, data);
23
+ }
24
+ export function GCMicroGamepadSnapShotDataV100FromNSData(snapshotData, data) {
25
+ return callFunction("GCMicroGamepadSnapShotDataV100FromNSData", { returns: "B" }, snapshotData, data);
26
+ }
27
+ export function NSDataFromGCExtendedGamepadSnapshotData(snapshotData) {
28
+ return callFunction("NSDataFromGCExtendedGamepadSnapshotData", { returns: "@" }, snapshotData);
29
+ }
30
+ export function NSDataFromGCExtendedGamepadSnapShotDataV100(snapshotData) {
31
+ return callFunction("NSDataFromGCExtendedGamepadSnapShotDataV100", { returns: "@" }, snapshotData);
32
+ }
33
+ export function NSDataFromGCGamepadSnapShotDataV100(snapshotData) {
34
+ return callFunction("NSDataFromGCGamepadSnapShotDataV100", { returns: "@" }, snapshotData);
35
+ }
36
+ export function NSDataFromGCMicroGamepadSnapshotData(snapshotData) {
37
+ return callFunction("NSDataFromGCMicroGamepadSnapshotData", { returns: "@" }, snapshotData);
38
+ }
39
+ export function NSDataFromGCMicroGamepadSnapShotDataV100(snapshotData) {
40
+ return callFunction("NSDataFromGCMicroGamepadSnapShotDataV100", { returns: "@" }, snapshotData);
41
+ }
42
+ export function NSStringFromGCPoint2(point) {
43
+ return callFunction("NSStringFromGCPoint2", { returns: "@", args: ["{GCPoint2}"] }, point);
44
+ }
@@ -171,3 +171,4 @@ export { GCPhysicalInputSourceDirection } from "./GCPhysicalInputSourceDirection
171
171
  export { GCSystemGestureState } from "./GCSystemGestureState.js";
172
172
  export { GCTouchState } from "./GCTouchState.js";
173
173
  export { GCHapticsLocality } from "./GCHapticsLocality.js";
174
+ export * from "./functions.js";
@@ -51,3 +51,4 @@ export { GCPhysicalInputSourceDirection } from "./GCPhysicalInputSourceDirection
51
51
  export { GCSystemGestureState } from "./GCSystemGestureState.js";
52
52
  export { GCTouchState } from "./GCTouchState.js";
53
53
  export { GCHapticsLocality } from "./GCHapticsLocality.js";
54
+ export * from "./functions.js";
@@ -0,0 +1,19 @@
1
+ import type { NobjcObject } from "objc-js";
2
+ import type { _NSNumber } from "../Foundation/NSNumber.js";
3
+ import type { _NSSet } from "../Foundation/NSSet.js";
4
+ import type { _HKQuantity } from "./HKQuantity.js";
5
+ import type { HKAppleSleepingBreathingDisturbancesClassification } from "./HKAppleSleepingBreathingDisturbancesClassification.js";
6
+ import type { HKAppleWalkingSteadinessClassification } from "./HKAppleWalkingSteadinessClassification.js";
7
+ import type { HKGAD7AssessmentRisk } from "./HKGAD7AssessmentRisk.js";
8
+ import type { HKPHQ9AssessmentRisk } from "./HKPHQ9AssessmentRisk.js";
9
+ export declare function HKAppleSleepingBreathingDisturbancesClassificationForQuantity(value: _HKQuantity): _NSNumber | null;
10
+ export declare function HKAppleSleepingBreathingDisturbancesMinimumQuantityForClassification(classification: HKAppleSleepingBreathingDisturbancesClassification): _HKQuantity;
11
+ export declare function HKAppleWalkingSteadinessClassificationForQuantity(value: _HKQuantity, classificationOut: NobjcObject, errorOut: NobjcObject | null): boolean;
12
+ export declare function HKAppleWalkingSteadinessMaximumQuantityForClassification(classification: HKAppleWalkingSteadinessClassification): _HKQuantity;
13
+ export declare function HKAppleWalkingSteadinessMinimumQuantityForClassification(classification: HKAppleWalkingSteadinessClassification): _HKQuantity;
14
+ export declare function HKCategoryValueSleepAnalysisAsleepValues(): _NSSet;
15
+ export declare function HKMaximumScoreForGAD7AssessmentRisk(risk: HKGAD7AssessmentRisk): number;
16
+ export declare function HKMaximumScoreForPHQ9AssessmentRisk(risk: HKPHQ9AssessmentRisk): number;
17
+ export declare function HKMinimumScoreForGAD7AssessmentRisk(risk: HKGAD7AssessmentRisk): number;
18
+ export declare function HKMinimumScoreForPHQ9AssessmentRisk(risk: HKPHQ9AssessmentRisk): number;
19
+ export declare function HKStateOfMindValenceClassificationForValence(valence: number): _NSNumber | null;
@@ -0,0 +1,35 @@
1
+ // AUTO-GENERATED by objcjs-types generator — DO NOT EDIT
2
+ import { callFunction } from "objc-js";
3
+ export function HKAppleSleepingBreathingDisturbancesClassificationForQuantity(value) {
4
+ return callFunction("HKAppleSleepingBreathingDisturbancesClassificationForQuantity", { returns: "@" }, value);
5
+ }
6
+ export function HKAppleSleepingBreathingDisturbancesMinimumQuantityForClassification(classification) {
7
+ return callFunction("HKAppleSleepingBreathingDisturbancesMinimumQuantityForClassification", { returns: "@", args: ["q"] }, classification);
8
+ }
9
+ export function HKAppleWalkingSteadinessClassificationForQuantity(value, classificationOut, errorOut) {
10
+ return callFunction("HKAppleWalkingSteadinessClassificationForQuantity", { returns: "B" }, value, classificationOut, errorOut);
11
+ }
12
+ export function HKAppleWalkingSteadinessMaximumQuantityForClassification(classification) {
13
+ return callFunction("HKAppleWalkingSteadinessMaximumQuantityForClassification", { returns: "@", args: ["q"] }, classification);
14
+ }
15
+ export function HKAppleWalkingSteadinessMinimumQuantityForClassification(classification) {
16
+ return callFunction("HKAppleWalkingSteadinessMinimumQuantityForClassification", { returns: "@", args: ["q"] }, classification);
17
+ }
18
+ export function HKCategoryValueSleepAnalysisAsleepValues() {
19
+ return callFunction("HKCategoryValueSleepAnalysisAsleepValues", { returns: "@" });
20
+ }
21
+ export function HKMaximumScoreForGAD7AssessmentRisk(risk) {
22
+ return callFunction("HKMaximumScoreForGAD7AssessmentRisk", { returns: "q", args: ["q"] }, risk);
23
+ }
24
+ export function HKMaximumScoreForPHQ9AssessmentRisk(risk) {
25
+ return callFunction("HKMaximumScoreForPHQ9AssessmentRisk", { returns: "q", args: ["q"] }, risk);
26
+ }
27
+ export function HKMinimumScoreForGAD7AssessmentRisk(risk) {
28
+ return callFunction("HKMinimumScoreForGAD7AssessmentRisk", { returns: "q", args: ["q"] }, risk);
29
+ }
30
+ export function HKMinimumScoreForPHQ9AssessmentRisk(risk) {
31
+ return callFunction("HKMinimumScoreForPHQ9AssessmentRisk", { returns: "q", args: ["q"] }, risk);
32
+ }
33
+ export function HKStateOfMindValenceClassificationForValence(valence) {
34
+ return callFunction("HKStateOfMindValenceClassificationForValence", { returns: "@", args: ["d"] }, valence);
35
+ }
@@ -413,3 +413,4 @@ export { HKQuantityTypeIdentifier } from "./HKQuantityTypeIdentifier.js";
413
413
  export { HKScoredAssessmentTypeIdentifier } from "./HKScoredAssessmentTypeIdentifier.js";
414
414
  export { HKVerifiableClinicalRecordCredentialType } from "./HKVerifiableClinicalRecordCredentialType.js";
415
415
  export { HKVerifiableClinicalRecordSourceType } from "./HKVerifiableClinicalRecordSourceType.js";
416
+ export * from "./functions.js";
@@ -195,3 +195,4 @@ export { HKQuantityTypeIdentifier } from "./HKQuantityTypeIdentifier.js";
195
195
  export { HKScoredAssessmentTypeIdentifier } from "./HKScoredAssessmentTypeIdentifier.js";
196
196
  export { HKVerifiableClinicalRecordCredentialType } from "./HKVerifiableClinicalRecordCredentialType.js";
197
197
  export { HKVerifiableClinicalRecordSourceType } from "./HKVerifiableClinicalRecordSourceType.js";
198
+ export * from "./functions.js";
@@ -0,0 +1,53 @@
1
+ import type { NobjcObject } from "objc-js";
2
+ import type { _NSObject } from "../Foundation/NSObject.js";
3
+ export declare function IOSurfaceAlignProperty(property: Uint8Array, value: number): number;
4
+ export declare function IOSurfaceAllowsPixelSizeCasting(buffer: Uint8Array): NobjcObject;
5
+ export declare function IOSurfaceCopyAllValues(buffer: Uint8Array): NobjcObject | null;
6
+ export declare function IOSurfaceCopyValue(buffer: Uint8Array, key: Uint8Array): NobjcObject;
7
+ export declare function IOSurfaceCreate(properties: NobjcObject): NobjcObject;
8
+ export declare function IOSurfaceCreateMachPort(buffer: Uint8Array): NobjcObject;
9
+ export declare function IOSurfaceCreateXPCObject(aSurface: Uint8Array): _NSObject;
10
+ export declare function IOSurfaceDecrementUseCount(buffer: Uint8Array): void;
11
+ export declare function IOSurfaceGetAllocSize(buffer: Uint8Array): number;
12
+ export declare function IOSurfaceGetBaseAddress(buffer: Uint8Array): NobjcObject;
13
+ export declare function IOSurfaceGetBaseAddressOfPlane(buffer: Uint8Array, planeIndex: number): NobjcObject;
14
+ export declare function IOSurfaceGetBitDepthOfComponentOfPlane(buffer: Uint8Array, planeIndex: number, componentIndex: number): number;
15
+ export declare function IOSurfaceGetBitOffsetOfComponentOfPlane(buffer: Uint8Array, planeIndex: number, componentIndex: number): number;
16
+ export declare function IOSurfaceGetBytesPerElement(buffer: Uint8Array): number;
17
+ export declare function IOSurfaceGetBytesPerElementOfPlane(buffer: Uint8Array, planeIndex: number): number;
18
+ export declare function IOSurfaceGetBytesPerRow(buffer: Uint8Array): number;
19
+ export declare function IOSurfaceGetBytesPerRowOfPlane(buffer: Uint8Array, planeIndex: number): number;
20
+ export declare function IOSurfaceGetElementHeight(buffer: Uint8Array): number;
21
+ export declare function IOSurfaceGetElementHeightOfPlane(buffer: Uint8Array, planeIndex: number): number;
22
+ export declare function IOSurfaceGetElementWidth(buffer: Uint8Array): number;
23
+ export declare function IOSurfaceGetElementWidthOfPlane(buffer: Uint8Array, planeIndex: number): number;
24
+ export declare function IOSurfaceGetHeight(buffer: Uint8Array): number;
25
+ export declare function IOSurfaceGetHeightOfPlane(buffer: Uint8Array, planeIndex: number): number;
26
+ export declare function IOSurfaceGetID(buffer: Uint8Array): number;
27
+ export declare function IOSurfaceGetNameOfComponentOfPlane(buffer: Uint8Array, planeIndex: number, componentIndex: number): NobjcObject;
28
+ export declare function IOSurfaceGetNumberOfComponentsOfPlane(buffer: Uint8Array, planeIndex: number): number;
29
+ export declare function IOSurfaceGetPixelFormat(buffer: Uint8Array): number;
30
+ export declare function IOSurfaceGetPlaneCount(buffer: Uint8Array): number;
31
+ export declare function IOSurfaceGetPropertyAlignment(property: Uint8Array): number;
32
+ export declare function IOSurfaceGetPropertyMaximum(property: Uint8Array): number;
33
+ export declare function IOSurfaceGetRangeOfComponentOfPlane(buffer: Uint8Array, planeIndex: number, componentIndex: number): NobjcObject;
34
+ export declare function IOSurfaceGetSeed(buffer: Uint8Array): number;
35
+ export declare function IOSurfaceGetSubsampling(buffer: Uint8Array): NobjcObject;
36
+ export declare function IOSurfaceGetTypeID(): number;
37
+ export declare function IOSurfaceGetTypeOfComponentOfPlane(buffer: Uint8Array, planeIndex: number, componentIndex: number): NobjcObject;
38
+ export declare function IOSurfaceGetUseCount(buffer: Uint8Array): number;
39
+ export declare function IOSurfaceGetWidth(buffer: Uint8Array): number;
40
+ export declare function IOSurfaceGetWidthOfPlane(buffer: Uint8Array, planeIndex: number): number;
41
+ export declare function IOSurfaceIncrementUseCount(buffer: Uint8Array): void;
42
+ export declare function IOSurfaceIsInUse(buffer: Uint8Array): NobjcObject;
43
+ export declare function IOSurfaceLock(buffer: Uint8Array, options: NobjcObject, seed: NobjcObject | null): number;
44
+ export declare function IOSurfaceLookup(csid: number): NobjcObject;
45
+ export declare function IOSurfaceLookupFromMachPort(port: NobjcObject): NobjcObject;
46
+ export declare function IOSurfaceLookupFromXPCObject(xobj: _NSObject): NobjcObject;
47
+ export declare function IOSurfaceRemoveAllValues(buffer: Uint8Array): void;
48
+ export declare function IOSurfaceRemoveValue(buffer: Uint8Array, key: Uint8Array): void;
49
+ export declare function IOSurfaceSetOwnershipIdentity(buffer: Uint8Array, task_id_token: NobjcObject, newLedgerTag: number, newLedgerOptions: number): number;
50
+ export declare function IOSurfaceSetPurgeable(buffer: Uint8Array, newState: number, oldState: NobjcObject | null): number;
51
+ export declare function IOSurfaceSetValue(buffer: Uint8Array, key: Uint8Array, value: Uint8Array): void;
52
+ export declare function IOSurfaceSetValues(buffer: Uint8Array, keysAndValues: NobjcObject): void;
53
+ export declare function IOSurfaceUnlock(buffer: Uint8Array, options: NobjcObject, seed: NobjcObject | null): number;
@@ -0,0 +1,155 @@
1
+ // AUTO-GENERATED by objcjs-types generator — DO NOT EDIT
2
+ import { callFunction } from "objc-js";
3
+ export function IOSurfaceAlignProperty(property, value) {
4
+ return callFunction("IOSurfaceAlignProperty", { returns: "Q", args: ["^", "Q"] }, property, value);
5
+ }
6
+ export function IOSurfaceAllowsPixelSizeCasting(buffer) {
7
+ return callFunction("IOSurfaceAllowsPixelSizeCasting", { returns: "C", args: ["^"] }, buffer);
8
+ }
9
+ export function IOSurfaceCopyAllValues(buffer) {
10
+ return callFunction("IOSurfaceCopyAllValues", { returns: "@", args: ["^"] }, buffer);
11
+ }
12
+ export function IOSurfaceCopyValue(buffer, key) {
13
+ return callFunction("IOSurfaceCopyValue", { returns: "^", args: ["^", "^"] }, buffer, key);
14
+ }
15
+ export function IOSurfaceCreate(properties) {
16
+ return callFunction("IOSurfaceCreate", { returns: "^" }, properties);
17
+ }
18
+ export function IOSurfaceCreateMachPort(buffer) {
19
+ return callFunction("IOSurfaceCreateMachPort", { returns: "@", args: ["^"] }, buffer);
20
+ }
21
+ export function IOSurfaceCreateXPCObject(aSurface) {
22
+ return callFunction("IOSurfaceCreateXPCObject", { returns: "@", args: ["^"] }, aSurface);
23
+ }
24
+ export function IOSurfaceDecrementUseCount(buffer) {
25
+ callFunction("IOSurfaceDecrementUseCount", { args: ["^"] }, buffer);
26
+ }
27
+ export function IOSurfaceGetAllocSize(buffer) {
28
+ return callFunction("IOSurfaceGetAllocSize", { returns: "Q", args: ["^"] }, buffer);
29
+ }
30
+ export function IOSurfaceGetBaseAddress(buffer) {
31
+ return callFunction("IOSurfaceGetBaseAddress", { returns: "^v", args: ["^"] }, buffer);
32
+ }
33
+ export function IOSurfaceGetBaseAddressOfPlane(buffer, planeIndex) {
34
+ return callFunction("IOSurfaceGetBaseAddressOfPlane", { returns: "^v", args: ["^", "Q"] }, buffer, planeIndex);
35
+ }
36
+ export function IOSurfaceGetBitDepthOfComponentOfPlane(buffer, planeIndex, componentIndex) {
37
+ return callFunction("IOSurfaceGetBitDepthOfComponentOfPlane", { returns: "Q", args: ["^", "Q", "Q"] }, buffer, planeIndex, componentIndex);
38
+ }
39
+ export function IOSurfaceGetBitOffsetOfComponentOfPlane(buffer, planeIndex, componentIndex) {
40
+ return callFunction("IOSurfaceGetBitOffsetOfComponentOfPlane", { returns: "Q", args: ["^", "Q", "Q"] }, buffer, planeIndex, componentIndex);
41
+ }
42
+ export function IOSurfaceGetBytesPerElement(buffer) {
43
+ return callFunction("IOSurfaceGetBytesPerElement", { returns: "Q", args: ["^"] }, buffer);
44
+ }
45
+ export function IOSurfaceGetBytesPerElementOfPlane(buffer, planeIndex) {
46
+ return callFunction("IOSurfaceGetBytesPerElementOfPlane", { returns: "Q", args: ["^", "Q"] }, buffer, planeIndex);
47
+ }
48
+ export function IOSurfaceGetBytesPerRow(buffer) {
49
+ return callFunction("IOSurfaceGetBytesPerRow", { returns: "Q", args: ["^"] }, buffer);
50
+ }
51
+ export function IOSurfaceGetBytesPerRowOfPlane(buffer, planeIndex) {
52
+ return callFunction("IOSurfaceGetBytesPerRowOfPlane", { returns: "Q", args: ["^", "Q"] }, buffer, planeIndex);
53
+ }
54
+ export function IOSurfaceGetElementHeight(buffer) {
55
+ return callFunction("IOSurfaceGetElementHeight", { returns: "Q", args: ["^"] }, buffer);
56
+ }
57
+ export function IOSurfaceGetElementHeightOfPlane(buffer, planeIndex) {
58
+ return callFunction("IOSurfaceGetElementHeightOfPlane", { returns: "Q", args: ["^", "Q"] }, buffer, planeIndex);
59
+ }
60
+ export function IOSurfaceGetElementWidth(buffer) {
61
+ return callFunction("IOSurfaceGetElementWidth", { returns: "Q", args: ["^"] }, buffer);
62
+ }
63
+ export function IOSurfaceGetElementWidthOfPlane(buffer, planeIndex) {
64
+ return callFunction("IOSurfaceGetElementWidthOfPlane", { returns: "Q", args: ["^", "Q"] }, buffer, planeIndex);
65
+ }
66
+ export function IOSurfaceGetHeight(buffer) {
67
+ return callFunction("IOSurfaceGetHeight", { returns: "Q", args: ["^"] }, buffer);
68
+ }
69
+ export function IOSurfaceGetHeightOfPlane(buffer, planeIndex) {
70
+ return callFunction("IOSurfaceGetHeightOfPlane", { returns: "Q", args: ["^", "Q"] }, buffer, planeIndex);
71
+ }
72
+ export function IOSurfaceGetID(buffer) {
73
+ return callFunction("IOSurfaceGetID", { returns: "I", args: ["^"] }, buffer);
74
+ }
75
+ export function IOSurfaceGetNameOfComponentOfPlane(buffer, planeIndex, componentIndex) {
76
+ return callFunction("IOSurfaceGetNameOfComponentOfPlane", { returns: "@", args: ["^", "Q", "Q"] }, buffer, planeIndex, componentIndex);
77
+ }
78
+ export function IOSurfaceGetNumberOfComponentsOfPlane(buffer, planeIndex) {
79
+ return callFunction("IOSurfaceGetNumberOfComponentsOfPlane", { returns: "Q", args: ["^", "Q"] }, buffer, planeIndex);
80
+ }
81
+ export function IOSurfaceGetPixelFormat(buffer) {
82
+ return callFunction("IOSurfaceGetPixelFormat", { returns: "I", args: ["^"] }, buffer);
83
+ }
84
+ export function IOSurfaceGetPlaneCount(buffer) {
85
+ return callFunction("IOSurfaceGetPlaneCount", { returns: "Q", args: ["^"] }, buffer);
86
+ }
87
+ export function IOSurfaceGetPropertyAlignment(property) {
88
+ return callFunction("IOSurfaceGetPropertyAlignment", { returns: "Q", args: ["^"] }, property);
89
+ }
90
+ export function IOSurfaceGetPropertyMaximum(property) {
91
+ return callFunction("IOSurfaceGetPropertyMaximum", { returns: "Q", args: ["^"] }, property);
92
+ }
93
+ export function IOSurfaceGetRangeOfComponentOfPlane(buffer, planeIndex, componentIndex) {
94
+ return callFunction("IOSurfaceGetRangeOfComponentOfPlane", { returns: "@", args: ["^", "Q", "Q"] }, buffer, planeIndex, componentIndex);
95
+ }
96
+ export function IOSurfaceGetSeed(buffer) {
97
+ return callFunction("IOSurfaceGetSeed", { returns: "I", args: ["^"] }, buffer);
98
+ }
99
+ export function IOSurfaceGetSubsampling(buffer) {
100
+ return callFunction("IOSurfaceGetSubsampling", { returns: "@", args: ["^"] }, buffer);
101
+ }
102
+ export function IOSurfaceGetTypeID() {
103
+ return callFunction("IOSurfaceGetTypeID", { returns: "L" });
104
+ }
105
+ export function IOSurfaceGetTypeOfComponentOfPlane(buffer, planeIndex, componentIndex) {
106
+ return callFunction("IOSurfaceGetTypeOfComponentOfPlane", { returns: "@", args: ["^", "Q", "Q"] }, buffer, planeIndex, componentIndex);
107
+ }
108
+ export function IOSurfaceGetUseCount(buffer) {
109
+ return callFunction("IOSurfaceGetUseCount", { returns: "i", args: ["^"] }, buffer);
110
+ }
111
+ export function IOSurfaceGetWidth(buffer) {
112
+ return callFunction("IOSurfaceGetWidth", { returns: "Q", args: ["^"] }, buffer);
113
+ }
114
+ export function IOSurfaceGetWidthOfPlane(buffer, planeIndex) {
115
+ return callFunction("IOSurfaceGetWidthOfPlane", { returns: "Q", args: ["^", "Q"] }, buffer, planeIndex);
116
+ }
117
+ export function IOSurfaceIncrementUseCount(buffer) {
118
+ callFunction("IOSurfaceIncrementUseCount", { args: ["^"] }, buffer);
119
+ }
120
+ export function IOSurfaceIsInUse(buffer) {
121
+ return callFunction("IOSurfaceIsInUse", { returns: "C", args: ["^"] }, buffer);
122
+ }
123
+ export function IOSurfaceLock(buffer, options, seed) {
124
+ return callFunction("IOSurfaceLock", { returns: "i", args: ["^", "@", "@"] }, buffer, options, seed);
125
+ }
126
+ export function IOSurfaceLookup(csid) {
127
+ return callFunction("IOSurfaceLookup", { returns: "^", args: ["I"] }, csid);
128
+ }
129
+ export function IOSurfaceLookupFromMachPort(port) {
130
+ return callFunction("IOSurfaceLookupFromMachPort", { returns: "^" }, port);
131
+ }
132
+ export function IOSurfaceLookupFromXPCObject(xobj) {
133
+ return callFunction("IOSurfaceLookupFromXPCObject", { returns: "^" }, xobj);
134
+ }
135
+ export function IOSurfaceRemoveAllValues(buffer) {
136
+ callFunction("IOSurfaceRemoveAllValues", { args: ["^"] }, buffer);
137
+ }
138
+ export function IOSurfaceRemoveValue(buffer, key) {
139
+ callFunction("IOSurfaceRemoveValue", { args: ["^", "^"] }, buffer, key);
140
+ }
141
+ export function IOSurfaceSetOwnershipIdentity(buffer, task_id_token, newLedgerTag, newLedgerOptions) {
142
+ return callFunction("IOSurfaceSetOwnershipIdentity", { returns: "i", args: ["^", "@", "i", "I"] }, buffer, task_id_token, newLedgerTag, newLedgerOptions);
143
+ }
144
+ export function IOSurfaceSetPurgeable(buffer, newState, oldState) {
145
+ return callFunction("IOSurfaceSetPurgeable", { returns: "i", args: ["^", "I", "@"] }, buffer, newState, oldState);
146
+ }
147
+ export function IOSurfaceSetValue(buffer, key, value) {
148
+ callFunction("IOSurfaceSetValue", { args: ["^", "^", "^"] }, buffer, key, value);
149
+ }
150
+ export function IOSurfaceSetValues(buffer, keysAndValues) {
151
+ callFunction("IOSurfaceSetValues", { args: ["^", "@"] }, buffer, keysAndValues);
152
+ }
153
+ export function IOSurfaceUnlock(buffer, options, seed) {
154
+ return callFunction("IOSurfaceUnlock", { returns: "i", args: ["^", "@", "@"] }, buffer, options, seed);
155
+ }
@@ -4,3 +4,4 @@ import type { _IOSurface } from "./IOSurface.js";
4
4
  export declare const IOSurface: typeof _IOSurface;
5
5
  export type { _IOSurface };
6
6
  export { IOSurfacePropertyKey } from "./IOSurfacePropertyKey.js";
7
+ export * from "./functions.js";
@@ -4,3 +4,4 @@ import { _bindClass } from "../bind.js";
4
4
  export const IOSurface_lib = new NobjcLibrary("/System/Library/Frameworks/IOSurface.framework/IOSurface");
5
5
  export const IOSurface = _bindClass(IOSurface_lib, "IOSurface");
6
6
  export { IOSurfacePropertyKey } from "./IOSurfacePropertyKey.js";
7
+ export * from "./functions.js";
@@ -0,0 +1,44 @@
1
+ import type { NobjcObject } from "objc-js";
2
+ export declare function IOUSBGetBillboardDescriptor(bosDescriptor: NobjcObject): NobjcObject;
3
+ export declare function IOUSBGetConfigurationMaxPowerMilliAmps(usbDeviceSpeed: number, descriptor: NobjcObject): number;
4
+ export declare function IOUSBGetContainerIDDescriptor(bosDescriptor: NobjcObject): NobjcObject;
5
+ export declare function IOUSBGetEndpointAddress(descriptor: NobjcObject): number;
6
+ export declare function IOUSBGetEndpointBurstSize(usbDeviceSpeed: number, descriptor: NobjcObject, companionDescriptor: NobjcObject, sspCompanionDescriptor: NobjcObject): number;
7
+ export declare function IOUSBGetEndpointDirection(descriptor: NobjcObject): number;
8
+ export declare function IOUSBGetEndpointIntervalEncodedMicroframes(usbDeviceSpeed: number, descriptor: NobjcObject): number;
9
+ export declare function IOUSBGetEndpointIntervalFrames(usbDeviceSpeed: number, descriptor: NobjcObject): number;
10
+ export declare function IOUSBGetEndpointIntervalMicroframes(usbDeviceSpeed: number, descriptor: NobjcObject): number;
11
+ export declare function IOUSBGetEndpointMaxPacketSize(usbDeviceSpeed: number, descriptor: NobjcObject): number;
12
+ export declare function IOUSBGetEndpointMaxStreams(usbDeviceSpeed: number, descriptor: NobjcObject, companionDescriptor: NobjcObject): number;
13
+ export declare function IOUSBGetEndpointMaxStreamsEncoded(usbDeviceSpeed: number, descriptor: NobjcObject, companionDescriptor: NobjcObject): number;
14
+ export declare function IOUSBGetEndpointMult(usbDeviceSpeed: number, descriptor: NobjcObject, companionDescriptor: NobjcObject, sspCompanionDescriptor: NobjcObject): number;
15
+ export declare function IOUSBGetEndpointNumber(descriptor: NobjcObject): number;
16
+ export declare function IOUSBGetEndpointSynchronizationType(descriptor: NobjcObject): number;
17
+ export declare function IOUSBGetEndpointType(descriptor: NobjcObject): number;
18
+ export declare function IOUSBGetEndpointUsageType(descriptor: NobjcObject): number;
19
+ export declare function IOUSBGetNextAssociatedDescriptor(configurationDescriptor: NobjcObject, parentDescriptor: NobjcObject, currentDescriptor: NobjcObject): NobjcObject;
20
+ export declare function IOUSBGetNextAssociatedDescriptorWithType(configurationDescriptor: NobjcObject, parentDescriptor: NobjcObject, currentDescriptor: NobjcObject, type: NobjcObject): NobjcObject;
21
+ export declare function IOUSBGetNextCapabilityDescriptor(bosDescriptor: NobjcObject, currentDescriptor: NobjcObject): NobjcObject;
22
+ export declare function IOUSBGetNextCapabilityDescriptorWithType(bosDescriptor: NobjcObject, currentDescriptor: NobjcObject, type: NobjcObject): NobjcObject;
23
+ export declare function IOUSBGetNextDescriptor(configurationDescriptor: NobjcObject, currentDescriptor: NobjcObject): NobjcObject;
24
+ export declare function IOUSBGetNextDescriptorWithType(configurationDescriptor: NobjcObject, currentDescriptor: NobjcObject, type: NobjcObject): NobjcObject;
25
+ export declare function IOUSBGetNextEndpointDescriptor(configurationDescriptor: NobjcObject, interfaceDescriptor: NobjcObject, currentDescriptor: NobjcObject): NobjcObject;
26
+ export declare function IOUSBGetNextInterfaceAssociationDescriptor(configurationDescriptor: NobjcObject, currentDescriptor: NobjcObject): NobjcObject;
27
+ export declare function IOUSBGetNextInterfaceDescriptor(configurationDescriptor: NobjcObject, currentDescriptor: NobjcObject): NobjcObject;
28
+ export declare function IOUSBGetPlatformCapabilityDescriptor(bosDescriptor: NobjcObject): NobjcObject;
29
+ export declare function IOUSBGetPlatformCapabilityDescriptorWithUUID(bosDescriptor: NobjcObject, uuid: string): NobjcObject;
30
+ export declare function IOUSBGetSuperSpeedDeviceCapabilityDescriptor(bosDescriptor: NobjcObject): NobjcObject;
31
+ export declare function IOUSBGetSuperSpeedPlusDeviceCapabilityDescriptor(bosDescriptor: NobjcObject): NobjcObject;
32
+ export declare function IOUSBGetUSB20ExtensionDeviceCapabilityDescriptor(bosDescriptor: NobjcObject): NobjcObject;
33
+ export declare function IOUSBHostCIControllerStateToString(controllerState: NobjcObject): string;
34
+ export declare function IOUSBHostCIDeviceSpeedToString(speed: NobjcObject): string;
35
+ export declare function IOUSBHostCIDeviceStateToString(deviceState: NobjcObject): string;
36
+ export declare function IOUSBHostCIEndpointStateToString(endpointState: NobjcObject): string;
37
+ export declare function IOUSBHostCIExceptionTypeToString(exceptionType: NobjcObject): string;
38
+ export declare function IOUSBHostCILinkStateEnabled(linkState: NobjcObject): boolean;
39
+ export declare function IOUSBHostCILinkStateToString(linkState: NobjcObject): string;
40
+ export declare function IOUSBHostCIMessageStatusFromIOReturn(status: number): NobjcObject;
41
+ export declare function IOUSBHostCIMessageStatusToIOReturn(status: NobjcObject): number;
42
+ export declare function IOUSBHostCIMessageStatusToString(status: NobjcObject): string;
43
+ export declare function IOUSBHostCIMessageTypeToString(type: NobjcObject): string;
44
+ export declare function IOUSBHostCIPortStateToString(portState: NobjcObject): string;