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,112 @@
1
+ import type { NobjcObject } from "objc-js";
2
+ import type { _NSArray } from "../Foundation/NSArray.js";
3
+ import type { _NSDictionary } from "../Foundation/NSDictionary.js";
4
+ import type { _NSString } from "../Foundation/NSString.js";
5
+ import type { _NSColor } from "./NSColor.js";
6
+ import type { _NSImage } from "./NSImage.js";
7
+ import type { _NSPasteboard } from "./NSPasteboard.js";
8
+ import type { _NSResponder } from "./NSResponder.js";
9
+ import type { _NSView } from "./NSView.js";
10
+ import type { _NSWindow } from "./NSWindow.js";
11
+ import type { CGPoint } from "../structs/CGPoint.js";
12
+ import type { CGRect } from "../structs/CGRect.js";
13
+ import type { CGSize } from "../structs/CGSize.js";
14
+ import type { NSAccessibilityActionName } from "./NSAccessibilityActionName.js";
15
+ import type { NSAccessibilityAttributeName } from "./NSAccessibilityAttributeName.js";
16
+ import type { NSAnimationEffect } from "./NSAnimationEffect.js";
17
+ import type { NSColorSpaceName } from "./NSColorSpaceName.js";
18
+ import type { NSCompositingOperation } from "./NSCompositingOperation.js";
19
+ import type { NSFocusRingPlacement } from "./NSFocusRingPlacement.js";
20
+ import type { NSMultibyteGlyphPacking } from "./NSMultibyteGlyphPacking.js";
21
+ import type { NSOpenGLGlobalOption } from "./NSOpenGLGlobalOption.js";
22
+ import type { NSWindowDepth } from "./NSWindowDepth.js";
23
+ export declare function NSAccessibilityActionDescription(action: NSAccessibilityActionName): _NSString | null;
24
+ export declare function NSAccessibilityFrameInView(parentView: _NSView, frame: CGRect): CGRect;
25
+ export declare function NSAccessibilityPointInView(parentView: _NSView, point: CGPoint): CGPoint;
26
+ export declare function NSAccessibilityPostNotification(element: NobjcObject, notification: _NSString): void;
27
+ export declare function NSAccessibilityPostNotificationWithUserInfo(element: NobjcObject, notification: _NSString, userInfo: _NSDictionary | null): void;
28
+ export declare function NSAccessibilityRaiseBadArgumentException(element: NobjcObject, attribute: NSAccessibilityAttributeName, value: NobjcObject): void;
29
+ export declare function NSAccessibilityRoleDescription(role: _NSString, subrole: _NSString | null): _NSString | null;
30
+ export declare function NSAccessibilityRoleDescriptionForUIElement(element: NobjcObject): _NSString | null;
31
+ export declare function NSAccessibilitySetMayContainProtectedContent(flag: boolean): boolean;
32
+ export declare function NSAccessibilityUnignoredAncestor(element: NobjcObject): NobjcObject | null;
33
+ export declare function NSAccessibilityUnignoredChildren(originalChildren: _NSArray): _NSArray;
34
+ export declare function NSAccessibilityUnignoredChildrenForOnlyChild(originalChild: NobjcObject): _NSArray;
35
+ export declare function NSAccessibilityUnignoredDescendant(element: NobjcObject): NobjcObject | null;
36
+ export declare function NSApplicationLoad(): boolean;
37
+ export declare function NSApplicationMain(argc: number, argv: NobjcObject): number;
38
+ export declare function NSAvailableWindowDepths(): NobjcObject;
39
+ export declare function NSBeep(): void;
40
+ export declare function NSBeginAlertSheet(title: _NSString, defaultButton: _NSString, alternateButton: _NSString, otherButton: _NSString, docWindow: _NSWindow, modalDelegate: NobjcObject, didEndSelector: string, didDismissSelector: string, contextInfo: Uint8Array, msgFormat: _NSString, ...args: any[]): void;
41
+ export declare function NSBeginCriticalAlertSheet(title: _NSString, defaultButton: _NSString, alternateButton: _NSString, otherButton: _NSString, docWindow: _NSWindow, modalDelegate: NobjcObject, didEndSelector: string, didDismissSelector: string, contextInfo: Uint8Array, msgFormat: _NSString, ...args: any[]): void;
42
+ export declare function NSBeginInformationalAlertSheet(title: _NSString, defaultButton: _NSString, alternateButton: _NSString, otherButton: _NSString, docWindow: _NSWindow, modalDelegate: NobjcObject, didEndSelector: string, didDismissSelector: string, contextInfo: Uint8Array, msgFormat: _NSString, ...args: any[]): void;
43
+ export declare function NSBestDepth(colorSpace: NSColorSpaceName, bps: number, bpp: number, planar: boolean, exactMatch: NobjcObject | null): NSWindowDepth;
44
+ export declare function NSBitsPerPixelFromDepth(depth: NSWindowDepth): number;
45
+ export declare function NSBitsPerSampleFromDepth(depth: NSWindowDepth): number;
46
+ export declare function NSColorSpaceFromDepth(depth: NSWindowDepth): NSColorSpaceName | null;
47
+ export declare function NSConvertGlyphsToPackedGlyphs(glBuf: NobjcObject, count: number, packing: NSMultibyteGlyphPacking, packedGlyphs: string): number;
48
+ export declare function NSCopyBits(srcGState: number, srcRect: CGRect, destPoint: CGPoint): void;
49
+ export declare function NSCountWindows(count: NobjcObject): void;
50
+ export declare function NSCountWindowsForContext(context: number, count: NobjcObject): void;
51
+ export declare function NSCreateFileContentsPboardType(fileType: _NSString): _NSString | null;
52
+ export declare function NSCreateFilenamePboardType(fileType: _NSString): _NSString | null;
53
+ export declare function NSDisableScreenUpdates(): void;
54
+ export declare function NSDottedFrameRect(rect: CGRect): void;
55
+ export declare function NSDrawBitmap(rect: CGRect, width: number, height: number, bps: number, spp: number, bpp: number, bpr: number, isPlanar: boolean, hasAlpha: boolean, colorSpaceName: NSColorSpaceName, data: NobjcObject | null): void;
56
+ export declare function NSDrawButton(rect: CGRect, clipRect: CGRect): void;
57
+ export declare function NSDrawColorTiledRects(boundsRect: CGRect, clipRect: CGRect, sides: NobjcObject, colors: NobjcObject, count: number): CGRect;
58
+ export declare function NSDrawDarkBezel(rect: CGRect, clipRect: CGRect): void;
59
+ export declare function NSDrawGrayBezel(rect: CGRect, clipRect: CGRect): void;
60
+ export declare function NSDrawGroove(rect: CGRect, clipRect: CGRect): void;
61
+ export declare function NSDrawLightBezel(rect: CGRect, clipRect: CGRect): void;
62
+ export declare function NSDrawNinePartImage(frame: CGRect, topLeftCorner: _NSImage | null, topEdgeFill: _NSImage | null, topRightCorner: _NSImage | null, leftEdgeFill: _NSImage | null, centerFill: _NSImage | null, rightEdgeFill: _NSImage | null, bottomLeftCorner: _NSImage | null, bottomEdgeFill: _NSImage | null, bottomRightCorner: _NSImage | null, op: NSCompositingOperation, alphaFraction: number, flipped: boolean): void;
63
+ export declare function NSDrawThreePartImage(frame: CGRect, startCap: _NSImage | null, centerFill: _NSImage | null, endCap: _NSImage | null, vertical: boolean, op: NSCompositingOperation, alphaFraction: number, flipped: boolean): void;
64
+ export declare function NSDrawTiledRects(boundsRect: CGRect, clipRect: CGRect, sides: NobjcObject, grays: NobjcObject, count: number): CGRect;
65
+ export declare function NSDrawWhiteBezel(rect: CGRect, clipRect: CGRect): void;
66
+ export declare function NSDrawWindowBackground(rect: CGRect): void;
67
+ export declare function NSEnableScreenUpdates(): void;
68
+ export declare function NSEraseRect(rect: CGRect): void;
69
+ export declare function NSFrameRect(rect: CGRect): void;
70
+ export declare function NSFrameRectWithWidth(rect: CGRect, frameWidth: number): void;
71
+ export declare function NSFrameRectWithWidthUsingOperation(rect: CGRect, frameWidth: number, op: NSCompositingOperation): void;
72
+ export declare function NSGetAlertPanel(title: _NSString, msgFormat: _NSString, defaultButton: _NSString, alternateButton: _NSString, otherButton: _NSString, ...args: any[]): NobjcObject;
73
+ export declare function NSGetCriticalAlertPanel(title: _NSString, msgFormat: _NSString, defaultButton: _NSString, alternateButton: _NSString, otherButton: _NSString, ...args: any[]): NobjcObject;
74
+ export declare function NSGetFileType(pboardType: _NSString): _NSString | null;
75
+ export declare function NSGetFileTypes(pboardTypes: _NSArray): _NSArray | null;
76
+ export declare function NSGetInformationalAlertPanel(title: _NSString, msgFormat: _NSString, defaultButton: _NSString, alternateButton: _NSString, otherButton: _NSString, ...args: any[]): NobjcObject;
77
+ export declare function NSGetWindowServerMemory(context: number, virtualMemory: NobjcObject, windowBackingMemory: NobjcObject, windowDumpString: NobjcObject): number;
78
+ export declare function NSHighlightRect(rect: CGRect): void;
79
+ export declare function NSInterfaceStyleForKey(key: _NSString, responder: _NSResponder): number;
80
+ export declare function NSIsControllerMarker(object_: NobjcObject | null): boolean;
81
+ export declare function NSNumberOfColorComponents(colorSpaceName: NSColorSpaceName): number;
82
+ export declare function NSOpenGLGetOption(pname: NSOpenGLGlobalOption, param: NobjcObject): void;
83
+ export declare function NSOpenGLGetVersion(major: NobjcObject | null, minor: NobjcObject | null): void;
84
+ export declare function NSOpenGLSetOption(pname: NSOpenGLGlobalOption, param: number): void;
85
+ export declare function NSPerformService(itemName: _NSString, pboard: _NSPasteboard | null): boolean;
86
+ export declare function NSPlanarFromDepth(depth: NSWindowDepth): boolean;
87
+ export declare function NSReadPixel(passedPoint: CGPoint): _NSColor | null;
88
+ export declare function NSRectClip(rect: CGRect): void;
89
+ export declare function NSRectClipList(rects: NobjcObject, count: number): void;
90
+ export declare function NSRectFill(rect: CGRect): void;
91
+ export declare function NSRectFillList(rects: NobjcObject, count: number): void;
92
+ export declare function NSRectFillListUsingOperation(rects: NobjcObject, count: number, op: NSCompositingOperation): void;
93
+ export declare function NSRectFillListWithColors(rects: NobjcObject, colors: NobjcObject, num: number): void;
94
+ export declare function NSRectFillListWithColorsUsingOperation(rects: NobjcObject, colors: NobjcObject, num: number, op: NSCompositingOperation): void;
95
+ export declare function NSRectFillListWithGrays(rects: NobjcObject, grays: NobjcObject, num: number): void;
96
+ export declare function NSRectFillUsingOperation(rect: CGRect, op: NSCompositingOperation): void;
97
+ export declare function NSRegisterServicesProvider(provider: NobjcObject | null, name: _NSString): void;
98
+ export declare function NSReleaseAlertPanel(panel: NobjcObject): void;
99
+ export declare function NSRunAlertPanel(title: _NSString, msgFormat: _NSString, defaultButton: _NSString, alternateButton: _NSString, otherButton: _NSString, ...args: any[]): number;
100
+ export declare function NSRunAlertPanelRelativeToWindow(title: _NSString, msgFormat: _NSString, defaultButton: _NSString, alternateButton: _NSString, otherButton: _NSString, docWindow: _NSWindow, ...args: any[]): number;
101
+ export declare function NSRunCriticalAlertPanel(title: _NSString, msgFormat: _NSString, defaultButton: _NSString, alternateButton: _NSString, otherButton: _NSString, ...args: any[]): number;
102
+ export declare function NSRunCriticalAlertPanelRelativeToWindow(title: _NSString, msgFormat: _NSString, defaultButton: _NSString, alternateButton: _NSString, otherButton: _NSString, docWindow: _NSWindow, ...args: any[]): number;
103
+ export declare function NSRunInformationalAlertPanel(title: _NSString, msgFormat: _NSString, defaultButton: _NSString, alternateButton: _NSString, otherButton: _NSString, ...args: any[]): number;
104
+ export declare function NSRunInformationalAlertPanelRelativeToWindow(title: _NSString, msgFormat: _NSString, defaultButton: _NSString, alternateButton: _NSString, otherButton: _NSString, docWindow: _NSWindow, ...args: any[]): number;
105
+ export declare function NSSetFocusRingStyle(placement: NSFocusRingPlacement): void;
106
+ export declare function NSSetShowsServicesMenuItem(itemName: _NSString, enabled: boolean): number;
107
+ export declare function NSShowAnimationEffect(animationEffect: NSAnimationEffect, centerLocation: CGPoint, size: CGSize, animationDelegate: NobjcObject | null, didEndSelector: string | null, contextInfo: Uint8Array | null): void;
108
+ export declare function NSShowsServicesMenuItem(itemName: _NSString): boolean;
109
+ export declare function NSUnregisterServicesProvider(name: _NSString): void;
110
+ export declare function NSUpdateDynamicServices(): void;
111
+ export declare function NSWindowList(size: number, list: NobjcObject): void;
112
+ export declare function NSWindowListForContext(context: number, size: number, list: NobjcObject): void;
@@ -0,0 +1,272 @@
1
+ // AUTO-GENERATED by objcjs-types generator — DO NOT EDIT
2
+ import { callFunction, callVariadicFunction } from "objc-js";
3
+ export function NSAccessibilityActionDescription(action) {
4
+ return callFunction("NSAccessibilityActionDescription", { returns: "@" }, action);
5
+ }
6
+ export function NSAccessibilityFrameInView(parentView, frame) {
7
+ return callFunction("NSAccessibilityFrameInView", { returns: "{NSRect}", args: ["@", "{NSRect}"] }, parentView, frame);
8
+ }
9
+ export function NSAccessibilityPointInView(parentView, point) {
10
+ return callFunction("NSAccessibilityPointInView", { returns: "{NSPoint}", args: ["@", "{NSPoint}"] }, parentView, point);
11
+ }
12
+ export function NSAccessibilityPostNotification(element, notification) {
13
+ callFunction("NSAccessibilityPostNotification", undefined, element, notification);
14
+ }
15
+ export function NSAccessibilityPostNotificationWithUserInfo(element, notification, userInfo) {
16
+ callFunction("NSAccessibilityPostNotificationWithUserInfo", undefined, element, notification, userInfo);
17
+ }
18
+ export function NSAccessibilityRaiseBadArgumentException(element, attribute, value) {
19
+ callFunction("NSAccessibilityRaiseBadArgumentException", undefined, element, attribute, value);
20
+ }
21
+ export function NSAccessibilityRoleDescription(role, subrole) {
22
+ return callFunction("NSAccessibilityRoleDescription", { returns: "@" }, role, subrole);
23
+ }
24
+ export function NSAccessibilityRoleDescriptionForUIElement(element) {
25
+ return callFunction("NSAccessibilityRoleDescriptionForUIElement", { returns: "@" }, element);
26
+ }
27
+ export function NSAccessibilitySetMayContainProtectedContent(flag) {
28
+ return callFunction("NSAccessibilitySetMayContainProtectedContent", { returns: "B", args: ["B"] }, flag);
29
+ }
30
+ export function NSAccessibilityUnignoredAncestor(element) {
31
+ return callFunction("NSAccessibilityUnignoredAncestor", { returns: "@" }, element);
32
+ }
33
+ export function NSAccessibilityUnignoredChildren(originalChildren) {
34
+ return callFunction("NSAccessibilityUnignoredChildren", { returns: "@" }, originalChildren);
35
+ }
36
+ export function NSAccessibilityUnignoredChildrenForOnlyChild(originalChild) {
37
+ return callFunction("NSAccessibilityUnignoredChildrenForOnlyChild", { returns: "@" }, originalChild);
38
+ }
39
+ export function NSAccessibilityUnignoredDescendant(element) {
40
+ return callFunction("NSAccessibilityUnignoredDescendant", { returns: "@" }, element);
41
+ }
42
+ export function NSApplicationLoad() {
43
+ return callFunction("NSApplicationLoad", { returns: "B" });
44
+ }
45
+ export function NSApplicationMain(argc, argv) {
46
+ return callFunction("NSApplicationMain", { returns: "i", args: ["i", "@"] }, argc, argv);
47
+ }
48
+ export function NSAvailableWindowDepths() {
49
+ return callFunction("NSAvailableWindowDepths", { returns: "@" });
50
+ }
51
+ export function NSBeep() {
52
+ callFunction("NSBeep");
53
+ }
54
+ export function NSBeginAlertSheet(title, defaultButton, alternateButton, otherButton, docWindow, modalDelegate, didEndSelector, didDismissSelector, contextInfo, msgFormat, ...args) {
55
+ callVariadicFunction("NSBeginAlertSheet", 10, title, defaultButton, alternateButton, otherButton, docWindow, modalDelegate, didEndSelector, didDismissSelector, contextInfo, msgFormat, ...args);
56
+ }
57
+ export function NSBeginCriticalAlertSheet(title, defaultButton, alternateButton, otherButton, docWindow, modalDelegate, didEndSelector, didDismissSelector, contextInfo, msgFormat, ...args) {
58
+ callVariadicFunction("NSBeginCriticalAlertSheet", 10, title, defaultButton, alternateButton, otherButton, docWindow, modalDelegate, didEndSelector, didDismissSelector, contextInfo, msgFormat, ...args);
59
+ }
60
+ export function NSBeginInformationalAlertSheet(title, defaultButton, alternateButton, otherButton, docWindow, modalDelegate, didEndSelector, didDismissSelector, contextInfo, msgFormat, ...args) {
61
+ callVariadicFunction("NSBeginInformationalAlertSheet", 10, title, defaultButton, alternateButton, otherButton, docWindow, modalDelegate, didEndSelector, didDismissSelector, contextInfo, msgFormat, ...args);
62
+ }
63
+ export function NSBestDepth(colorSpace, bps, bpp, planar, exactMatch) {
64
+ return callFunction("NSBestDepth", { returns: "q", args: ["@", "q", "q", "B", "@"] }, colorSpace, bps, bpp, planar, exactMatch);
65
+ }
66
+ export function NSBitsPerPixelFromDepth(depth) {
67
+ return callFunction("NSBitsPerPixelFromDepth", { returns: "q", args: ["q"] }, depth);
68
+ }
69
+ export function NSBitsPerSampleFromDepth(depth) {
70
+ return callFunction("NSBitsPerSampleFromDepth", { returns: "q", args: ["q"] }, depth);
71
+ }
72
+ export function NSColorSpaceFromDepth(depth) {
73
+ return callFunction("NSColorSpaceFromDepth", { returns: "@", args: ["q"] }, depth);
74
+ }
75
+ export function NSConvertGlyphsToPackedGlyphs(glBuf, count, packing, packedGlyphs) {
76
+ return callFunction("NSConvertGlyphsToPackedGlyphs", { returns: "q", args: ["@", "q", "q", "*"] }, glBuf, count, packing, packedGlyphs);
77
+ }
78
+ export function NSCopyBits(srcGState, srcRect, destPoint) {
79
+ callFunction("NSCopyBits", { args: ["q", "{NSRect}", "{NSPoint}"] }, srcGState, srcRect, destPoint);
80
+ }
81
+ export function NSCountWindows(count) {
82
+ callFunction("NSCountWindows", undefined, count);
83
+ }
84
+ export function NSCountWindowsForContext(context, count) {
85
+ callFunction("NSCountWindowsForContext", { args: ["q", "@"] }, context, count);
86
+ }
87
+ export function NSCreateFileContentsPboardType(fileType) {
88
+ return callFunction("NSCreateFileContentsPboardType", { returns: "@" }, fileType);
89
+ }
90
+ export function NSCreateFilenamePboardType(fileType) {
91
+ return callFunction("NSCreateFilenamePboardType", { returns: "@" }, fileType);
92
+ }
93
+ export function NSDisableScreenUpdates() {
94
+ callFunction("NSDisableScreenUpdates");
95
+ }
96
+ export function NSDottedFrameRect(rect) {
97
+ callFunction("NSDottedFrameRect", { args: ["{NSRect}"] }, rect);
98
+ }
99
+ export function NSDrawBitmap(rect, width, height, bps, spp, bpp, bpr, isPlanar, hasAlpha, colorSpaceName, data) {
100
+ callFunction("NSDrawBitmap", { args: ["{NSRect}", "q", "q", "q", "q", "q", "q", "B", "B", "@", "@"] }, rect, width, height, bps, spp, bpp, bpr, isPlanar, hasAlpha, colorSpaceName, data);
101
+ }
102
+ export function NSDrawButton(rect, clipRect) {
103
+ callFunction("NSDrawButton", { args: ["{NSRect}", "{NSRect}"] }, rect, clipRect);
104
+ }
105
+ export function NSDrawColorTiledRects(boundsRect, clipRect, sides, colors, count) {
106
+ return callFunction("NSDrawColorTiledRects", { returns: "{NSRect}", args: ["{NSRect}", "{NSRect}", "@", "@", "q"] }, boundsRect, clipRect, sides, colors, count);
107
+ }
108
+ export function NSDrawDarkBezel(rect, clipRect) {
109
+ callFunction("NSDrawDarkBezel", { args: ["{NSRect}", "{NSRect}"] }, rect, clipRect);
110
+ }
111
+ export function NSDrawGrayBezel(rect, clipRect) {
112
+ callFunction("NSDrawGrayBezel", { args: ["{NSRect}", "{NSRect}"] }, rect, clipRect);
113
+ }
114
+ export function NSDrawGroove(rect, clipRect) {
115
+ callFunction("NSDrawGroove", { args: ["{NSRect}", "{NSRect}"] }, rect, clipRect);
116
+ }
117
+ export function NSDrawLightBezel(rect, clipRect) {
118
+ callFunction("NSDrawLightBezel", { args: ["{NSRect}", "{NSRect}"] }, rect, clipRect);
119
+ }
120
+ export function NSDrawNinePartImage(frame, topLeftCorner, topEdgeFill, topRightCorner, leftEdgeFill, centerFill, rightEdgeFill, bottomLeftCorner, bottomEdgeFill, bottomRightCorner, op, alphaFraction, flipped) {
121
+ callFunction("NSDrawNinePartImage", { args: ["{NSRect}", "@", "@", "@", "@", "@", "@", "@", "@", "@", "q", "d", "B"] }, frame, topLeftCorner, topEdgeFill, topRightCorner, leftEdgeFill, centerFill, rightEdgeFill, bottomLeftCorner, bottomEdgeFill, bottomRightCorner, op, alphaFraction, flipped);
122
+ }
123
+ export function NSDrawThreePartImage(frame, startCap, centerFill, endCap, vertical, op, alphaFraction, flipped) {
124
+ callFunction("NSDrawThreePartImage", { args: ["{NSRect}", "@", "@", "@", "B", "q", "d", "B"] }, frame, startCap, centerFill, endCap, vertical, op, alphaFraction, flipped);
125
+ }
126
+ export function NSDrawTiledRects(boundsRect, clipRect, sides, grays, count) {
127
+ return callFunction("NSDrawTiledRects", { returns: "{NSRect}", args: ["{NSRect}", "{NSRect}", "@", "@", "q"] }, boundsRect, clipRect, sides, grays, count);
128
+ }
129
+ export function NSDrawWhiteBezel(rect, clipRect) {
130
+ callFunction("NSDrawWhiteBezel", { args: ["{NSRect}", "{NSRect}"] }, rect, clipRect);
131
+ }
132
+ export function NSDrawWindowBackground(rect) {
133
+ callFunction("NSDrawWindowBackground", { args: ["{NSRect}"] }, rect);
134
+ }
135
+ export function NSEnableScreenUpdates() {
136
+ callFunction("NSEnableScreenUpdates");
137
+ }
138
+ export function NSEraseRect(rect) {
139
+ callFunction("NSEraseRect", { args: ["{NSRect}"] }, rect);
140
+ }
141
+ export function NSFrameRect(rect) {
142
+ callFunction("NSFrameRect", { args: ["{NSRect}"] }, rect);
143
+ }
144
+ export function NSFrameRectWithWidth(rect, frameWidth) {
145
+ callFunction("NSFrameRectWithWidth", { args: ["{NSRect}", "d"] }, rect, frameWidth);
146
+ }
147
+ export function NSFrameRectWithWidthUsingOperation(rect, frameWidth, op) {
148
+ callFunction("NSFrameRectWithWidthUsingOperation", { args: ["{NSRect}", "d", "q"] }, rect, frameWidth, op);
149
+ }
150
+ export function NSGetAlertPanel(title, msgFormat, defaultButton, alternateButton, otherButton, ...args) {
151
+ return callVariadicFunction("NSGetAlertPanel", 5, title, msgFormat, defaultButton, alternateButton, otherButton, ...args);
152
+ }
153
+ export function NSGetCriticalAlertPanel(title, msgFormat, defaultButton, alternateButton, otherButton, ...args) {
154
+ return callVariadicFunction("NSGetCriticalAlertPanel", 5, title, msgFormat, defaultButton, alternateButton, otherButton, ...args);
155
+ }
156
+ export function NSGetFileType(pboardType) {
157
+ return callFunction("NSGetFileType", { returns: "@" }, pboardType);
158
+ }
159
+ export function NSGetFileTypes(pboardTypes) {
160
+ return callFunction("NSGetFileTypes", { returns: "@" }, pboardTypes);
161
+ }
162
+ export function NSGetInformationalAlertPanel(title, msgFormat, defaultButton, alternateButton, otherButton, ...args) {
163
+ return callVariadicFunction("NSGetInformationalAlertPanel", 5, title, msgFormat, defaultButton, alternateButton, otherButton, ...args);
164
+ }
165
+ export function NSGetWindowServerMemory(context, virtualMemory, windowBackingMemory, windowDumpString) {
166
+ return callFunction("NSGetWindowServerMemory", { returns: "q", args: ["q", "@", "@", "@"] }, context, virtualMemory, windowBackingMemory, windowDumpString);
167
+ }
168
+ export function NSHighlightRect(rect) {
169
+ callFunction("NSHighlightRect", { args: ["{NSRect}"] }, rect);
170
+ }
171
+ export function NSInterfaceStyleForKey(key, responder) {
172
+ return callFunction("NSInterfaceStyleForKey", { returns: "Q" }, key, responder);
173
+ }
174
+ export function NSIsControllerMarker(object_) {
175
+ return callFunction("NSIsControllerMarker", { returns: "B" }, object_);
176
+ }
177
+ export function NSNumberOfColorComponents(colorSpaceName) {
178
+ return callFunction("NSNumberOfColorComponents", { returns: "q" }, colorSpaceName);
179
+ }
180
+ export function NSOpenGLGetOption(pname, param) {
181
+ callFunction("NSOpenGLGetOption", { args: ["q", "@"] }, pname, param);
182
+ }
183
+ export function NSOpenGLGetVersion(major, minor) {
184
+ callFunction("NSOpenGLGetVersion", undefined, major, minor);
185
+ }
186
+ export function NSOpenGLSetOption(pname, param) {
187
+ callFunction("NSOpenGLSetOption", { args: ["q", "i"] }, pname, param);
188
+ }
189
+ export function NSPerformService(itemName, pboard) {
190
+ return callFunction("NSPerformService", { returns: "B" }, itemName, pboard);
191
+ }
192
+ export function NSPlanarFromDepth(depth) {
193
+ return callFunction("NSPlanarFromDepth", { returns: "B", args: ["q"] }, depth);
194
+ }
195
+ export function NSReadPixel(passedPoint) {
196
+ return callFunction("NSReadPixel", { returns: "@", args: ["{NSPoint}"] }, passedPoint);
197
+ }
198
+ export function NSRectClip(rect) {
199
+ callFunction("NSRectClip", { args: ["{NSRect}"] }, rect);
200
+ }
201
+ export function NSRectClipList(rects, count) {
202
+ callFunction("NSRectClipList", { args: ["@", "q"] }, rects, count);
203
+ }
204
+ export function NSRectFill(rect) {
205
+ callFunction("NSRectFill", { args: ["{NSRect}"] }, rect);
206
+ }
207
+ export function NSRectFillList(rects, count) {
208
+ callFunction("NSRectFillList", { args: ["@", "q"] }, rects, count);
209
+ }
210
+ export function NSRectFillListUsingOperation(rects, count, op) {
211
+ callFunction("NSRectFillListUsingOperation", { args: ["@", "q", "q"] }, rects, count, op);
212
+ }
213
+ export function NSRectFillListWithColors(rects, colors, num) {
214
+ callFunction("NSRectFillListWithColors", { args: ["@", "@", "q"] }, rects, colors, num);
215
+ }
216
+ export function NSRectFillListWithColorsUsingOperation(rects, colors, num, op) {
217
+ callFunction("NSRectFillListWithColorsUsingOperation", { args: ["@", "@", "q", "q"] }, rects, colors, num, op);
218
+ }
219
+ export function NSRectFillListWithGrays(rects, grays, num) {
220
+ callFunction("NSRectFillListWithGrays", { args: ["@", "@", "q"] }, rects, grays, num);
221
+ }
222
+ export function NSRectFillUsingOperation(rect, op) {
223
+ callFunction("NSRectFillUsingOperation", { args: ["{NSRect}", "q"] }, rect, op);
224
+ }
225
+ export function NSRegisterServicesProvider(provider, name) {
226
+ callFunction("NSRegisterServicesProvider", undefined, provider, name);
227
+ }
228
+ export function NSReleaseAlertPanel(panel) {
229
+ callFunction("NSReleaseAlertPanel", undefined, panel);
230
+ }
231
+ export function NSRunAlertPanel(title, msgFormat, defaultButton, alternateButton, otherButton, ...args) {
232
+ return callVariadicFunction("NSRunAlertPanel", 5, title, msgFormat, defaultButton, alternateButton, otherButton, ...args);
233
+ }
234
+ export function NSRunAlertPanelRelativeToWindow(title, msgFormat, defaultButton, alternateButton, otherButton, docWindow, ...args) {
235
+ return callVariadicFunction("NSRunAlertPanelRelativeToWindow", 6, title, msgFormat, defaultButton, alternateButton, otherButton, docWindow, ...args);
236
+ }
237
+ export function NSRunCriticalAlertPanel(title, msgFormat, defaultButton, alternateButton, otherButton, ...args) {
238
+ return callVariadicFunction("NSRunCriticalAlertPanel", 5, title, msgFormat, defaultButton, alternateButton, otherButton, ...args);
239
+ }
240
+ export function NSRunCriticalAlertPanelRelativeToWindow(title, msgFormat, defaultButton, alternateButton, otherButton, docWindow, ...args) {
241
+ return callVariadicFunction("NSRunCriticalAlertPanelRelativeToWindow", 6, title, msgFormat, defaultButton, alternateButton, otherButton, docWindow, ...args);
242
+ }
243
+ export function NSRunInformationalAlertPanel(title, msgFormat, defaultButton, alternateButton, otherButton, ...args) {
244
+ return callVariadicFunction("NSRunInformationalAlertPanel", 5, title, msgFormat, defaultButton, alternateButton, otherButton, ...args);
245
+ }
246
+ export function NSRunInformationalAlertPanelRelativeToWindow(title, msgFormat, defaultButton, alternateButton, otherButton, docWindow, ...args) {
247
+ return callVariadicFunction("NSRunInformationalAlertPanelRelativeToWindow", 6, title, msgFormat, defaultButton, alternateButton, otherButton, docWindow, ...args);
248
+ }
249
+ export function NSSetFocusRingStyle(placement) {
250
+ callFunction("NSSetFocusRingStyle", { args: ["q"] }, placement);
251
+ }
252
+ export function NSSetShowsServicesMenuItem(itemName, enabled) {
253
+ return callFunction("NSSetShowsServicesMenuItem", { returns: "q", args: ["@", "B"] }, itemName, enabled);
254
+ }
255
+ export function NSShowAnimationEffect(animationEffect, centerLocation, size, animationDelegate, didEndSelector, contextInfo) {
256
+ callFunction("NSShowAnimationEffect", { args: ["q", "{NSPoint}", "{NSSize}", "@", ":", "^v"] }, animationEffect, centerLocation, size, animationDelegate, didEndSelector, contextInfo);
257
+ }
258
+ export function NSShowsServicesMenuItem(itemName) {
259
+ return callFunction("NSShowsServicesMenuItem", { returns: "B" }, itemName);
260
+ }
261
+ export function NSUnregisterServicesProvider(name) {
262
+ callFunction("NSUnregisterServicesProvider", undefined, name);
263
+ }
264
+ export function NSUpdateDynamicServices() {
265
+ callFunction("NSUpdateDynamicServices");
266
+ }
267
+ export function NSWindowList(size, list) {
268
+ callFunction("NSWindowList", { args: ["q", "@"] }, size, list);
269
+ }
270
+ export function NSWindowListForContext(context, size, list) {
271
+ callFunction("NSWindowListForContext", { args: ["q", "q", "@"] }, context, size, list);
272
+ }
@@ -1623,3 +1623,4 @@ export type { NSFontTextStyleOptionKey } from "./NSFontTextStyleOptionKey.js";
1623
1623
  export type { NSPrinterPaperName } from "./NSPrinterPaperName.js";
1624
1624
  export type { NSPrinterTypeName } from "./NSPrinterTypeName.js";
1625
1625
  export type { NSSpeechSynthesizerVoiceName } from "./NSSpeechSynthesizerVoiceName.js";
1626
+ export * from "./functions.js";
@@ -699,3 +699,4 @@ export { NSViewFullScreenModeOptionKey } from "./NSViewFullScreenModeOptionKey.j
699
699
  export { NSVoiceAttributeKey } from "./NSVoiceAttributeKey.js";
700
700
  export { NSVoiceGenderName } from "./NSVoiceGenderName.js";
701
701
  export { NSWorkspaceDesktopImageOptionKey } from "./NSWorkspaceDesktopImageOptionKey.js";
702
+ export * from "./functions.js";