peachsim 0.1.1738 → 0.1.1744
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 +4 -0
- package/cli/app-catalog.ts +47 -23
- package/cli/app-fonts.ts +19 -1
- package/cli/command-registry.ts +3 -0
- package/cli/commands/control.ts +67 -16
- package/cli/commands/device.ts +3 -1
- package/cli/commands/doctor.ts +1 -4
- package/cli/commands/inspect/settling.ts +6 -1
- package/cli/commands/inspect/wait-ready.ts +22 -2
- package/cli/commands/package.ts +22 -20
- package/cli/commands/push.ts +56 -0
- package/cli/commands/serve.ts +9 -0
- package/cli/commands/shell-url.ts +37 -9
- package/cli/commands/swift.ts +1 -1
- package/cli/current-sim.ts +27 -0
- package/cli/drivers/linux-browser-libs.lock.json +323 -1
- package/cli/drivers/linux-browser-libs.ts +8 -6
- package/cli/drivers/playwright.ts +5 -1
- package/cli/internal-child.ts +11 -1
- package/cli/main.ts +6 -0
- package/cli/native-input.ts +1 -7
- package/cli/outbound-endpoints.ts +9 -1
- package/cli/packaged-app-launcher.ts +3 -1
- package/cli/scene-video.ts +4 -0
- package/cli/ws-bridge.ts +3 -1
- package/detox/index.ts +9 -4
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +7372 -3675
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +22 -8
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +6340 -3064
- package/dist-lib/expo-swift-metadata.cjs +14 -2
- package/dist-lib/expo-swift-metadata.mjs +14 -2
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +6524 -2720
- package/dist-lib/host/fetch-proxy-handler.cjs +8 -7
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +6 -3
- package/dist-lib/index.cjs +97 -31
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +71 -29
- package/dist-lib/native-app-identity-project.cjs +53 -22
- package/dist-lib/native-app-identity-project.mjs +53 -22
- package/dist-lib/native-app-identity.cjs +10 -3
- package/dist-lib/native-app-identity.mjs +10 -3
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +25 -23
- package/dist-lib/public-origins-lib.json +111 -79
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +4 -1
- package/dist-lib/sdk.mjs +4 -1
- package/dist-lib/skills.cjs +40549 -37613
- package/dist-lib/swift-compile.cjs +2054 -388
- package/dist-lib/swift-compile.mjs +1976 -312
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +68 -8
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +5867 -2646
- package/dist-lib/vite.cjs +18 -8
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/cli-companion.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +0 -3
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +25 -3
- package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +1 -15
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +1 -3
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +23 -0
- package/dist-types/packages/peach-engine/src/ios/chrome-metrics.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/metro-identity-contract.d.ts +33 -0
- package/dist-types/packages/peach-engine/src/preview/bundle-layout.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/remote-stream/scene-recording.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +28 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +21 -1
- package/dist-types/packages/peach-engine/src/render-worker/prepared-boot-bundle.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +8 -0
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/test-bridge-protocol.d.ts +3 -3
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-frame-transaction.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-readback-scheduler.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/rolldown-production-fingerprint.d.ts +1 -4
- package/dist-types/packages/peach-engine/src/rolldown-production-module.d.ts +12 -0
- package/dist-types/packages/peach-engine/src/rolldown-production-roles.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +6 -1
- package/dist-types/packages/peach-engine/src/settings/duo-fold-bus.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/shell-events.d.ts +4 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +7 -0
- package/package.json +2 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +1 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h +257 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h +305 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGAffineTransform.h +204 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h +260 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColor.h +164 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h +101 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h +510 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h +1132 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGConvertColorDataWithFormat.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataConsumer.h +83 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h +197 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEXRToneMappingGamma.h +36 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGError.h +38 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h +312 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFunction.h +106 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGradient.h +123 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGITUToneMapping.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h +409 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGLayer.h +78 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h +120 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContentStream.h +55 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h +535 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h +133 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h +252 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFMarkedContentItem.h +37 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFObject.h +67 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFOperatorTable.h +51 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h +101 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFScanner.h +123 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStream.h +44 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFString.h +52 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStructureElement.h +87 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h +441 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPattern.h +89 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGRenderingBufferProvider.h +49 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGShading.h +124 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGToneMapping.h +85 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +44 -252
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Modules/module.modulemap +1 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/CFNetworkErrors.h +257 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +0 -6
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +356 -61
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/NSURLSession+Network.h +32 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/Network.h +51 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/advertise_descriptor.h +193 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_descriptor.h +163 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_result.h +207 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browser.h +285 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection.h +714 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_group.h +629 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_report.h +932 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/content_context.h +229 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/endpoint.h +390 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/error.h +135 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ethernet_channel.h +349 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/framer_options.h +1187 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/group_descriptor.h +184 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/interface.h +150 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ip_options.h +351 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/listener.h +438 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/nw_object.h +200 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/parameters.h +1205 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path.h +392 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path_monitor.h +216 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/privacy_context.h +188 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/protocol_options.h +126 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/proxy_config.h +357 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/quic_options.h +889 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/resolver_config.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tcp_options.h +459 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tls_options.h +115 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/txt_record.h +432 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/udp_options.h +112 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ws_options.h +743 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Modules/module.modulemap +9 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h +395 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h +132 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h +107 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterCell.h +153 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterLayer.h +151 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAFrameRateRange.h +40 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAGradientLayer.h +78 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +1078 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTiming.h +97 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h +67 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAReplicatorLayer.h +65 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAScrollLayer.h +64 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAShapeLayer.h +135 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATextLayer.h +99 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATiledLayer.h +67 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransaction.h +124 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransform3D.h +138 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransformLayer.h +40 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h +78 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +19 -38
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h +1757 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h +19 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +28 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +114 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarAppearance.h +47 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDataDetectors.h +20 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDatePicker.h +13 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +84 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +119 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h +66 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +161 -37
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h +76 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBar.h +8 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarAppearance.h +78 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +104 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +19 -0
- package/sdk/ios/usr/include/dns_sd.h +3616 -0
- package/sdk/ios/usr/include/dnssd.modulemap +4 -0
- package/sdk/ios/usr/include/module.modulemap +1 -0
- package/sdk/ios/usr/include/sys/socketvar.h +191 -0
- package/sdk/ios/usr/include/sys/vsock.h +84 -0
- package/sdk/native-hashes.json +1 -1
- package/skills/contrast/SKILL.md +6 -5
- package/skills/peach-debug/SKILL.md +68 -264
- package/skills/peach-debug/references/accessibility.md +37 -73
- package/skills/peach-debug/references/commands.md +2 -2
- package/skills/peach-debug/references/events.md +74 -0
- package/skills/peach-perf/SKILL.md +64 -401
- package/skills/peach-perf/references/presentation.md +46 -0
- package/skills/peach-perf/references/profiling.md +93 -0
- package/skills/peach-perf/references/render-counters.md +57 -0
- package/skills/peach-setup/SKILL.md +66 -216
- package/skills/peach-setup/references/native-config.md +35 -0
- package/skills/peach-setup/references/reporting.md +28 -0
- package/skills/peach-test/SKILL.md +68 -284
- package/skills/peach-test/references/detox.md +69 -0
- package/skills/peach-test/references/maestro.md +95 -0
- package/skills/peach-visual/SKILL.md +53 -105
- package/src/appPackageContract.ts +12 -1
- package/src/assetCatalogContract.ts +8 -1
- package/src/bridge-contract.ts +6 -0
- package/src/bundle-channel.mjs +133 -59
- package/src/cli-runtime.ts +8 -9
- package/src/configured-bundle-producer.ts +10 -0
- package/src/device-catalog.ts +68 -4
- package/src/expo-discovery-cache.ts +3 -0
- package/src/expo-native-workspace.ts +81 -17
- package/src/expo-swift-host.ts +57 -104
- package/src/expo-widget-assets.ts +76 -0
- package/src/expoSwiftContract.ts +13 -1
- package/src/host/websocket-proxy.ts +7 -2
- package/src/native-prebuilt.ts +3 -3
- package/src/nitro-adapter.lock.json +263 -263
- package/src/nitro-adapter.ts +69 -7
- package/src/nitro-bundle.ts +52 -24
- package/src/nitro-compile.ts +6 -1
- package/src/nitro-source.ts +82 -4
- package/src/nitro-superset.lock.json +103 -0
- package/src/nitro-superset.ts +137 -0
- package/src/nitroContract.ts +5 -1
- package/src/react-bridge-importers.ts +1 -0
- package/src/settingsContract.ts +26 -1
- package/src/swift-compile.ts +267 -68
- package/src/swift-compiler-digest.ts +2 -0
- package/src/swift-coverage/xcode-packages.ts +61 -1
- package/src/swift-coverage/xcode.ts +10 -12
- package/src/swift-cxx-reachable.ts +1 -1
- package/src/swift-distribution.lock.json +15 -13
- package/src/swift-distribution.ts +57 -26
- package/src/swift-host.ts +48 -35
- package/src/swift-link-roots.ts +45 -18
- package/src/swift-objc-compile.ts +78 -2
- package/src/swift-objc-standin.ts +3 -0
- package/src/swift-shared-sdk.ts +85 -1
- package/src/swift-standins.ts +233 -11
- package/src/swift-submit.ts +13 -1
- package/src/swift-toolchain.ts +82 -7
- package/src/swift-wasm-prune.ts +1629 -0
- package/src/turbo-bundle.ts +11 -10
- package/src/turbo-runtime.lock.json +16 -16
- package/src/vite-plugin-one.ts +12 -1
- package/src/vite-plugin.ts +82 -23
- package/src/wasm-optimize.ts +34 -0
- package/src/worker-system-chunks.ts +3 -3
- package/src/xcode-project.ts +52 -0
- package/src/xcode-target-members.ts +12 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* CoreGraphics - CGPDFString.h
|
|
2
|
+
* Copyright (c) 2002-2008 Apple Inc.
|
|
3
|
+
* All rights reserved. */
|
|
4
|
+
|
|
5
|
+
#ifndef CGPDFSTRING_H_
|
|
6
|
+
#define CGPDFSTRING_H_
|
|
7
|
+
|
|
8
|
+
#include <CoreFoundation/CFBase.h>
|
|
9
|
+
#include <CoreFoundation/CFAvailability.h>
|
|
10
|
+
#include <stdint.h>
|
|
11
|
+
|
|
12
|
+
typedef struct CGPDFString *CGPDFStringRef __attribute__((swift_wrapper(struct)));
|
|
13
|
+
|
|
14
|
+
#include <CoreGraphics/CGBase.h>
|
|
15
|
+
#include <CoreFoundation/CFDate.h>
|
|
16
|
+
#include <CoreFoundation/CFString.h>
|
|
17
|
+
|
|
18
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
19
|
+
|
|
20
|
+
CF_ASSUME_NONNULL_BEGIN
|
|
21
|
+
|
|
22
|
+
/* Return the length of `string'. */
|
|
23
|
+
|
|
24
|
+
CG_EXTERN size_t CGPDFStringGetLength(CGPDFStringRef cg_nullable string)
|
|
25
|
+
API_AVAILABLE(macos(10.3), ios(2.0));
|
|
26
|
+
|
|
27
|
+
/* Return a pointer to the bytes of `string'. */
|
|
28
|
+
|
|
29
|
+
CG_EXTERN const unsigned char * __nullable CGPDFStringGetBytePtr(
|
|
30
|
+
CGPDFStringRef cg_nullable string)
|
|
31
|
+
API_AVAILABLE(macos(10.3), ios(2.0));
|
|
32
|
+
|
|
33
|
+
/* Return a CFString representing `string' as a "text string". See Section
|
|
34
|
+
3.8.1 "Text Strings", PDF Reference: Adobe PDF version 1.6 (5th ed.) for
|
|
35
|
+
more information. */
|
|
36
|
+
|
|
37
|
+
CG_EXTERN CFStringRef __nullable CGPDFStringCopyTextString(
|
|
38
|
+
CGPDFStringRef cg_nullable string)
|
|
39
|
+
API_AVAILABLE(macos(10.3), ios(2.0));
|
|
40
|
+
|
|
41
|
+
/* Convert `string' to a CFDate. See Section 3.8.3 "Dates", PDF Reference:
|
|
42
|
+
Adobe PDF version 1.6 (5th ed.) for more information. */
|
|
43
|
+
|
|
44
|
+
CG_EXTERN CFDateRef __nullable CGPDFStringCopyDate(
|
|
45
|
+
CGPDFStringRef cg_nullable string)
|
|
46
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
47
|
+
|
|
48
|
+
CF_ASSUME_NONNULL_END
|
|
49
|
+
|
|
50
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
51
|
+
|
|
52
|
+
#endif /* CGPDFSTRING_H_ */
|
package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStructureElement.h
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CGPDFStructureElement.h
|
|
3
|
+
// CoreGraphics
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2023 Apple. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#ifndef CGPDFStructureElement_h
|
|
9
|
+
#define CGPDFStructureElement_h
|
|
10
|
+
|
|
11
|
+
#include <CoreFoundation/CFBase.h>
|
|
12
|
+
#include <CoreGraphics/CGPDFContext.h>
|
|
13
|
+
|
|
14
|
+
typedef struct CF_BRIDGED_TYPE(id) CGPDFStructureElement* CGPDFStructureElementRef
|
|
15
|
+
API_AVAILABLE(macos(27.0), ios(27.0), visionos(27.0))
|
|
16
|
+
API_UNAVAILABLE(watchos, tvos);
|
|
17
|
+
|
|
18
|
+
#include <CoreFoundation/CFString.h>
|
|
19
|
+
#include <CoreGraphics/CGPDFMarkedContentItem.h>
|
|
20
|
+
|
|
21
|
+
CF_ASSUME_NONNULL_BEGIN
|
|
22
|
+
|
|
23
|
+
CG_EXTERN CGPDFStructureElementRef CGPDFStructureElementCreate(CGPDFTagType type) CF_RETURNS_RETAINED
|
|
24
|
+
CF_SWIFT_NAME(CGPDFStructureElement.init(tagType:))
|
|
25
|
+
API_AVAILABLE(macos(27.0), ios(27.0), visionos(27.0))
|
|
26
|
+
API_UNAVAILABLE(watchos, tvos);
|
|
27
|
+
|
|
28
|
+
/* Standard CoreFoundation-style retain/release for C clients, balanced against the
|
|
29
|
+
+1 references returned by CGPDFStructureElementCreate and the CGPDFContext
|
|
30
|
+
marked-content functions. NULL-safe. Refined away in Swift, where ARC manages
|
|
31
|
+
lifetimes. */
|
|
32
|
+
|
|
33
|
+
CG_EXTERN CGPDFStructureElementRef cg_nullable CGPDFStructureElementRetain(CGPDFStructureElementRef cg_nullable structureElemnt)
|
|
34
|
+
CF_REFINED_FOR_SWIFT
|
|
35
|
+
API_AVAILABLE(macos(27.0), ios(27.0), visionos(27.0))
|
|
36
|
+
API_UNAVAILABLE(watchos, tvos);
|
|
37
|
+
|
|
38
|
+
CG_EXTERN void CGPDFStructureElementRelease(CGPDFStructureElementRef cg_nullable structureElemnt)
|
|
39
|
+
CF_REFINED_FOR_SWIFT
|
|
40
|
+
API_AVAILABLE(macos(27.0), ios(27.0), visionos(27.0))
|
|
41
|
+
API_UNAVAILABLE(watchos, tvos);
|
|
42
|
+
|
|
43
|
+
/* Structure Element Attributes */
|
|
44
|
+
|
|
45
|
+
/* The attribute setters are refined out of the Swift surface; the overlay
|
|
46
|
+
applies them from a `CGPDFStructureElement.Attributes` value at creation. */
|
|
47
|
+
|
|
48
|
+
CG_EXTERN void CGPDFStructureElementSetTitle(CGPDFStructureElementRef structureElement, CFStringRef title)
|
|
49
|
+
CF_REFINED_FOR_SWIFT
|
|
50
|
+
API_AVAILABLE(macos(27.0), ios(27.0), visionos(27.0))
|
|
51
|
+
API_UNAVAILABLE(watchos, tvos);
|
|
52
|
+
|
|
53
|
+
CG_EXTERN void CGPDFStructureElementSetLanguageIdentifier(CGPDFStructureElementRef structureElement, CFStringRef languageID)
|
|
54
|
+
CF_REFINED_FOR_SWIFT
|
|
55
|
+
API_AVAILABLE(macos(27.0), ios(27.0), visionos(27.0))
|
|
56
|
+
API_UNAVAILABLE(watchos, tvos);
|
|
57
|
+
|
|
58
|
+
CG_EXTERN void CGPDFStructureElementSetAlternativeText(CGPDFStructureElementRef structureElement, CFStringRef alternativeText)
|
|
59
|
+
CF_REFINED_FOR_SWIFT
|
|
60
|
+
API_AVAILABLE(macos(27.0), ios(27.0), visionos(27.0))
|
|
61
|
+
API_UNAVAILABLE(watchos, tvos);
|
|
62
|
+
|
|
63
|
+
CG_EXTERN void CGPDFStructureElementSetExpansionText(CGPDFStructureElementRef structureElement, CFStringRef expansionText)
|
|
64
|
+
CF_REFINED_FOR_SWIFT
|
|
65
|
+
API_AVAILABLE(macos(27.0), ios(27.0), visionos(27.0))
|
|
66
|
+
API_UNAVAILABLE(watchos, tvos);
|
|
67
|
+
|
|
68
|
+
CG_EXTERN void CGPDFStructureElementSetActualText(CGPDFStructureElementRef structureElement, CFStringRef actualText)
|
|
69
|
+
CF_REFINED_FOR_SWIFT
|
|
70
|
+
API_AVAILABLE(macos(27.0), ios(27.0), visionos(27.0))
|
|
71
|
+
API_UNAVAILABLE(watchos, tvos);
|
|
72
|
+
|
|
73
|
+
/* Children */
|
|
74
|
+
|
|
75
|
+
CG_EXTERN OSStatus CGPDFStructureElementAddStructureElement(CGPDFStructureElementRef structureElement, CGPDFStructureElementRef childStructureElement)
|
|
76
|
+
CF_SWIFT_NAME(CGPDFStructureElement.addChild(self:_:))
|
|
77
|
+
API_AVAILABLE(macos(27.0), ios(27.0), visionos(27.0))
|
|
78
|
+
API_UNAVAILABLE(watchos, tvos);
|
|
79
|
+
|
|
80
|
+
CG_EXTERN OSStatus CGPDFStructureElementAddMarkedContentItem(CGPDFStructureElementRef structureElement, CGPDFMarkedContentItemRef markedContentItem)
|
|
81
|
+
CF_SWIFT_NAME(CGPDFStructureElement.addMarkedContentItem(self:_:))
|
|
82
|
+
API_AVAILABLE(macos(27.0), ios(27.0), visionos(27.0))
|
|
83
|
+
API_UNAVAILABLE(watchos, tvos);
|
|
84
|
+
|
|
85
|
+
CF_ASSUME_NONNULL_END
|
|
86
|
+
|
|
87
|
+
#endif /* CGPDFStructureElement_h */
|
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
/* CoreGraphics - CGPath.h
|
|
2
|
+
Copyright (c) 2001-2011 Apple Inc.
|
|
3
|
+
All rights reserved. */
|
|
4
|
+
|
|
5
|
+
#ifndef CGPATH_H_
|
|
6
|
+
#define CGPATH_H_
|
|
7
|
+
|
|
8
|
+
#include <CoreFoundation/CFBase.h>
|
|
9
|
+
#include <CoreFoundation/CFAvailability.h>
|
|
10
|
+
#include <stdint.h>
|
|
11
|
+
|
|
12
|
+
typedef struct CF_BRIDGED_TYPE(id) CGPath *CGMutablePathRef;
|
|
13
|
+
typedef const struct CF_BRIDGED_TYPE(id) CGPath *CGPathRef;
|
|
14
|
+
|
|
15
|
+
#include <CoreGraphics/CGBase.h>
|
|
16
|
+
#include <CoreGraphics/CGAffineTransform.h>
|
|
17
|
+
#include <CoreFoundation/CFBase.h>
|
|
18
|
+
#include <CoreFoundation/CFArray.h>
|
|
19
|
+
|
|
20
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
21
|
+
|
|
22
|
+
CF_ASSUME_NONNULL_BEGIN
|
|
23
|
+
|
|
24
|
+
/* Line join styles. */
|
|
25
|
+
|
|
26
|
+
typedef CF_ENUM(int32_t, CGLineJoin) {
|
|
27
|
+
kCGLineJoinMiter,
|
|
28
|
+
kCGLineJoinRound,
|
|
29
|
+
kCGLineJoinBevel
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/* Line cap styles. */
|
|
33
|
+
|
|
34
|
+
typedef CF_ENUM(int32_t, CGLineCap) {
|
|
35
|
+
kCGLineCapButt,
|
|
36
|
+
kCGLineCapRound,
|
|
37
|
+
kCGLineCapSquare
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/* Return the CFTypeID for CGPathRefs. */
|
|
41
|
+
|
|
42
|
+
CG_EXTERN CFTypeID CGPathGetTypeID(void)
|
|
43
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
44
|
+
|
|
45
|
+
/* Create a mutable path. */
|
|
46
|
+
|
|
47
|
+
CG_EXTERN CGMutablePathRef CGPathCreateMutable(void)
|
|
48
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
49
|
+
|
|
50
|
+
/* Create a copy of `path'. */
|
|
51
|
+
|
|
52
|
+
CG_EXTERN CGPathRef __nullable CGPathCreateCopy(CGPathRef cg_nullable path)
|
|
53
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
54
|
+
|
|
55
|
+
/* Create a copy of `path' transformed by `transform'. */
|
|
56
|
+
|
|
57
|
+
CG_EXTERN CGPathRef __nullable CGPathCreateCopyByTransformingPath(
|
|
58
|
+
CGPathRef cg_nullable path, const CGAffineTransform * __nullable transform)
|
|
59
|
+
API_AVAILABLE(macos(10.7), ios(5.0));
|
|
60
|
+
|
|
61
|
+
/* Create a mutable copy of `path'. */
|
|
62
|
+
|
|
63
|
+
CG_EXTERN CGMutablePathRef __nullable CGPathCreateMutableCopy(
|
|
64
|
+
CGPathRef cg_nullable path)
|
|
65
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
66
|
+
|
|
67
|
+
/* Create a mutable copy of `path' transformed by `transform'. */
|
|
68
|
+
|
|
69
|
+
CG_EXTERN CGMutablePathRef __nullable CGPathCreateMutableCopyByTransformingPath(
|
|
70
|
+
CGPathRef cg_nullable path, const CGAffineTransform * __nullable transform)
|
|
71
|
+
API_AVAILABLE(macos(10.7), ios(5.0));
|
|
72
|
+
|
|
73
|
+
/* Return a path representing a rectangle bounded by `rect'. The rectangle
|
|
74
|
+
forms a complete subpath of the path --- that is, it begins with a "move
|
|
75
|
+
to" and ends with a "close subpath" --- oriented in the clockwise
|
|
76
|
+
direction. If `transform' is non-NULL, then the lines representing the
|
|
77
|
+
rectangle will be transformed by `transform' before they are added to the
|
|
78
|
+
path. */
|
|
79
|
+
|
|
80
|
+
CG_EXTERN CGPathRef CGPathCreateWithRect(CGRect rect,
|
|
81
|
+
const CGAffineTransform * __nullable transform)
|
|
82
|
+
API_AVAILABLE(macos(10.5), ios(4.0));
|
|
83
|
+
|
|
84
|
+
/* Return a path representing an ellipse bounded by `rect'. The ellipse is
|
|
85
|
+
approximated by a sequence of Bézier curves. The center of the ellipse is
|
|
86
|
+
the midpoint of `rect'. If `rect' is square, then the ellipse will be
|
|
87
|
+
circular with radius equal to one-half the width (equivalently, one-half
|
|
88
|
+
the height) of `rect'. If `rect' is rectangular, then the major- and
|
|
89
|
+
minor-axes will be the `width' and `height' of rect. The ellipse forms a
|
|
90
|
+
complete subpath of the path --- that is, it begins with a "move to" and
|
|
91
|
+
ends with a "close subpath" --- oriented in the clockwise direction. If
|
|
92
|
+
`transform' is non-NULL, then the constructed Bézier curves representing
|
|
93
|
+
the ellipse will be transformed by `transform' before they are added to
|
|
94
|
+
the path. */
|
|
95
|
+
|
|
96
|
+
CG_EXTERN CGPathRef CGPathCreateWithEllipseInRect(CGRect rect,
|
|
97
|
+
const CGAffineTransform * __nullable transform)
|
|
98
|
+
API_AVAILABLE(macos(10.7), ios(5.0));
|
|
99
|
+
|
|
100
|
+
/* Return a path representing a rounded rectangle. The rounded rectangle
|
|
101
|
+
coincides with the edges of `rect'. Each corner is consists of
|
|
102
|
+
one-quarter of an ellipse with axes equal to `cornerWidth' and
|
|
103
|
+
`cornerHeight'. The rounded rectangle forms a complete subpath of the
|
|
104
|
+
path --- that is, it begins with a "move to" and ends with a "close
|
|
105
|
+
subpath" --- oriented in the clockwise direction. If `transform' is
|
|
106
|
+
non-NULL, then the path elements representing the rounded rectangle will
|
|
107
|
+
be transformed by `transform' before they are added to the path. */
|
|
108
|
+
|
|
109
|
+
CG_EXTERN CGPathRef CGPathCreateWithRoundedRect(CGRect rect,
|
|
110
|
+
CGFloat cornerWidth, CGFloat cornerHeight,
|
|
111
|
+
const CGAffineTransform * __nullable transform)
|
|
112
|
+
API_AVAILABLE(macos(10.9), ios(7.0));
|
|
113
|
+
|
|
114
|
+
/* Add a rounded rectangle to `path'. The rounded rectangle coincides with
|
|
115
|
+
the edges of `rect'. Each corner is consists of one-quarter of an ellipse
|
|
116
|
+
with axes equal to `cornerWidth' and `cornerHeight'. The rounded
|
|
117
|
+
rectangle forms a complete subpath of the path --- that is, it begins
|
|
118
|
+
with a "move to" and ends with a "close subpath" --- oriented in the
|
|
119
|
+
clockwise direction. If `transform' is non-NULL, then the path elements
|
|
120
|
+
representing the rounded rectangle will be transformed by `transform'
|
|
121
|
+
before they are added to the path. */
|
|
122
|
+
|
|
123
|
+
CG_EXTERN void CGPathAddRoundedRect(CGMutablePathRef cg_nullable path,
|
|
124
|
+
const CGAffineTransform * __nullable transform, CGRect rect,
|
|
125
|
+
CGFloat cornerWidth, CGFloat cornerHeight)
|
|
126
|
+
API_AVAILABLE(macos(10.9), ios(7.0));
|
|
127
|
+
|
|
128
|
+
/* Create a dashed path from `path'. The parameters `phase', `lengths', and
|
|
129
|
+
`count' have the same meaning as the corresponding parameters for
|
|
130
|
+
`CGContextSetLineDash'. If `transform' is non-NULL, then the elements of
|
|
131
|
+
the constructed path will be transformed by `transform' before they are
|
|
132
|
+
added to the path. */
|
|
133
|
+
|
|
134
|
+
CG_EXTERN CGPathRef __nullable CGPathCreateCopyByDashingPath(
|
|
135
|
+
CGPathRef cg_nullable path, const CGAffineTransform * __nullable transform,
|
|
136
|
+
CGFloat phase, const CGFloat * __nullable lengths, size_t count)
|
|
137
|
+
API_AVAILABLE(macos(10.7), ios(5.0));
|
|
138
|
+
|
|
139
|
+
/* Create a stroked path from `path'. The parameters `lineWidth', `lineCap',
|
|
140
|
+
`lineJoin', and `miterLimit' have the same meaning as the corresponding
|
|
141
|
+
CGContext parameters. If `transform' is non-NULL, then the elements of
|
|
142
|
+
the constructed path will be transformed by `transform' before they are
|
|
143
|
+
added to the path. */
|
|
144
|
+
|
|
145
|
+
CG_EXTERN CGPathRef __nullable CGPathCreateCopyByStrokingPath(
|
|
146
|
+
CGPathRef cg_nullable path, const CGAffineTransform * __nullable transform,
|
|
147
|
+
CGFloat lineWidth, CGLineCap lineCap,
|
|
148
|
+
CGLineJoin lineJoin, CGFloat miterLimit)
|
|
149
|
+
API_AVAILABLE(macos(10.7), ios(5.0));
|
|
150
|
+
|
|
151
|
+
/* Equivalent to `CFRetain(path)', except it doesn't crash (as CFRetain
|
|
152
|
+
does) if `path' is NULL. */
|
|
153
|
+
|
|
154
|
+
CG_EXTERN CGPathRef cg_nullable CGPathRetain(CGPathRef cg_nullable path)
|
|
155
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
156
|
+
|
|
157
|
+
/* Equivalent to `CFRelease(path)', except it doesn't crash (as CFRelease
|
|
158
|
+
does) if `path' is NULL. */
|
|
159
|
+
|
|
160
|
+
CG_EXTERN void CGPathRelease(CGPathRef cg_nullable path)
|
|
161
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
162
|
+
|
|
163
|
+
/* Return true if `path1' is equal to `path2'; false otherwise. */
|
|
164
|
+
|
|
165
|
+
CG_EXTERN bool CGPathEqualToPath(CGPathRef cg_nullable path1,
|
|
166
|
+
CGPathRef cg_nullable path2)
|
|
167
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
168
|
+
|
|
169
|
+
/*** Path construction functions. ***/
|
|
170
|
+
|
|
171
|
+
/* Move the current point to `(x, y)' in `path' and begin a new subpath. If
|
|
172
|
+
`m' is non-NULL, then transform `(x, y)' by `m' first. */
|
|
173
|
+
|
|
174
|
+
CG_EXTERN void CGPathMoveToPoint(CGMutablePathRef cg_nullable path,
|
|
175
|
+
const CGAffineTransform * __nullable m, CGFloat x, CGFloat y)
|
|
176
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
177
|
+
|
|
178
|
+
/* Append a straight line segment from the current point to `(x, y)' in
|
|
179
|
+
`path' and move the current point to `(x, y)'. If `m' is non-NULL, then
|
|
180
|
+
transform `(x, y)' by `m' first. */
|
|
181
|
+
|
|
182
|
+
CG_EXTERN void CGPathAddLineToPoint(CGMutablePathRef cg_nullable path,
|
|
183
|
+
const CGAffineTransform * __nullable m, CGFloat x, CGFloat y)
|
|
184
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
185
|
+
|
|
186
|
+
/* Append a quadratic curve from the current point to `(x, y)' with control
|
|
187
|
+
point `(cpx, cpy)' in `path' and move the current point to `(x, y)'. If
|
|
188
|
+
`m' is non-NULL, then transform all points by `m' first. */
|
|
189
|
+
|
|
190
|
+
CG_EXTERN void CGPathAddQuadCurveToPoint(CGMutablePathRef cg_nullable path,
|
|
191
|
+
const CGAffineTransform *__nullable m, CGFloat cpx, CGFloat cpy,
|
|
192
|
+
CGFloat x, CGFloat y)
|
|
193
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
194
|
+
|
|
195
|
+
/* Append a cubic Bézier curve from the current point to `(x,y)' with
|
|
196
|
+
control points `(cp1x, cp1y)' and `(cp2x, cp2y)' in `path' and move the
|
|
197
|
+
current point to `(x, y)'. If `m' is non-NULL, then transform all points
|
|
198
|
+
by `m' first. */
|
|
199
|
+
|
|
200
|
+
CG_EXTERN void CGPathAddCurveToPoint(CGMutablePathRef cg_nullable path,
|
|
201
|
+
const CGAffineTransform * __nullable m, CGFloat cp1x, CGFloat cp1y,
|
|
202
|
+
CGFloat cp2x, CGFloat cp2y, CGFloat x, CGFloat y)
|
|
203
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
204
|
+
|
|
205
|
+
/* Append a line from the current point to the starting point of the current
|
|
206
|
+
subpath of `path' and end the subpath. */
|
|
207
|
+
|
|
208
|
+
CG_EXTERN void CGPathCloseSubpath(CGMutablePathRef cg_nullable path)
|
|
209
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
210
|
+
|
|
211
|
+
/*** Path construction convenience functions. ***/
|
|
212
|
+
|
|
213
|
+
/* Add `rect' to `path'. If `m' is non-NULL, then first transform `rect' by
|
|
214
|
+
`m' before adding it to `path'. */
|
|
215
|
+
|
|
216
|
+
CG_EXTERN void CGPathAddRect(CGMutablePathRef cg_nullable path,
|
|
217
|
+
const CGAffineTransform * __nullable m, CGRect rect)
|
|
218
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
219
|
+
|
|
220
|
+
/* Add each rectangle specified by `rects', an array of `count' CGRects, to
|
|
221
|
+
`path'. If `m' is non-NULL, then first transform each rectangle by `m'
|
|
222
|
+
before adding it to `path'. */
|
|
223
|
+
|
|
224
|
+
CG_EXTERN void CGPathAddRects(CGMutablePathRef cg_nullable path,
|
|
225
|
+
const CGAffineTransform * __nullable m, const CGRect * __nullable rects,
|
|
226
|
+
size_t count)
|
|
227
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
228
|
+
|
|
229
|
+
/* Move to the first element of `points', an array of `count' CGPoints, and
|
|
230
|
+
append a line from each point to the next point in `points'. If `m' is
|
|
231
|
+
non-NULL, then first transform each point by `m'. */
|
|
232
|
+
|
|
233
|
+
CG_EXTERN void CGPathAddLines(CGMutablePathRef cg_nullable path,
|
|
234
|
+
const CGAffineTransform * __nullable m, const CGPoint * __nullable points,
|
|
235
|
+
size_t count)
|
|
236
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
237
|
+
|
|
238
|
+
/* Add an ellipse (an oval) inside `rect' to `path'. The ellipse is
|
|
239
|
+
approximated by a sequence of Bézier curves. The center of the ellipse is
|
|
240
|
+
the midpoint of `rect'. If `rect' is square, then the ellipse will be
|
|
241
|
+
circular with radius equal to one-half the width (equivalently, one-half
|
|
242
|
+
the height) of `rect'. If `rect' is rectangular, then the major- and
|
|
243
|
+
minor-axes will be the `width' and `height' of rect. The ellipse forms a
|
|
244
|
+
complete subpath of `path' --- that is, it begins with a "move to" and
|
|
245
|
+
ends with a "close subpath" --- oriented in the clockwise direction. If
|
|
246
|
+
`m' is non-NULL, then the constructed Bézier curves representing the
|
|
247
|
+
ellipse will be transformed by `m' before they are added to `path'. */
|
|
248
|
+
|
|
249
|
+
CG_EXTERN void CGPathAddEllipseInRect(CGMutablePathRef cg_nullable path,
|
|
250
|
+
const CGAffineTransform * __nullable m, CGRect rect)
|
|
251
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
252
|
+
|
|
253
|
+
/* Add an arc of a circle to `path', possibly preceded by a straight line
|
|
254
|
+
segment. The arc is approximated by a sequence of Bézier curves. The
|
|
255
|
+
center of the arc is `(x,y)'; `radius' is its radius. `startAngle' is the
|
|
256
|
+
angle to the first endpoint of the arc, measured counter-clockwise from
|
|
257
|
+
the positive x-axis. `startAngle + delta' is the angle to the second
|
|
258
|
+
endpoint of the arc. If `delta' is positive, then the arc is drawn
|
|
259
|
+
counter-clockwise; if negative, clockwise. `startAngle' and `delta' are
|
|
260
|
+
measured in radians. If `matrix' is non-NULL, then the constructed Bézier
|
|
261
|
+
curves representing the arc will be transformed by `matrix' before they
|
|
262
|
+
are added to the path. */
|
|
263
|
+
|
|
264
|
+
CG_EXTERN void CGPathAddRelativeArc(CGMutablePathRef cg_nullable path,
|
|
265
|
+
const CGAffineTransform * __nullable matrix, CGFloat x, CGFloat y,
|
|
266
|
+
CGFloat radius, CGFloat startAngle, CGFloat delta)
|
|
267
|
+
API_AVAILABLE(macos(10.7), ios(5.0));
|
|
268
|
+
|
|
269
|
+
/* Add an arc of a circle to `path', possibly preceded by a straight line
|
|
270
|
+
segment. The arc is approximated by a sequence of Bézier curves. `(x, y)'
|
|
271
|
+
is the center of the arc; `radius' is its radius; `startAngle' is the
|
|
272
|
+
angle to the first endpoint of the arc; `endAngle' is the angle to the
|
|
273
|
+
second endpoint of the arc; and `clockwise' is true if the arc is to be
|
|
274
|
+
drawn clockwise, false otherwise. `startAngle' and `endAngle' are
|
|
275
|
+
measured in radians. If `m' is non-NULL, then the constructed Bézier
|
|
276
|
+
curves representing the arc will be transformed by `m' before they are
|
|
277
|
+
added to `path'.
|
|
278
|
+
|
|
279
|
+
Note that using values very near 2π can be problematic. For example,
|
|
280
|
+
setting `startAngle' to 0, `endAngle' to 2π, and `clockwise' to true will
|
|
281
|
+
draw nothing. (It's easy to see this by considering, instead of 0 and 2π,
|
|
282
|
+
the values ε and 2π - ε, where ε is very small.) Due to round-off error,
|
|
283
|
+
however, it's possible that passing the value `2 * M_PI' to approximate
|
|
284
|
+
2π will numerically equal to 2π + δ, for some small δ; this will cause a
|
|
285
|
+
full circle to be drawn.
|
|
286
|
+
|
|
287
|
+
If you want a full circle to be drawn clockwise, you should set
|
|
288
|
+
`startAngle' to 2π, `endAngle' to 0, and `clockwise' to true. This avoids
|
|
289
|
+
the instability problems discussed above. */
|
|
290
|
+
|
|
291
|
+
CG_EXTERN void CGPathAddArc(CGMutablePathRef cg_nullable path,
|
|
292
|
+
const CGAffineTransform * __nullable m,
|
|
293
|
+
CGFloat x, CGFloat y, CGFloat radius, CGFloat startAngle, CGFloat endAngle,
|
|
294
|
+
bool clockwise)
|
|
295
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
296
|
+
|
|
297
|
+
/* Add an arc of a circle to `path', possibly preceded by a straight line
|
|
298
|
+
segment. The arc is approximated by a sequence of Bézier curves. `radius'
|
|
299
|
+
is the radius of the arc. The resulting arc is tangent to the line from
|
|
300
|
+
the current point of `path' to `(x1, y1)', and the line from `(x1, y1)'
|
|
301
|
+
to `(x2, y2)'. If `m' is non-NULL, then the constructed Bézier curves
|
|
302
|
+
representing the arc will be transformed by `m' before they are added to
|
|
303
|
+
`path'. */
|
|
304
|
+
|
|
305
|
+
CG_EXTERN void CGPathAddArcToPoint(CGMutablePathRef cg_nullable path,
|
|
306
|
+
const CGAffineTransform * __nullable m, CGFloat x1, CGFloat y1,
|
|
307
|
+
CGFloat x2, CGFloat y2, CGFloat radius)
|
|
308
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
309
|
+
|
|
310
|
+
/* Add `path2' to `path1'. If `m' is non-NULL, then the points in `path2'
|
|
311
|
+
will be transformed by `m' before they are added to `path1'. */
|
|
312
|
+
|
|
313
|
+
CG_EXTERN void CGPathAddPath(CGMutablePathRef cg_nullable path1,
|
|
314
|
+
const CGAffineTransform * __nullable m, CGPathRef cg_nullable path2)
|
|
315
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
316
|
+
|
|
317
|
+
/*** Path information functions. ***/
|
|
318
|
+
|
|
319
|
+
/* Return true if `path' contains no elements, false otherwise. */
|
|
320
|
+
|
|
321
|
+
CG_EXTERN bool CGPathIsEmpty(CGPathRef cg_nullable path)
|
|
322
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
323
|
+
|
|
324
|
+
/* Return true if `path' represents a rectangle, false otherwise. */
|
|
325
|
+
|
|
326
|
+
CG_EXTERN bool CGPathIsRect(CGPathRef cg_nullable path, CGRect * __nullable rect)
|
|
327
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
328
|
+
|
|
329
|
+
/* Return the current point of the current subpath of `path'. If there is no
|
|
330
|
+
current point, then return CGPointZero. */
|
|
331
|
+
|
|
332
|
+
CG_EXTERN CGPoint CGPathGetCurrentPoint(CGPathRef cg_nullable path)
|
|
333
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
334
|
+
|
|
335
|
+
/* Return the bounding box of `path'. The bounding box is the smallest
|
|
336
|
+
rectangle completely enclosing all points in the path, including control
|
|
337
|
+
points for Bézier cubic and quadratic curves. If the path is empty, then
|
|
338
|
+
return `CGRectNull'. */
|
|
339
|
+
|
|
340
|
+
CG_EXTERN CGRect CGPathGetBoundingBox(CGPathRef cg_nullable path)
|
|
341
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
342
|
+
|
|
343
|
+
/* Return the path bounding box of `path'. The path bounding box is the
|
|
344
|
+
smallest rectangle completely enclosing all points in the path, *not*
|
|
345
|
+
including control points for Bézier cubic and quadratic curves. If the
|
|
346
|
+
path is empty, then return `CGRectNull'. */
|
|
347
|
+
|
|
348
|
+
CG_EXTERN CGRect CGPathGetPathBoundingBox(CGPathRef cg_nullable path)
|
|
349
|
+
API_AVAILABLE(macos(10.6), ios(4.0));
|
|
350
|
+
|
|
351
|
+
/* Return true if `point' is contained in `path'; false otherwise. A point
|
|
352
|
+
is contained in a path if it is inside the painted region when the path
|
|
353
|
+
is filled; if `eoFill' is true, then the even-odd fill rule is used to
|
|
354
|
+
evaluate the painted region of the path, otherwise, the winding-number
|
|
355
|
+
fill rule is used. If `m' is non-NULL, then the point is transformed by
|
|
356
|
+
`m' before determining whether the path contains it. */
|
|
357
|
+
|
|
358
|
+
CG_EXTERN bool CGPathContainsPoint(CGPathRef cg_nullable path,
|
|
359
|
+
const CGAffineTransform * __nullable m, CGPoint point, bool eoFill)
|
|
360
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
361
|
+
|
|
362
|
+
/* The types of path elements returned by `CGPathApply'. */
|
|
363
|
+
|
|
364
|
+
typedef CF_ENUM(int32_t, CGPathElementType) {
|
|
365
|
+
kCGPathElementMoveToPoint,
|
|
366
|
+
kCGPathElementAddLineToPoint,
|
|
367
|
+
kCGPathElementAddQuadCurveToPoint,
|
|
368
|
+
kCGPathElementAddCurveToPoint,
|
|
369
|
+
kCGPathElementCloseSubpath
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
/* An element of a path returned by `CGPathApply'. */
|
|
373
|
+
|
|
374
|
+
struct CGPathElement {
|
|
375
|
+
CGPathElementType type;
|
|
376
|
+
CGPoint * points;
|
|
377
|
+
};
|
|
378
|
+
typedef struct CGPathElement CGPathElement;
|
|
379
|
+
|
|
380
|
+
/* The prototype for the function called by `CGPathApplyFunction'. */
|
|
381
|
+
|
|
382
|
+
typedef void (*CGPathApplierFunction)(void * __nullable info,
|
|
383
|
+
const CGPathElement * element);
|
|
384
|
+
|
|
385
|
+
/* For element of `path', call `function', passing it the path element and
|
|
386
|
+
`info'. */
|
|
387
|
+
|
|
388
|
+
CG_EXTERN void CGPathApply(CGPathRef cg_nullable path, void * __nullable info,
|
|
389
|
+
CGPathApplierFunction cg_nullable function)
|
|
390
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
391
|
+
|
|
392
|
+
typedef void (^CGPathApplyBlock)(const CGPathElement * element);
|
|
393
|
+
|
|
394
|
+
CG_EXTERN void CGPathApplyWithBlock(CGPathRef path, CGPathApplyBlock CF_NOESCAPE block)
|
|
395
|
+
API_AVAILABLE(macos(10.13), ios(11.0));
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
/* Returns a new weakly-simple path without self-intersections and with a normalized orientation. Filling the resulting path using even-odd or non-zero filling is identical. */
|
|
399
|
+
|
|
400
|
+
CG_EXTERN CGPathRef __nullable CGPathCreateCopyByNormalizing(CGPathRef cg_nullable path, bool evenOddFillRule) API_AVAILABLE(macos(13.0), ios(16.0));
|
|
401
|
+
|
|
402
|
+
/* Returns a new path created by unioning `path` and `maskPath`. Any unclosed subpaths in either path are assumed to be closed. Filling the resulting path using even-odd or non-zero filling is identical. */
|
|
403
|
+
|
|
404
|
+
CG_EXTERN CGPathRef __nullable CGPathCreateCopyByUnioningPath(CGPathRef cg_nullable path, CGPathRef cg_nullable maskPath, bool evenOddFillRule) API_AVAILABLE(macos(13.0), ios(16.0));
|
|
405
|
+
|
|
406
|
+
/* Returns a new path created by intersecting `path` and `maskPath`. Any unclosed subpaths in either path are assumed to be closed. Filling the resulting path using even-odd or non-zero filling is identical. */
|
|
407
|
+
|
|
408
|
+
CG_EXTERN CGPathRef __nullable CGPathCreateCopyByIntersectingPath(CGPathRef cg_nullable path, CGPathRef cg_nullable maskPath, bool evenOddFillRule) API_AVAILABLE(macos(13.0), ios(16.0));
|
|
409
|
+
|
|
410
|
+
/* Returns a new path created by subtracting `maskPath` from `path`. Any unclosed subpaths in either path are assumed to be closed. Filling the resulting path using even-odd or non-zero filling is identical. */
|
|
411
|
+
|
|
412
|
+
CG_EXTERN CGPathRef __nullable CGPathCreateCopyBySubtractingPath(CGPathRef cg_nullable path, CGPathRef cg_nullable maskPath, bool evenOddFillRule) API_AVAILABLE(macos(13.0), ios(16.0));
|
|
413
|
+
|
|
414
|
+
/* Returns a new path created by exclusive or-ing `path` and `maskPath`. Any unclosed subpaths in either path are assumed to be closed. Filling the resulting path using even-odd or non-zero filling is identical. */
|
|
415
|
+
|
|
416
|
+
CG_EXTERN CGPathRef __nullable CGPathCreateCopyBySymmetricDifferenceOfPath(CGPathRef cg_nullable path, CGPathRef cg_nullable maskPath, bool evenOddFillRule) API_AVAILABLE(macos(13.0), ios(16.0));
|
|
417
|
+
|
|
418
|
+
/* Returns a new path created by subtracting the `maskPath` from the line of `path` with the fill of `maskPath`. This returns a potentially open path. */
|
|
419
|
+
|
|
420
|
+
CG_EXTERN CGPathRef __nullable CGPathCreateCopyOfLineBySubtractingPath(CGPathRef cg_nullable path, CGPathRef cg_nullable maskPath, bool evenOddFillRule) API_AVAILABLE(macos(13.0), ios(16.0));
|
|
421
|
+
|
|
422
|
+
/* Returns a new path created by intersecting the line of `path` and the fill of `maskPath`. This returns a potentially open path. */
|
|
423
|
+
|
|
424
|
+
CG_EXTERN CGPathRef __nullable CGPathCreateCopyOfLineByIntersectingPath(CGPathRef cg_nullable path, CGPathRef cg_nullable maskPath, bool evenOddFillRule) API_AVAILABLE(macos(13.0), ios(16.0));
|
|
425
|
+
|
|
426
|
+
/* Return an array of the visually separated components of a path. */
|
|
427
|
+
|
|
428
|
+
CG_EXTERN CFArrayRef __nullable CGPathCreateSeparateComponents(CGPathRef cg_nullable path, bool evenOddFillRule) API_AVAILABLE(macos(13.0), ios(16.0));
|
|
429
|
+
|
|
430
|
+
/* Returns a new path that is flattened, converting all curved line segments into straight line approximations. The granularity of the approximations is controlled by `flatteningThreshold` the maximum error tolerance (measured in points) for curves. */
|
|
431
|
+
|
|
432
|
+
CG_EXTERN CGPathRef __nullable CGPathCreateCopyByFlattening(CGPathRef cg_nullable path, CGFloat flatteningThreshold) API_AVAILABLE(macos(13.0), ios(16.0));
|
|
433
|
+
|
|
434
|
+
/* Returns true if path1 and path2 overlap. */
|
|
435
|
+
CG_EXTERN bool CGPathIntersectsPath(CGPathRef cg_nullable path1, CGPathRef cg_nullable path2, bool evenOddFillRule) API_AVAILABLE(macos(13.0), ios(16.0));
|
|
436
|
+
|
|
437
|
+
CF_ASSUME_NONNULL_END
|
|
438
|
+
|
|
439
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
440
|
+
|
|
441
|
+
#endif /* CGPATH_H_ */
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* CoreGraphics - CGPattern.h
|
|
2
|
+
Copyright (c) 2000-2011 Apple Inc.
|
|
3
|
+
All rights reserved. */
|
|
4
|
+
|
|
5
|
+
#ifndef CGPATTERN_H_
|
|
6
|
+
#define CGPATTERN_H_
|
|
7
|
+
|
|
8
|
+
#include <CoreFoundation/CFBase.h>
|
|
9
|
+
|
|
10
|
+
typedef struct CF_BRIDGED_TYPE(id) CGPattern *CGPatternRef;
|
|
11
|
+
|
|
12
|
+
#include <CoreGraphics/CGBase.h>
|
|
13
|
+
#include <CoreGraphics/CGContext.h>
|
|
14
|
+
#include <CoreFoundation/CFAvailability.h>
|
|
15
|
+
#include <stdint.h>
|
|
16
|
+
|
|
17
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
18
|
+
|
|
19
|
+
CF_ASSUME_NONNULL_BEGIN
|
|
20
|
+
|
|
21
|
+
/* kCGPatternTilingNoDistortion: The pattern cell is not distorted when
|
|
22
|
+
painted, however the spacing between pattern cells may vary by as much as
|
|
23
|
+
1 device pixel.
|
|
24
|
+
|
|
25
|
+
kCGPatternTilingConstantSpacingMinimalDistortion: Pattern cells are
|
|
26
|
+
spaced consistently, however the pattern cell may be distorted by as much
|
|
27
|
+
as 1 device pixel when the pattern is painted.
|
|
28
|
+
|
|
29
|
+
kCGPatternTilingConstantSpacing: Pattern cells are spaced consistently as
|
|
30
|
+
with kCGPatternTilingConstantSpacingMinimalDistortion, however the
|
|
31
|
+
pattern cell may be distorted additionally to permit a more efficient
|
|
32
|
+
implementation. */
|
|
33
|
+
|
|
34
|
+
typedef CF_ENUM (int32_t, CGPatternTiling) {
|
|
35
|
+
kCGPatternTilingNoDistortion,
|
|
36
|
+
kCGPatternTilingConstantSpacingMinimalDistortion,
|
|
37
|
+
kCGPatternTilingConstantSpacing
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/* The drawing of the pattern is delegated to the callbacks. The callbacks
|
|
41
|
+
may be called one or many times to draw the pattern.
|
|
42
|
+
`version' is the version number of the structure passed in as a
|
|
43
|
+
parameter to the CGPattern creation functions. The structure defined
|
|
44
|
+
below is version 0.
|
|
45
|
+
`drawPattern' should draw the pattern in the context `c'. `info' is the
|
|
46
|
+
parameter originally passed to the CGPattern creation functions.
|
|
47
|
+
`releaseInfo' is called when the pattern is deallocated. */
|
|
48
|
+
|
|
49
|
+
typedef void (*CGPatternDrawPatternCallback)(void * __nullable info,
|
|
50
|
+
CGContextRef cg_nullable context);
|
|
51
|
+
typedef void (*CGPatternReleaseInfoCallback)(void * __nullable info);
|
|
52
|
+
|
|
53
|
+
struct CGPatternCallbacks {
|
|
54
|
+
unsigned int version;
|
|
55
|
+
CGPatternDrawPatternCallback __nullable drawPattern;
|
|
56
|
+
CGPatternReleaseInfoCallback __nullable releaseInfo;
|
|
57
|
+
};
|
|
58
|
+
typedef struct CGPatternCallbacks CGPatternCallbacks;
|
|
59
|
+
|
|
60
|
+
/* Return the CFTypeID for CGPatternRefs. */
|
|
61
|
+
|
|
62
|
+
CG_EXTERN CFTypeID CGPatternGetTypeID(void)
|
|
63
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
64
|
+
|
|
65
|
+
/* Create a pattern. */
|
|
66
|
+
|
|
67
|
+
CG_EXTERN CGPatternRef __nullable CGPatternCreate(void * __nullable info,
|
|
68
|
+
CGRect bounds, CGAffineTransform matrix, CGFloat xStep, CGFloat yStep,
|
|
69
|
+
CGPatternTiling tiling, bool isColored,
|
|
70
|
+
const CGPatternCallbacks * cg_nullable callbacks)
|
|
71
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
72
|
+
|
|
73
|
+
/* Equivalent to `CFRetain(pattern)', except it doesn't crash (as CF does)
|
|
74
|
+
if `pattern' is NULL. */
|
|
75
|
+
|
|
76
|
+
CG_EXTERN CGPatternRef cg_nullable CGPatternRetain(CGPatternRef cg_nullable pattern)
|
|
77
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
78
|
+
|
|
79
|
+
/* Equivalent to `CFRelease(pattern)', except it doesn't crash (as CF does)
|
|
80
|
+
if `pattern' is NULL. */
|
|
81
|
+
|
|
82
|
+
CG_EXTERN void CGPatternRelease(CGPatternRef cg_nullable pattern)
|
|
83
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
84
|
+
|
|
85
|
+
CF_ASSUME_NONNULL_END
|
|
86
|
+
|
|
87
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
88
|
+
|
|
89
|
+
#endif /* CGPATTERN_H_ */
|