@octane-xplat/macos-renderer 0.14.0 → 0.15.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/README.md +95 -20
- package/package.json +15 -2
- package/src/appearance.ts +2 -0
- package/src/fonts.ts +2 -0
- package/src/formatted-text.ts +147 -0
- package/src/gestures.ts +196 -0
- package/src/host-globals.d.ts +55 -0
- package/src/html-text.ts +88 -0
- package/src/image.ts +91 -16
- package/src/index.d.ts +9 -0
- package/src/index.ts +5030 -678
- package/src/layer.ts +11 -9
- package/src/list-template.ts +266 -0
- package/src/list-view.ts +445 -0
- package/src/portal-components.macos.tsx +86 -0
- package/src/presentation.ts +48 -15
- package/src/scroll-view.ts +124 -0
- package/src/tab-view.ts +512 -0
- package/src/template-props.ts +402 -0
- package/src/vendor/listview/LICENSE +19 -0
- package/src/vendor/listview/README.md +1 -0
- package/src/vendor/listview/binding-options.ts +189 -0
- package/src/vendor/listview/expressions.ts +285 -0
- package/src/webview.ts +36 -7
- package/types/ARKitCore.d.ts +199 -0
- package/types/AVFAudio.d.ts +2304 -0
- package/types/AVFoundation.d.ts +6974 -0
- package/types/AVKit.d.ts +215 -0
- package/types/AVRouting.d.ts +7 -0
- package/types/Accelerate.d.ts +4776 -0
- package/types/Accessibility.d.ts +69 -0
- package/types/Accounts.d.ts +134 -0
- package/types/AdSupport.d.ts +12 -0
- package/types/AddressBook.d.ts +1012 -0
- package/types/AppKit.d.ts +34247 -0
- package/types/AppTrackingTransparency.d.ts +23 -0
- package/types/AppleScriptKit.d.ts +6 -0
- package/types/ApplicationServices.d.ts +6346 -0
- package/types/AudioToolbox.d.ts +7129 -0
- package/types/AudioVideoBridging.d.ts +613 -0
- package/types/AuthenticationServices.d.ts +982 -0
- package/types/AutomaticAssessmentConfiguration.d.ts +46 -0
- package/types/Automator.d.ts +248 -0
- package/types/BackgroundAssets.d.ts +9 -0
- package/types/BrowserEngineKit.d.ts +166 -0
- package/types/BusinessChat.d.ts +29 -0
- package/types/CFNetwork.d.ts +931 -0
- package/types/CalendarStore.d.ts +354 -0
- package/types/CallKit.d.ts +30 -0
- package/types/Carbon.d.ts +16207 -0
- package/types/ClassKit.d.ts +281 -0
- package/types/CloudKit.d.ts +1565 -0
- package/types/Collaboration.d.ts +123 -0
- package/types/ColorSync.d.ts +562 -0
- package/types/CompositorServices.d.ts +60 -0
- package/types/ComputeGraph.d.ts +16 -0
- package/types/Contacts.d.ts +1558 -0
- package/types/ContactsUI.d.ts +39 -0
- package/types/CoreAudio.d.ts +1376 -0
- package/types/CoreAudioKit.d.ts +122 -0
- package/types/CoreAudioTypes.d.ts +1003 -0
- package/types/CoreBluetooth.d.ts +657 -0
- package/types/CoreData.d.ts +2479 -0
- package/types/CoreFoundation.d.ts +5546 -0
- package/types/CoreGraphics.d.ts +3676 -0
- package/types/CoreHaptics.d.ts +361 -0
- package/types/CoreImage.d.ts +4781 -0
- package/types/CoreLocation.d.ts +564 -0
- package/types/CoreMIDI.d.ts +1538 -0
- package/types/CoreML.d.ts +905 -0
- package/types/CoreMedia.d.ts +2615 -0
- package/types/CoreMediaIO.d.ts +1046 -0
- package/types/CoreMotion.d.ts +316 -0
- package/types/CoreServices.d.ts +24810 -0
- package/types/CoreSpotlight.d.ts +789 -0
- package/types/CoreTelephony.d.ts +31 -0
- package/types/CoreText.d.ts +3973 -0
- package/types/CoreTransferable.d.ts +3 -0
- package/types/CoreVideo.d.ts +1162 -0
- package/types/CoreWLAN.d.ts +556 -0
- package/types/CryptoTokenKit.d.ts +548 -0
- package/types/DVDPlayback.d.ts +931 -0
- package/types/DataDetection.d.ts +66 -0
- package/types/DeviceCheck.d.ts +46 -0
- package/types/DeviceDiscoveryExtension.d.ts +142 -0
- package/types/DirectoryService.d.ts +966 -0
- package/types/DiscRecording.d.ts +2345 -0
- package/types/DiscRecordingUI.d.ts +288 -0
- package/types/DiskArbitration.d.ts +366 -0
- package/types/DriverKit.d.ts +639 -0
- package/types/EventKit.d.ts +640 -0
- package/types/ExceptionHandling.d.ts +56 -0
- package/types/ExecutionPolicy.d.ts +30 -0
- package/types/ExternalAccessory.d.ts +98 -0
- package/types/FSKit.d.ts +237 -0
- package/types/FileProvider.d.ts +495 -0
- package/types/FileProviderUI.d.ts +31 -0
- package/types/FinderSync.d.ts +165 -0
- package/types/FocusEngine.d.ts +133 -0
- package/types/ForceFeedback.d.ts +399 -0
- package/types/Foundation.d.ts +18216 -0
- package/types/GLKit.d.ts +937 -0
- package/types/GLUT.d.ts +1018 -0
- package/types/GSS.d.ts +855 -0
- package/types/GameController.d.ts +1394 -0
- package/types/GameKit.d.ts +1958 -0
- package/types/GameSave.d.ts +54 -0
- package/types/GameplayKit.d.ts +1645 -0
- package/types/HealthKit.d.ts +278 -0
- package/types/Hypervisor.d.ts +2079 -0
- package/types/ICADevices.d.ts +1400 -0
- package/types/IOBluetooth.d.ts +6094 -0
- package/types/IOBluetoothUI.d.ts +250 -0
- package/types/IOKit.d.ts +25804 -0
- package/types/IOSurface.d.ts +435 -0
- package/types/IOUSBHost.d.ts +809 -0
- package/types/ImageCaptureCore.d.ts +1104 -0
- package/types/ImageIO.d.ts +1697 -0
- package/types/InputMethodKit.d.ts +264 -0
- package/types/InstallerPlugins.d.ts +102 -0
- package/types/InstantMessage.d.ts +229 -0
- package/types/Intents.d.ts +1833 -0
- package/types/IntentsUI.d.ts +5 -0
- package/types/JavaRuntimeSupport.d.ts +520 -0
- package/types/JavaScriptCore.d.ts +934 -0
- package/types/Kerberos.d.ts +3754 -0
- package/types/Kernel.d.ts +33698 -0
- package/types/KernelManagement.d.ts +5 -0
- package/types/LatentSemanticMapping.d.ts +152 -0
- package/types/LinkPresentation.d.ts +57 -0
- package/types/LocalAuthentication.d.ts +94 -0
- package/types/MLCompute.d.ts +2343 -0
- package/types/MapKit.d.ts +2125 -0
- package/types/Matter.d.ts +151 -0
- package/types/MediaAccessibility.d.ts +137 -0
- package/types/MediaLibrary.d.ts +394 -0
- package/types/MediaPlayer.d.ts +475 -0
- package/types/MediaToolbox.d.ts +70 -0
- package/types/Metal.d.ts +4542 -0
- package/types/MetalFX.d.ts +107 -0
- package/types/MetalKit.d.ts +524 -0
- package/types/MetalPerformanceShaders.d.ts +9306 -0
- package/types/MetalPerformanceShadersGraph.d.ts +1394 -0
- package/types/MetricKit.d.ts +231 -0
- package/types/ModelIO.d.ts +2908 -0
- package/types/MultipeerConnectivity.d.ts +348 -0
- package/types/NaturalLanguage.d.ts +556 -0
- package/types/NearbyInteraction.d.ts +51 -0
- package/types/NetFS.d.ts +99 -0
- package/types/Network.d.ts +1622 -0
- package/types/NetworkExtension.d.ts +1574 -0
- package/types/NotificationCenter.d.ts +103 -0
- package/types/OSAKit.d.ts +260 -0
- package/types/OSLog.d.ts +208 -0
- package/types/OpenAL.d.ts +314 -0
- package/types/OpenCL.d.ts +2489 -0
- package/types/OpenDirectory.d.ts +1919 -0
- package/types/OpenGL.d.ts +11322 -0
- package/types/PCSC.d.ts +534 -0
- package/types/PDFKit.d.ts +1575 -0
- package/types/PHASE.d.ts +166 -0
- package/types/ParavirtualizedGraphics.d.ts +153 -0
- package/types/PassKit.d.ts +1287 -0
- package/types/PencilKit.d.ts +201 -0
- package/types/Photos.d.ts +1125 -0
- package/types/PhotosUI.d.ts +397 -0
- package/types/PreferencePanes.d.ts +68 -0
- package/types/ProximityReaderStub.d.ts +5 -0
- package/types/PushKit.d.ts +45 -0
- package/types/Quartz.d.ts +1642 -0
- package/types/QuartzCore.d.ts +1398 -0
- package/types/QuickLook.d.ts +212 -0
- package/types/QuickLookThumbnailing.d.ts +131 -0
- package/types/QuickLookUI.d.ts +117 -0
- package/types/REVISION.json +5 -0
- package/types/ReplayKit.d.ts +294 -0
- package/types/Runtime.d.ts +51605 -0
- package/types/SafariServices.d.ts +430 -0
- package/types/SafetyKit.d.ts +7 -0
- package/types/SceneKit.d.ts +4996 -0
- package/types/ScreenCaptureKit.d.ts +16 -0
- package/types/ScreenSaver.d.ts +41 -0
- package/types/ScreenTime.d.ts +41 -0
- package/types/ScriptingBridge.d.ts +96 -0
- package/types/Security.d.ts +14336 -0
- package/types/SecurityFoundation.d.ts +53 -0
- package/types/SecurityInterface.d.ts +297 -0
- package/types/SensorKit.d.ts +7 -0
- package/types/ServiceManagement.d.ts +71 -0
- package/types/SharedWithYou.d.ts +9 -0
- package/types/SharedWithYouCore.d.ts +5 -0
- package/types/ShazamKit.d.ts +12 -0
- package/types/Social.d.ts +306 -0
- package/types/SoundAnalysis.d.ts +177 -0
- package/types/Speech.d.ts +246 -0
- package/types/SpriteKit.d.ts +2766 -0
- package/types/StoreKit.d.ts +509 -0
- package/types/SyncServices.d.ts +551 -0
- package/types/SystemConfiguration.d.ts +1415 -0
- package/types/SystemExtensions.d.ts +89 -0
- package/types/TWAIN.d.ts +380 -0
- package/types/Tcl.d.ts +4013 -0
- package/types/ThreadNetwork.d.ts +77 -0
- package/types/Tk.d.ts +3750 -0
- package/types/UIUtilities.d.ts +31 -0
- package/types/UniformTypeIdentifiers.d.ts +358 -0
- package/types/UserNotifications.d.ts +538 -0
- package/types/UserNotificationsUI.d.ts +38 -0
- package/types/VideoDecodeAcceleration.d.ts +50 -0
- package/types/VideoSubscriberAccount.d.ts +139 -0
- package/types/VideoToolbox.d.ts +907 -0
- package/types/Virtualization.d.ts +302 -0
- package/types/Vision.d.ts +1723 -0
- package/types/WebKit.d.ts +5195 -0
- package/types/WidgetKit.d.ts +9 -0
- package/types/_LocationEssentials.d.ts +159 -0
- package/types/_ScreenCaptureKit_SwiftUI.d.ts +5 -0
- package/types/iTunesLibrary.d.ts +528 -0
- package/types/index.d.ts +9 -0
- package/types/vecLib.d.ts +33586 -0
- package/types/vmnet.d.ts +178 -0
- package/src/appkit.d.ts +0 -472
package/types/vmnet.d.ts
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
|
|
3
|
+
declare const vmnet_enable_isolation_key: string
|
|
4
|
+
|
|
5
|
+
declare const vmnet_host_ipv6_address_key: string
|
|
6
|
+
|
|
7
|
+
declare const vmnet_host_subnet_mask_key: string
|
|
8
|
+
|
|
9
|
+
declare const vmnet_end_address_key: string
|
|
10
|
+
|
|
11
|
+
declare const vmnet_start_address_key: string
|
|
12
|
+
|
|
13
|
+
declare const vmnet_max_packet_size_key: string
|
|
14
|
+
|
|
15
|
+
declare const vmnet_mtu_key: string
|
|
16
|
+
|
|
17
|
+
declare const vmnet_allocate_mac_address_key: string
|
|
18
|
+
|
|
19
|
+
declare const vmnet_shared_interface_name_key: string
|
|
20
|
+
|
|
21
|
+
declare const vmnet_nat66_prefix_key: string
|
|
22
|
+
|
|
23
|
+
declare const vmnet_network_identifier_key: string
|
|
24
|
+
|
|
25
|
+
declare const vmnet_subnet_mask_key: string
|
|
26
|
+
|
|
27
|
+
declare const vmnet_host_ip_address_key: string
|
|
28
|
+
|
|
29
|
+
declare const vmnet_nat66_prefix_length_key: string
|
|
30
|
+
|
|
31
|
+
declare const vmnet_operation_mode_key: string
|
|
32
|
+
|
|
33
|
+
declare const vmnet_interface_id_key: string
|
|
34
|
+
|
|
35
|
+
declare const vmnet_mac_address_key: string
|
|
36
|
+
|
|
37
|
+
declare const vmnet_enable_tso_key: string
|
|
38
|
+
|
|
39
|
+
declare const vmnet_estimated_packets_available_key: string
|
|
40
|
+
|
|
41
|
+
declare const vmnet_return_t: {
|
|
42
|
+
SUCCESS: 1000
|
|
43
|
+
FAILURE: 1001
|
|
44
|
+
MEM_FAILURE: 1002
|
|
45
|
+
INVALID_ARGUMENT: 1003
|
|
46
|
+
SETUP_INCOMPLETE: 1004
|
|
47
|
+
INVALID_ACCESS: 1005
|
|
48
|
+
PACKET_TOO_BIG: 1006
|
|
49
|
+
BUFFER_EXHAUSTED: 1007
|
|
50
|
+
TOO_MANY_PACKETS: 1008
|
|
51
|
+
SHARING_SERVICE_BUSY: 1009
|
|
52
|
+
NOT_AUTHORIZED: 1010
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
declare const interface_event_t: {
|
|
56
|
+
VMNET_INTERFACE_PACKETS_AVAILABLE: 1
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare const operating_modes_t: {
|
|
60
|
+
HOST_: 1000
|
|
61
|
+
SHARED_: 1001
|
|
62
|
+
BRIDGED_: 1002
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
declare class vmnet_network {
|
|
66
|
+
constructor(init?: vmnet_network)
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
declare class vmpktdesc {
|
|
70
|
+
constructor(init?: vmpktdesc)
|
|
71
|
+
vm_pkt_size: number
|
|
72
|
+
vm_pkt_iov: interop.Pointer
|
|
73
|
+
vm_pkt_iovcnt: number
|
|
74
|
+
vm_flags: number
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
declare class vmnet_network_configuration {
|
|
78
|
+
constructor(init?: vmnet_network_configuration)
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare class vmnet_interface {
|
|
82
|
+
constructor(init?: vmnet_interface)
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
declare function vmnet_start_interface(
|
|
86
|
+
interface_desc: NSObject,
|
|
87
|
+
queue: NSObject,
|
|
88
|
+
handler: (p1: interop.Enum<typeof vmnet_return_t>, p2: NSObject) => void,
|
|
89
|
+
): interop.Pointer
|
|
90
|
+
|
|
91
|
+
declare function vmnet_interface_set_event_callback(
|
|
92
|
+
interface: interop.PointerConvertible,
|
|
93
|
+
event_mask: interop.Enum<typeof interface_event_t>,
|
|
94
|
+
queue: NSObject,
|
|
95
|
+
callback: (p1: interop.Enum<typeof interface_event_t>, p2: NSObject) => void,
|
|
96
|
+
): interop.Enum<typeof vmnet_return_t>
|
|
97
|
+
|
|
98
|
+
declare function vmnet_write(
|
|
99
|
+
interface: interop.PointerConvertible,
|
|
100
|
+
packets: interop.PointerConvertible,
|
|
101
|
+
pktcnt: interop.PointerConvertible,
|
|
102
|
+
): interop.Enum<typeof vmnet_return_t>
|
|
103
|
+
|
|
104
|
+
declare function vmnet_read(
|
|
105
|
+
interface: interop.PointerConvertible,
|
|
106
|
+
packets: interop.PointerConvertible,
|
|
107
|
+
pktcnt: interop.PointerConvertible,
|
|
108
|
+
): interop.Enum<typeof vmnet_return_t>
|
|
109
|
+
|
|
110
|
+
declare function vmnet_stop_interface(
|
|
111
|
+
interface: interop.PointerConvertible,
|
|
112
|
+
queue: NSObject,
|
|
113
|
+
handler: (p1: interop.Enum<typeof vmnet_return_t>) => void,
|
|
114
|
+
): interop.Enum<typeof vmnet_return_t>
|
|
115
|
+
|
|
116
|
+
declare function vmnet_interface_add_port_forwarding_rule(
|
|
117
|
+
interface: interop.PointerConvertible,
|
|
118
|
+
protocol: number,
|
|
119
|
+
external_port: number,
|
|
120
|
+
internal_address: in_addr,
|
|
121
|
+
internal_port: number,
|
|
122
|
+
handler: (p1: interop.Enum<typeof vmnet_return_t>) => void,
|
|
123
|
+
): interop.Enum<typeof vmnet_return_t>
|
|
124
|
+
|
|
125
|
+
declare function vmnet_interface_remove_port_forwarding_rule(
|
|
126
|
+
interface: interop.PointerConvertible,
|
|
127
|
+
protocol: number,
|
|
128
|
+
external_port: number,
|
|
129
|
+
handler: (p1: interop.Enum<typeof vmnet_return_t>) => void,
|
|
130
|
+
): interop.Enum<typeof vmnet_return_t>
|
|
131
|
+
|
|
132
|
+
declare function vmnet_port_forwarding_rule_get_details(
|
|
133
|
+
rule: NSObject,
|
|
134
|
+
protocol: interop.PointerConvertible,
|
|
135
|
+
external_port: interop.PointerConvertible,
|
|
136
|
+
internal_address: interop.PointerConvertible,
|
|
137
|
+
internal_port: interop.PointerConvertible,
|
|
138
|
+
): interop.Enum<typeof vmnet_return_t>
|
|
139
|
+
|
|
140
|
+
declare function vmnet_interface_get_port_forwarding_rules(
|
|
141
|
+
interface: interop.PointerConvertible,
|
|
142
|
+
handler: (p1: NSObject) => void,
|
|
143
|
+
): interop.Enum<typeof vmnet_return_t>
|
|
144
|
+
|
|
145
|
+
declare function vmnet_interface_add_ip_port_forwarding_rule(
|
|
146
|
+
interface: interop.PointerConvertible,
|
|
147
|
+
protocol: number,
|
|
148
|
+
external_port: number,
|
|
149
|
+
address_family: number,
|
|
150
|
+
internal_address: interop.PointerConvertible,
|
|
151
|
+
internal_port: number,
|
|
152
|
+
handler: (p1: interop.Enum<typeof vmnet_return_t>) => void,
|
|
153
|
+
): interop.Enum<typeof vmnet_return_t>
|
|
154
|
+
|
|
155
|
+
declare function vmnet_interface_remove_ip_port_forwarding_rule(
|
|
156
|
+
interface: interop.PointerConvertible,
|
|
157
|
+
protocol: number,
|
|
158
|
+
external_port: number,
|
|
159
|
+
address_family: number,
|
|
160
|
+
handler: (p1: interop.Enum<typeof vmnet_return_t>) => void,
|
|
161
|
+
): interop.Enum<typeof vmnet_return_t>
|
|
162
|
+
|
|
163
|
+
declare function vmnet_ip_port_forwarding_rule_get_details(
|
|
164
|
+
rule: NSObject,
|
|
165
|
+
protocol: interop.PointerConvertible,
|
|
166
|
+
external_port: interop.PointerConvertible,
|
|
167
|
+
address_family: number,
|
|
168
|
+
internal_address: interop.PointerConvertible,
|
|
169
|
+
internal_port: interop.PointerConvertible,
|
|
170
|
+
): interop.Enum<typeof vmnet_return_t>
|
|
171
|
+
|
|
172
|
+
declare function vmnet_interface_get_ip_port_forwarding_rules(
|
|
173
|
+
interface: interop.PointerConvertible,
|
|
174
|
+
address_family: number,
|
|
175
|
+
handler: (p1: NSObject) => void,
|
|
176
|
+
): interop.Enum<typeof vmnet_return_t>
|
|
177
|
+
|
|
178
|
+
declare function vmnet_copy_shared_interface_list(): NSObject
|
package/src/appkit.d.ts
DELETED
|
@@ -1,472 +0,0 @@
|
|
|
1
|
-
// Ambient host globals injected by @nativescript/macos-node-api and the
|
|
2
|
-
// embedding Node process. The prerelease ships no generated AppKit metadata
|
|
3
|
-
// types, so the declarations below cover the native surface the renderer
|
|
4
|
-
// calls for event and control wiring (target/action, gesture recognizers,
|
|
5
|
-
// tracking areas, notification observers, menus, pickers, sheets). Members
|
|
6
|
-
// outside that surface still resolve to `any` through the index signatures.
|
|
7
|
-
|
|
8
|
-
type NSClass<T> = {
|
|
9
|
-
new (...args: any[]): T
|
|
10
|
-
alloc(): T
|
|
11
|
-
[key: string]: any
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// Core Graphics geometry, bridged as plain objects.
|
|
15
|
-
interface NSPoint {
|
|
16
|
-
x: number
|
|
17
|
-
y: number
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface NSSize {
|
|
21
|
-
width: number
|
|
22
|
-
height: number
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface NSRect {
|
|
26
|
-
origin: NSPoint
|
|
27
|
-
size: NSSize
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// Objective-C classes. Instances expose bridged members beyond the declared
|
|
31
|
-
// surface as `any`; the type name is real so parameters and node structs can
|
|
32
|
-
// reference them.
|
|
33
|
-
declare class NSObject {
|
|
34
|
-
[key: string]: any
|
|
35
|
-
static alloc(): any
|
|
36
|
-
static new(): any
|
|
37
|
-
static extend(methods: object, options?: object): any
|
|
38
|
-
init(): this
|
|
39
|
-
isEqual?(other: any): boolean
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
interface NSAttributedString extends NSObject {}
|
|
43
|
-
declare const NSAttributedString: NSClass<NSAttributedString>
|
|
44
|
-
|
|
45
|
-
interface NSBundle extends NSObject {}
|
|
46
|
-
declare const NSBundle: NSClass<NSBundle>
|
|
47
|
-
|
|
48
|
-
interface NSError extends NSObject {}
|
|
49
|
-
declare const NSError: NSClass<NSError>
|
|
50
|
-
|
|
51
|
-
interface NSURLRequest extends NSObject {}
|
|
52
|
-
declare const NSURLRequest: NSClass<NSURLRequest>
|
|
53
|
-
|
|
54
|
-
// WebKit is dlopen'd at runtime by the webview leaf.
|
|
55
|
-
interface WKWebView extends NSView {
|
|
56
|
-
navigationDelegate: any
|
|
57
|
-
evaluateJavaScriptCompletionHandler(script: string, handler: any): void
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
declare const WKWebView: NSClass<WKWebView>
|
|
61
|
-
|
|
62
|
-
interface WKWebViewConfiguration extends NSObject {}
|
|
63
|
-
declare const WKWebViewConfiguration: NSClass<WKWebViewConfiguration>
|
|
64
|
-
|
|
65
|
-
// NSControl carries the target/action channel shared by buttons, sliders,
|
|
66
|
-
// text fields, and date pickers.
|
|
67
|
-
interface NSControl extends NSView {
|
|
68
|
-
target: any
|
|
69
|
-
action: string | null
|
|
70
|
-
enabled: boolean
|
|
71
|
-
doubleValue: number
|
|
72
|
-
font: any
|
|
73
|
-
textColor: any
|
|
74
|
-
cell: any
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
interface NSButton extends NSControl {
|
|
78
|
-
bezelStyle: number
|
|
79
|
-
state: number
|
|
80
|
-
setButtonType(type: number): void
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
interface NSButtonClass extends NSClass<NSButton> {
|
|
84
|
-
buttonWithTitleTargetAction(title: string, target: any, action: string): NSButton
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
declare const NSButton: NSButtonClass
|
|
88
|
-
|
|
89
|
-
interface NSGestureRecognizer extends NSObject {
|
|
90
|
-
initWithTargetAction(target: any, action: string): this
|
|
91
|
-
readonly view: NSView
|
|
92
|
-
state: number
|
|
93
|
-
enabled: boolean
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
interface NSClickGestureRecognizer extends NSGestureRecognizer {
|
|
97
|
-
numberOfClicksRequired: number
|
|
98
|
-
buttonMask: number
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
declare const NSClickGestureRecognizer: NSClass<NSClickGestureRecognizer>
|
|
102
|
-
|
|
103
|
-
interface NSColor extends NSObject {}
|
|
104
|
-
declare const NSColor: NSClass<NSColor>
|
|
105
|
-
|
|
106
|
-
interface NSColorSpace extends NSObject {}
|
|
107
|
-
declare const NSColorSpace: NSClass<NSColorSpace>
|
|
108
|
-
|
|
109
|
-
interface NSData extends NSObject {}
|
|
110
|
-
declare const NSData: NSClass<NSData>
|
|
111
|
-
|
|
112
|
-
interface NSDate extends NSObject {
|
|
113
|
-
readonly timeIntervalSince1970: number
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
interface NSDateClass extends NSClass<NSDate> {
|
|
117
|
-
dateWithTimeIntervalSince1970(seconds: number): NSDate
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
declare const NSDate: NSDateClass
|
|
121
|
-
|
|
122
|
-
interface NSDatePicker extends NSControl {
|
|
123
|
-
datePickerElements: number
|
|
124
|
-
datePickerStyle: number
|
|
125
|
-
dateValue: NSDate | null
|
|
126
|
-
minDate: NSDate | null
|
|
127
|
-
maxDate: NSDate | null
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
declare const NSDatePicker: NSClass<NSDatePicker>
|
|
131
|
-
|
|
132
|
-
interface NSEdgeInsets extends NSObject {}
|
|
133
|
-
declare const NSEdgeInsets: NSClass<NSEdgeInsets>
|
|
134
|
-
|
|
135
|
-
interface NSEvent extends NSObject {
|
|
136
|
-
readonly type: number
|
|
137
|
-
readonly keyCode: number
|
|
138
|
-
readonly modifierFlags: number
|
|
139
|
-
readonly window: NSWindow | null
|
|
140
|
-
readonly locationInWindow: NSPoint
|
|
141
|
-
readonly trackingArea: NSTrackingArea
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
interface NSEventClass extends NSClass<NSEvent> {
|
|
145
|
-
addLocalMonitorForEventsMatchingMaskHandler(
|
|
146
|
-
mask: number,
|
|
147
|
-
handler: (event: NSEvent) => NSEvent | null,
|
|
148
|
-
): any
|
|
149
|
-
addGlobalMonitorForEventsMatchingMaskHandler(
|
|
150
|
-
mask: number,
|
|
151
|
-
handler: (event: NSEvent) => NSEvent | null,
|
|
152
|
-
): any
|
|
153
|
-
removeMonitor(monitor: any): void
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
declare const NSEvent: NSEventClass
|
|
157
|
-
|
|
158
|
-
interface NSFont extends NSObject {}
|
|
159
|
-
declare const NSFont: NSClass<NSFont>
|
|
160
|
-
|
|
161
|
-
interface NSFontDescriptor extends NSObject {}
|
|
162
|
-
declare const NSFontDescriptor: NSClass<NSFontDescriptor>
|
|
163
|
-
|
|
164
|
-
interface NSFontManager extends NSObject {}
|
|
165
|
-
declare const NSFontManager: NSClass<NSFontManager>
|
|
166
|
-
|
|
167
|
-
interface NSImage extends NSObject {}
|
|
168
|
-
declare const NSImage: NSClass<NSImage>
|
|
169
|
-
|
|
170
|
-
interface NSImageView extends NSControl {
|
|
171
|
-
image: NSImage | null
|
|
172
|
-
imageScaling: number
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
declare const NSImageView: NSClass<NSImageView>
|
|
176
|
-
|
|
177
|
-
interface NSMenu extends NSObject {
|
|
178
|
-
autoenablesItems: boolean
|
|
179
|
-
addItem(item: NSMenuItem): void
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
declare const NSMenu: NSClass<NSMenu>
|
|
183
|
-
|
|
184
|
-
interface NSMenuItem extends NSObject {
|
|
185
|
-
initWithTitleActionKeyEquivalent(
|
|
186
|
-
title: string,
|
|
187
|
-
action: string | null,
|
|
188
|
-
keyEquivalent: string,
|
|
189
|
-
): this
|
|
190
|
-
target: any
|
|
191
|
-
action: string | null
|
|
192
|
-
enabled: boolean
|
|
193
|
-
tag?: number
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
interface NSMenuItemClass extends NSClass<NSMenuItem> {
|
|
197
|
-
separatorItem(): NSMenuItem
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
declare const NSMenuItem: NSMenuItemClass
|
|
201
|
-
|
|
202
|
-
interface NSApplication extends NSObject {
|
|
203
|
-
readonly keyWindow: NSWindow | null
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
interface NSApplicationClass extends NSClass<NSApplication> {
|
|
207
|
-
readonly sharedApplication: NSApplication
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
declare const NSApplication: NSApplicationClass
|
|
211
|
-
|
|
212
|
-
interface NSAppearance extends NSObject {}
|
|
213
|
-
interface NSAppearanceClass extends NSClass<NSAppearance> {
|
|
214
|
-
appearanceNamed(name: string): NSAppearance
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
declare const NSAppearance: NSAppearanceClass
|
|
218
|
-
|
|
219
|
-
interface NSMutableParagraphStyle extends NSObject {}
|
|
220
|
-
declare const NSMutableParagraphStyle: NSClass<NSMutableParagraphStyle>
|
|
221
|
-
|
|
222
|
-
interface NSNotification extends NSObject {
|
|
223
|
-
readonly object: any
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
declare const NSNotification: NSClass<NSNotification>
|
|
227
|
-
|
|
228
|
-
interface NSNotificationCenter extends NSObject {
|
|
229
|
-
addObserverForNameObjectQueueUsingBlock(
|
|
230
|
-
name: string,
|
|
231
|
-
object: any,
|
|
232
|
-
queue: any,
|
|
233
|
-
block: () => void,
|
|
234
|
-
): any
|
|
235
|
-
removeObserver(observer: any): void
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
interface NSNotificationCenterClass extends NSClass<NSNotificationCenter> {
|
|
239
|
-
readonly defaultCenter: NSNotificationCenter
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
declare const NSNotificationCenter: NSNotificationCenterClass
|
|
243
|
-
|
|
244
|
-
interface NSNumber extends NSObject {}
|
|
245
|
-
declare const NSNumber: NSClass<NSNumber>
|
|
246
|
-
|
|
247
|
-
interface NSPanGestureRecognizer extends NSGestureRecognizer {
|
|
248
|
-
translationInView(view: NSView | null): NSPoint
|
|
249
|
-
velocityInView(view: NSView | null): NSPoint
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
declare const NSPanGestureRecognizer: NSClass<NSPanGestureRecognizer>
|
|
253
|
-
|
|
254
|
-
interface NSPopover extends NSObject {
|
|
255
|
-
contentViewController: NSViewController
|
|
256
|
-
contentSize: NSSize
|
|
257
|
-
behavior: number
|
|
258
|
-
animates: boolean
|
|
259
|
-
showRelativeToRectOfViewPreferredEdge(rect: NSRect, view: NSView, preferredEdge: number): void
|
|
260
|
-
close(): void
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
declare const NSPopover: NSClass<NSPopover>
|
|
264
|
-
|
|
265
|
-
interface NSScrollView extends NSView {
|
|
266
|
-
documentView: NSView | null
|
|
267
|
-
contentView: any
|
|
268
|
-
borderType: number
|
|
269
|
-
drawsBackground: boolean
|
|
270
|
-
hasVerticalScroller: boolean
|
|
271
|
-
hasHorizontalScroller: boolean
|
|
272
|
-
reflectScrolledClipView(clipView: any): void
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
declare const NSScrollView: NSClass<NSScrollView>
|
|
276
|
-
|
|
277
|
-
interface NSSlider extends NSControl {
|
|
278
|
-
minValue: number
|
|
279
|
-
maxValue: number
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
declare const NSSlider: NSClass<NSSlider>
|
|
283
|
-
|
|
284
|
-
interface NSStackView extends NSView {}
|
|
285
|
-
declare const NSStackView: NSClass<NSStackView>
|
|
286
|
-
|
|
287
|
-
interface NSTextField extends NSControl {
|
|
288
|
-
stringValue: string
|
|
289
|
-
placeholderString?: string
|
|
290
|
-
placeholderAttributedString: any
|
|
291
|
-
bezeled: boolean
|
|
292
|
-
drawsBackground: boolean
|
|
293
|
-
editable: boolean
|
|
294
|
-
selectable: boolean
|
|
295
|
-
sendsActionOnEndEditing: boolean
|
|
296
|
-
alignment: number
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
declare const NSTextField: NSClass<NSTextField>
|
|
300
|
-
|
|
301
|
-
interface NSSecureTextField extends NSTextField {}
|
|
302
|
-
declare const NSSecureTextField: NSClass<NSSecureTextField>
|
|
303
|
-
|
|
304
|
-
interface NSTextView extends NSView {
|
|
305
|
-
string: string
|
|
306
|
-
editable: boolean
|
|
307
|
-
selectable: boolean
|
|
308
|
-
drawsBackground: boolean
|
|
309
|
-
delegate: any
|
|
310
|
-
font: any
|
|
311
|
-
textColor: any
|
|
312
|
-
textContainer: any
|
|
313
|
-
textContainerInset: NSSize
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
declare const NSTextView: NSClass<NSTextView>
|
|
317
|
-
|
|
318
|
-
interface NSTrackingArea extends NSObject {
|
|
319
|
-
initWithRectOptionsOwnerUserInfo(rect: NSRect, options: number, owner: any, userInfo: any): this
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
declare const NSTrackingArea: NSClass<NSTrackingArea>
|
|
323
|
-
|
|
324
|
-
interface NSURL extends NSObject {}
|
|
325
|
-
declare const NSURL: NSClass<NSURL>
|
|
326
|
-
|
|
327
|
-
interface NSView extends NSObject {
|
|
328
|
-
initWithFrame(frame: NSRect): this
|
|
329
|
-
addSubview(child: NSView): void
|
|
330
|
-
removeFromSuperview(): void
|
|
331
|
-
addGestureRecognizer(recognizer: NSGestureRecognizer): void
|
|
332
|
-
removeGestureRecognizer(recognizer: NSGestureRecognizer): void
|
|
333
|
-
addTrackingArea(area: NSTrackingArea): void
|
|
334
|
-
removeTrackingArea(area: NSTrackingArea): void
|
|
335
|
-
hitTest(point: NSPoint): NSView | null
|
|
336
|
-
acceptsFirstResponder(): boolean
|
|
337
|
-
keyDown(event: NSEvent): void
|
|
338
|
-
layout(): void
|
|
339
|
-
layoutSubtreeIfNeeded(): void
|
|
340
|
-
convertRectToView(rect: NSRect, view: NSView | null): NSRect
|
|
341
|
-
isFlipped(): boolean
|
|
342
|
-
frame: NSRect
|
|
343
|
-
bounds: NSRect
|
|
344
|
-
readonly fittingSize: NSSize
|
|
345
|
-
readonly superview: NSView | null
|
|
346
|
-
readonly window: NSWindow | null
|
|
347
|
-
hidden: boolean
|
|
348
|
-
tag?: number
|
|
349
|
-
menu: NSMenu | null
|
|
350
|
-
alphaValue: number
|
|
351
|
-
autoresizingMask?: number
|
|
352
|
-
translatesAutoresizingMaskIntoConstraints: boolean
|
|
353
|
-
wantsLayer: boolean
|
|
354
|
-
postsBoundsChangedNotifications: boolean
|
|
355
|
-
postsFrameChangedNotifications: boolean
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
declare const NSView: NSClass<NSView>
|
|
359
|
-
|
|
360
|
-
interface NSViewController extends NSObject {
|
|
361
|
-
view: NSView
|
|
362
|
-
preferredContentSize: NSSize
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
declare const NSViewController: NSClass<NSViewController>
|
|
366
|
-
|
|
367
|
-
interface NSWindow extends NSObject {
|
|
368
|
-
initWithContentRectStyleMaskBackingDefer(
|
|
369
|
-
contentRect: NSRect,
|
|
370
|
-
styleMask: number,
|
|
371
|
-
backing: number,
|
|
372
|
-
defer: boolean,
|
|
373
|
-
): this
|
|
374
|
-
contentView: NSView
|
|
375
|
-
contentViewController: NSViewController
|
|
376
|
-
frame: NSRect
|
|
377
|
-
firstResponder: any
|
|
378
|
-
delegate: any
|
|
379
|
-
effectiveAppearance: any
|
|
380
|
-
releasedWhenClosed: boolean
|
|
381
|
-
makeFirstResponder(responder: any): boolean
|
|
382
|
-
beginSheetCompletionHandler(sheet: NSWindow, handler: () => void): void
|
|
383
|
-
endSheet(sheet: NSWindow): void
|
|
384
|
-
orderOut(sender: any): void
|
|
385
|
-
center(): void
|
|
386
|
-
makeKeyAndOrderFront(sender: any): void
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
declare const NSWindow: NSClass<NSWindow>
|
|
390
|
-
|
|
391
|
-
// QuartzCore, referenced lazily by the presentation bridge for sheet
|
|
392
|
-
// transition fades.
|
|
393
|
-
interface CABasicAnimation extends NSObject {
|
|
394
|
-
fromValue: any
|
|
395
|
-
toValue: any
|
|
396
|
-
duration: number
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
interface CABasicAnimationClass extends NSClass<CABasicAnimation> {
|
|
400
|
-
animationWithKeyPath(keyPath: string): CABasicAnimation
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
declare const CABasicAnimation: CABasicAnimationClass
|
|
404
|
-
|
|
405
|
-
// Enum containers. Members resolve to `number`, so bitwise masks compose.
|
|
406
|
-
declare const NSBackingStoreType: { [key: string]: number }
|
|
407
|
-
declare const NSBezelStyle: { [key: string]: number }
|
|
408
|
-
declare const NSBorderType: { [key: string]: number }
|
|
409
|
-
declare const NSButtonType: { [key: string]: number }
|
|
410
|
-
declare const NSDatePickerElementFlags: { [key: string]: number }
|
|
411
|
-
declare const NSDatePickerStyle: { [key: string]: number }
|
|
412
|
-
declare const NSLayoutAttribute: { [key: string]: number }
|
|
413
|
-
declare const NSPopoverBehavior: { [key: string]: number }
|
|
414
|
-
declare const NSRectEdge: { [key: string]: number }
|
|
415
|
-
declare const NSStackViewDistribution: { [key: string]: number }
|
|
416
|
-
declare const NSStackViewGravity: { [key: string]: number }
|
|
417
|
-
declare const NSLineBreakMode: { [key: string]: number }
|
|
418
|
-
declare const NSTextAlignment: { [key: string]: number }
|
|
419
|
-
declare const NSTrackingAreaOptions: { [key: string]: number }
|
|
420
|
-
declare const NSUserInterfaceLayoutOrientation: { [key: string]: number }
|
|
421
|
-
declare const NSWindowStyleMask: { [key: string]: number }
|
|
422
|
-
|
|
423
|
-
// Standalone constants.
|
|
424
|
-
declare const NSImageScaleProportionallyDown: number
|
|
425
|
-
declare const NSImageScaleProportionallyUpOrDown: number
|
|
426
|
-
|
|
427
|
-
// NSString notification names and attributed-string keys.
|
|
428
|
-
declare const NSPopoverDidCloseNotification: string
|
|
429
|
-
declare const NSViewBoundsDidChangeNotification: string
|
|
430
|
-
declare const NSViewFrameDidChangeNotification: string
|
|
431
|
-
declare const NSFontAttributeName: string
|
|
432
|
-
declare const NSForegroundColorAttributeName: string
|
|
433
|
-
declare const NSParagraphStyleAttributeName: string
|
|
434
|
-
declare const NSURLErrorFailingURLErrorKey: string
|
|
435
|
-
|
|
436
|
-
// Protocol objects (opaque bridge references used in ObjCProtocols arrays).
|
|
437
|
-
declare const NSTextViewDelegate: any
|
|
438
|
-
declare const NSWindowDelegate: any
|
|
439
|
-
declare const WKNavigationDelegate: any
|
|
440
|
-
|
|
441
|
-
// Runtime framework loader injected by the bridge host.
|
|
442
|
-
declare function dlopen(path: string, flags: number): unknown
|
|
443
|
-
|
|
444
|
-
// Cross-package bridge published by this renderer for AppKit-specific leaves
|
|
445
|
-
// (hover, popups, menus, sheets) and the VirtualList offset channel.
|
|
446
|
-
declare var __xplatAppKit: {
|
|
447
|
-
observeHover?: (view: NSView, handlers: any) => void
|
|
448
|
-
showAnchoredPopup?: (options: any) => void
|
|
449
|
-
showLayer?: (options: any) => any
|
|
450
|
-
attachContextMenu?: (view: NSView, options: any, onSelect: any) => void
|
|
451
|
-
attachDatePicker?: (view: NSView, options: any, onChange: any) => void
|
|
452
|
-
presentSheet?: (view: NSView, options: any) => void
|
|
453
|
-
presentSurface?: (options: any) => any
|
|
454
|
-
setSurfaceAppearance?: (view: NSView, dark: boolean) => void
|
|
455
|
-
[key: string]: any
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
declare var __xplatVlistOffsets: { [key: string]: number } | undefined
|
|
459
|
-
|
|
460
|
-
// Node host globals.
|
|
461
|
-
declare const performance: { now(): number }
|
|
462
|
-
declare function setTimeout(callback: () => void, ms?: number): unknown
|
|
463
|
-
declare function clearTimeout(timer: unknown): void
|
|
464
|
-
declare function queueMicrotask(callback: () => void): void
|
|
465
|
-
declare const console: {
|
|
466
|
-
log(...args: any[]): void
|
|
467
|
-
warn(...args: any[]): void
|
|
468
|
-
error(...args: any[]): void
|
|
469
|
-
[key: string]: any
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
declare const process: { env: { [key: string]: string | undefined } }
|