peachsim 0.1.1728 → 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 +68 -16
- package/cli/commands/coverage-swift.ts +112 -4
- 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 +33 -21
- package/cli/commands/push.ts +56 -0
- package/cli/commands/serve.ts +9 -0
- package/cli/commands/shell-url.ts +41 -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 +28 -7
- package/cli/ws-bridge.ts +3 -1
- package/detox/index.ts +18 -5
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +5 -2
- package/dist-lib/auth/shared-session.cjs +5 -2
- 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 +9932 -4561
- 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 +30 -8
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +6886 -3303
- package/dist-lib/expo-swift-metadata.cjs +14 -2
- package/dist-lib/expo-swift-metadata.mjs +14 -2
- package/dist-lib/home-paths.cjs +7 -2
- package/dist-lib/host/bridge-host.cjs +8513 -3085
- package/dist-lib/host/fetch-proxy-handler.cjs +19 -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 +175 -80
- 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 +209 -32
- package/dist-lib/menu.cjs +7 -1
- package/dist-lib/menu.mjs +7 -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 +146 -76
- package/dist-lib/native-app-identity-project.cjs +76 -39
- package/dist-lib/native-app-identity-project.mjs +76 -39
- 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 +5 -2
- 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 +138 -80
- package/dist-lib/react-native-host-modules.cjs +5 -2
- package/dist-lib/react-native-host-modules.mjs +5 -2
- 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 +41126 -36493
- package/dist-lib/swift-compile.cjs +2103 -444
- package/dist-lib/swift-compile.mjs +2025 -369
- 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 +84 -24
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +6094 -2687
- package/dist-lib/vite.cjs +32 -10
- 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/font-config.d.ts +7 -4
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -3
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +0 -5
- package/dist-types/packages/peach-engine/src/engine/memory-counts.d.ts +8 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +10 -1
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +2 -2
- 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 +6 -0
- package/dist-types/packages/peach-engine/src/engine/text-paragraph.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/native-preview-bundle.d.ts +2 -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 +15 -2
- 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 +6 -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 +14 -1
- 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 +8 -0
- package/kotlin/README.md +3 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +2 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccount.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountCredential.h +35 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountStore.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountType.h +53 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACError.h +37 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/Accounts.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/AccountsDefines.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Modules/module.modulemap +5 -0
- 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 +58 -9
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +992 -98
- 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/os/signpost.h +414 -0
- package/sdk/ios/usr/include/os.modulemap +5 -0
- package/sdk/ios/usr/include/sys/socketvar.h +191 -0
- package/sdk/ios/usr/include/sys/vsock.h +84 -0
- package/sdk/ios/wasm/include/errno.h +4 -20
- package/sdk/ios/wasm/include/pthread.h +3 -0
- package/sdk/ios/wasm/include/setjmp.h +57 -0
- package/sdk/ios/wasm/include/sys/resource.h +2 -2
- package/sdk/native-hashes.json +3 -3
- package/skills/contrast/SKILL.md +6 -5
- package/skills/peach-debug/SKILL.md +68 -265
- 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 -402
- 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 -217
- 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 -285
- 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 -106
- package/src/android-autolinking.ts +1 -0
- package/src/android-bridge-packages.ts +279 -0
- package/src/appPackageContract.ts +14 -1
- package/src/assetCatalogContract.ts +8 -1
- package/src/bridge-contract.ts +6 -0
- package/src/bundle-channel.mjs +152 -60
- package/src/cli-runtime.ts +3 -0
- package/src/configured-bundle-producer.ts +10 -0
- package/src/device-catalog.ts +68 -4
- package/src/expo-discovery-cache.ts +10 -3
- package/src/expo-kotlin-host.ts +97 -26
- package/src/expo-native-workspace.ts +211 -52
- package/src/expo-swift-host.ts +149 -123
- package/src/expo-swift-ready.ts +5 -1
- package/src/expo-widget-assets.ts +76 -0
- package/src/expoKotlinContract.ts +12 -2
- package/src/expoSwiftContract.ts +21 -2
- package/src/generated/swift-c-predefines.json +1 -1
- package/src/home-paths.ts +6 -1
- package/src/host/bridge-host.ts +5 -0
- package/src/host/fetch-proxy-handler.ts +10 -0
- package/src/host/websocket-proxy.ts +7 -2
- package/src/kotlin-host.ts +204 -30
- package/src/kotlinSdkContract.ts +2 -1
- package/src/menu.ts +7 -0
- package/src/native-prebuilt.ts +154 -0
- package/src/nitro-adapter.lock.json +261 -261
- package/src/nitro-adapter.ts +118 -50
- package/src/nitro-bundle.ts +134 -96
- package/src/nitro-compile.ts +16 -6
- package/src/nitro-dependencies.ts +43 -28
- package/src/nitro-source.ts +142 -30
- package/src/nitro-superset.lock.json +103 -0
- package/src/nitro-superset.ts +137 -0
- package/src/nitroAdapterContract.ts +146 -98
- package/src/nitroContract.ts +68 -21
- package/src/react-bridge-importers.ts +1 -0
- package/src/react-native-bridge-modules.ts +2 -0
- package/src/react-native-host-modules.ts +4 -1
- package/src/settingsContract.ts +37 -1
- package/src/storageSnapshotContract.ts +29 -81
- package/src/swift-compile.ts +315 -117
- package/src/swift-compiler-digest.ts +2 -0
- package/src/swift-coverage/indexdump.ts +22 -6
- package/src/swift-coverage/indexing.ts +4 -4
- package/src/swift-coverage/sdk.ts +104 -20
- package/src/swift-coverage/types.ts +34 -0
- package/src/swift-coverage/xcode-packages.ts +61 -1
- package/src/swift-coverage/xcode.ts +19 -13
- package/src/swift-cxx-reachable.ts +1 -1
- package/src/swift-distribution.lock.json +18 -13
- package/src/swift-distribution.ts +57 -26
- package/src/swift-host.ts +51 -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-standin-emit.ts +6 -1
- package/src/swift-standins.ts +403 -19
- package/src/swift-submit.ts +17 -1
- package/src/swift-toolchain.ts +98 -23
- package/src/swift-wasm-prune.ts +1629 -0
- package/src/turbo-bundle.ts +82 -0
- package/src/turbo-compile.ts +120 -0
- package/src/turbo-runtime.lock.json +69 -0
- package/src/turbo-source.ts +754 -0
- package/src/vite-plugin-one.ts +15 -3
- 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,409 @@
|
|
|
1
|
+
/* CoreGraphics - CGImage.h
|
|
2
|
+
* Copyright (c) 2000-2008 Apple Inc.
|
|
3
|
+
* All rights reserved. */
|
|
4
|
+
|
|
5
|
+
#ifndef CGIMAGE_H_
|
|
6
|
+
#define CGIMAGE_H_
|
|
7
|
+
|
|
8
|
+
#include <CoreFoundation/CFBase.h>
|
|
9
|
+
#include <CoreFoundation/CFAvailability.h>
|
|
10
|
+
#include <stdint.h>
|
|
11
|
+
|
|
12
|
+
typedef struct CF_BRIDGED_TYPE(id) CGImage *CGImageRef; /* Swift Sendable */
|
|
13
|
+
|
|
14
|
+
#include <CoreGraphics/CGColorSpace.h>
|
|
15
|
+
#include <CoreGraphics/CGDataProvider.h>
|
|
16
|
+
#include <CoreGraphics/CGGeometry.h>
|
|
17
|
+
|
|
18
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
19
|
+
|
|
20
|
+
CF_ASSUME_NONNULL_BEGIN
|
|
21
|
+
|
|
22
|
+
typedef CF_ENUM(uint32_t, CGImageAlphaInfo) {
|
|
23
|
+
kCGImageAlphaNone, /* For example, RGB. */
|
|
24
|
+
kCGImageAlphaPremultipliedLast, /* For example, premultiplied RGBA */
|
|
25
|
+
kCGImageAlphaPremultipliedFirst, /* For example, premultiplied ARGB */
|
|
26
|
+
kCGImageAlphaLast, /* For example, non-premultiplied RGBA */
|
|
27
|
+
kCGImageAlphaFirst, /* For example, non-premultiplied ARGB */
|
|
28
|
+
kCGImageAlphaNoneSkipLast, /* For example, RGBX. */
|
|
29
|
+
kCGImageAlphaNoneSkipFirst, /* For example, XRGB. */
|
|
30
|
+
kCGImageAlphaOnly /* No color data, alpha data only */
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
typedef CF_ENUM(uint32_t, CGImageComponentInfo) {
|
|
34
|
+
kCGImageComponentInteger = (0 << 8),
|
|
35
|
+
kCGImageComponentFloat = (1 << 8)
|
|
36
|
+
} API_AVAILABLE(macos(10.0), ios(2.0));
|
|
37
|
+
|
|
38
|
+
typedef CF_ENUM(uint32_t, CGImageByteOrderInfo) {
|
|
39
|
+
kCGImageByteOrderMask CG_SOFT_DEPRECATED_WITH_REPLACEMENT(kCGBitmapByteOrderInfoMask)
|
|
40
|
+
= 0x7000,
|
|
41
|
+
|
|
42
|
+
kCGImageByteOrderDefault = (0 << 12),
|
|
43
|
+
kCGImageByteOrder16Little = (1 << 12),
|
|
44
|
+
kCGImageByteOrder32Little = (2 << 12),
|
|
45
|
+
kCGImageByteOrder16Big = (3 << 12),
|
|
46
|
+
kCGImageByteOrder32Big = (4 << 12),
|
|
47
|
+
#ifdef __BIG_ENDIAN__
|
|
48
|
+
kCGImageByteOrder16Host = kCGImageByteOrder16Big,
|
|
49
|
+
kCGImageByteOrder32Host = kCGImageByteOrder32Big
|
|
50
|
+
#else
|
|
51
|
+
kCGImageByteOrder16Host = kCGImageByteOrder16Little,
|
|
52
|
+
kCGImageByteOrder32Host = kCGImageByteOrder32Little
|
|
53
|
+
#endif
|
|
54
|
+
} API_AVAILABLE(macos(10.0), ios(2.0));
|
|
55
|
+
|
|
56
|
+
typedef CF_ENUM(uint32_t, CGImagePixelFormatInfo) {
|
|
57
|
+
kCGImagePixelFormatMask CG_SOFT_DEPRECATED_WITH_REPLACEMENT(kCGBitmapPixelFormatInfoMask)
|
|
58
|
+
= 0xF0000,
|
|
59
|
+
|
|
60
|
+
kCGImagePixelFormatPacked = (0 << 16),
|
|
61
|
+
kCGImagePixelFormatRGB555 = (1 << 16), /* Only for RGB 16 bits per pixel, alpha != alpha none */
|
|
62
|
+
kCGImagePixelFormatRGB565 = (2 << 16), /* Only for RGB 16 bits per pixel, alpha none */
|
|
63
|
+
kCGImagePixelFormatRGB101010 = (3 << 16), /* Only for RGB 32 bits per pixel, alpha != none */
|
|
64
|
+
kCGImagePixelFormatRGBCIF10 = (4 << 16) /* Only for RGB 32 bits per pixel,
|
|
65
|
+
* 10 bits per component, kCGImageByteOrder32Little
|
|
66
|
+
* The 2 MSB of the pixel need to be set to 1 */
|
|
67
|
+
} API_AVAILABLE(macos(10.14), ios(12.0));
|
|
68
|
+
|
|
69
|
+
typedef CF_OPTIONS(uint32_t, CGBitmapInfo) {
|
|
70
|
+
kCGBitmapAlphaInfoMask = 0x1F,
|
|
71
|
+
kCGBitmapComponentInfoMask = 0xF00,
|
|
72
|
+
kCGBitmapByteOrderInfoMask = 0x7000,
|
|
73
|
+
kCGBitmapPixelFormatInfoMask = 0xF0000,
|
|
74
|
+
|
|
75
|
+
kCGBitmapFloatInfoMask CG_ENUM_SOFT_DEPRECATED_WITH_REPLACEMENT(kCGBitmapComponentInfoMask),
|
|
76
|
+
kCGBitmapByteOrderMask CG_ENUM_SOFT_DEPRECATED_WITH_REPLACEMENT(kCGBitmapByteOrderInfoMask),
|
|
77
|
+
|
|
78
|
+
kCGBitmapFloatComponents CG_ENUM_SOFT_DEPRECATED_WITH_REPLACEMENT(kCGImageComponentFloat),
|
|
79
|
+
kCGBitmapByteOrderDefault CG_ENUM_SOFT_DEPRECATED_WITH_REPLACEMENT(kCGImageByteOrderDefault),
|
|
80
|
+
kCGBitmapByteOrder16Little CG_ENUM_SOFT_DEPRECATED_WITH_REPLACEMENT(kCGImageByteOrder16Little),
|
|
81
|
+
kCGBitmapByteOrder32Little CG_ENUM_SOFT_DEPRECATED_WITH_REPLACEMENT(kCGImageByteOrder32Little),
|
|
82
|
+
kCGBitmapByteOrder16Big CG_ENUM_SOFT_DEPRECATED_WITH_REPLACEMENT(kCGImageByteOrder16Big),
|
|
83
|
+
kCGBitmapByteOrder32Big CG_ENUM_SOFT_DEPRECATED_WITH_REPLACEMENT(kCGImageByteOrder32Big)
|
|
84
|
+
} API_AVAILABLE(macos(10.0), ios(2.0));
|
|
85
|
+
|
|
86
|
+
static const CGBitmapInfo kCGBitmapByteOrder16Host CG_SOFT_DEPRECATED_WITH_REPLACEMENT(kCGImageByteOrder16Host) = (CGBitmapInfo)kCGImageByteOrder16Host;
|
|
87
|
+
static const CGBitmapInfo kCGBitmapByteOrder32Host CG_SOFT_DEPRECATED_WITH_REPLACEMENT(kCGImageByteOrder32Host) = (CGBitmapInfo)kCGImageByteOrder32Host;
|
|
88
|
+
|
|
89
|
+
CF_REFINED_FOR_SWIFT
|
|
90
|
+
API_AVAILABLE(macos(10.14), ios(12.0))
|
|
91
|
+
CG_INLINE CGBitmapInfo CGBitmapInfoMake(
|
|
92
|
+
CGImageAlphaInfo alpha,
|
|
93
|
+
CGImageComponentInfo component,
|
|
94
|
+
CGImageByteOrderInfo byteOrder,
|
|
95
|
+
CGImagePixelFormatInfo pixelFormat) {
|
|
96
|
+
return (CGBitmapInfo)(alpha | component | byteOrder | pixelFormat);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* Return the CFTypeID for CGImageRefs. */
|
|
100
|
+
|
|
101
|
+
CG_EXTERN CFTypeID CGImageGetTypeID(void)
|
|
102
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
103
|
+
|
|
104
|
+
/* Create an image. */
|
|
105
|
+
|
|
106
|
+
CG_EXTERN CGImageRef __nullable CGImageCreate(size_t width, size_t height,
|
|
107
|
+
size_t bitsPerComponent, size_t bitsPerPixel, size_t bytesPerRow,
|
|
108
|
+
CGColorSpaceRef cg_nullable space, CGBitmapInfo bitmapInfo,
|
|
109
|
+
CGDataProviderRef cg_nullable provider,
|
|
110
|
+
const CGFloat * __nullable decode, bool shouldInterpolate,
|
|
111
|
+
CGColorRenderingIntent intent)
|
|
112
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
113
|
+
|
|
114
|
+
/* Create an image mask. Legal values for bits per component are 1, 2, 4 and 8.
|
|
115
|
+
* Bits per pixel must be either the same as bits per component or 8, with
|
|
116
|
+
* exception of 8 bits per component where bits per pixel can be also 16 or 32.
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
CG_EXTERN CGImageRef __nullable CGImageMaskCreate(size_t width, size_t height,
|
|
120
|
+
size_t bitsPerComponent, size_t bitsPerPixel, size_t bytesPerRow,
|
|
121
|
+
CGDataProviderRef cg_nullable provider, const CGFloat * __nullable decode,
|
|
122
|
+
bool shouldInterpolate)
|
|
123
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
124
|
+
|
|
125
|
+
/* Return a copy of `image'. Only the image structure itself is copied; the
|
|
126
|
+
underlying data is not. */
|
|
127
|
+
|
|
128
|
+
CG_EXTERN CGImageRef __nullable CGImageCreateCopy(CGImageRef cg_nullable image)
|
|
129
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
130
|
+
|
|
131
|
+
/* Create an image from `source', a data provider of JPEG-encoded data. */
|
|
132
|
+
|
|
133
|
+
CG_EXTERN CGImageRef __nullable CGImageCreateWithJPEGDataProvider(
|
|
134
|
+
CGDataProviderRef cg_nullable source, const CGFloat * __nullable decode,
|
|
135
|
+
bool shouldInterpolate,
|
|
136
|
+
CGColorRenderingIntent intent)
|
|
137
|
+
API_AVAILABLE(macos(10.1), ios(2.0));
|
|
138
|
+
|
|
139
|
+
/* Create an image using `source', a data provider for PNG-encoded data. */
|
|
140
|
+
|
|
141
|
+
CG_EXTERN CGImageRef __nullable CGImageCreateWithPNGDataProvider(
|
|
142
|
+
CGDataProviderRef cg_nullable source, const CGFloat * __nullable decode,
|
|
143
|
+
bool shouldInterpolate,
|
|
144
|
+
CGColorRenderingIntent intent)
|
|
145
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
146
|
+
|
|
147
|
+
/* Create an image using the data contained within the subrectangle `rect'
|
|
148
|
+
of `image'.
|
|
149
|
+
|
|
150
|
+
The new image is created by
|
|
151
|
+
1) adjusting `rect' to integral bounds by calling "CGRectIntegral";
|
|
152
|
+
2) intersecting the result with a rectangle with origin (0, 0) and size
|
|
153
|
+
equal to the size of `image';
|
|
154
|
+
3) referencing the pixels within the resulting rectangle, treating the
|
|
155
|
+
first pixel of the image data as the origin of the image.
|
|
156
|
+
If the resulting rectangle is the null rectangle, this function returns
|
|
157
|
+
NULL.
|
|
158
|
+
|
|
159
|
+
If W and H are the width and height of image, respectively, then the
|
|
160
|
+
point (0,0) corresponds to the first pixel of the image data; the point
|
|
161
|
+
(W-1, 0) is the last pixel of the first row of the image data; (0, H-1)
|
|
162
|
+
is the first pixel of the last row of the image data; and (W-1, H-1) is
|
|
163
|
+
the last pixel of the last row of the image data.
|
|
164
|
+
|
|
165
|
+
The resulting image retains a reference to the original image, so you may
|
|
166
|
+
release the original image after calling this function. */
|
|
167
|
+
|
|
168
|
+
CG_EXTERN CGImageRef __nullable CGImageCreateWithImageInRect(
|
|
169
|
+
CGImageRef cg_nullable image, CGRect rect)
|
|
170
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
171
|
+
|
|
172
|
+
/* Create a new image from `image' masked by `mask', which may be an image
|
|
173
|
+
mask or an image.
|
|
174
|
+
|
|
175
|
+
If `mask' is an image mask, then it indicates which parts of the context
|
|
176
|
+
are to be painted with the image when drawn in a context, and which are
|
|
177
|
+
to be masked out (left unchanged). The source samples of the image mask
|
|
178
|
+
determine which areas are painted, acting as an "inverse alpha": if the
|
|
179
|
+
value of a source sample in the image mask is S, then the corresponding
|
|
180
|
+
region in `image' is blended with the destination using an alpha of
|
|
181
|
+
(1-S). (For example, if S is 1, then the region is not painted, while if
|
|
182
|
+
S is 0, the region is fully painted.)
|
|
183
|
+
|
|
184
|
+
If `mask' is an image, then it serves as alpha mask for blending the
|
|
185
|
+
image onto the destination. The source samples of `mask' determine which
|
|
186
|
+
areas are painted: if the value of the source sample in mask is S, then
|
|
187
|
+
the corresponding region in image is blended with the destination with an
|
|
188
|
+
alpha of S. (For example, if S is 0, then the region is not painted,
|
|
189
|
+
while if S is 1, the region is fully painted.)
|
|
190
|
+
|
|
191
|
+
The parameter `image' may not be an image mask and may not have an image
|
|
192
|
+
mask or masking color associated with it.
|
|
193
|
+
|
|
194
|
+
If `mask' is an image, then it must be in a monochrome color space
|
|
195
|
+
(e.g. DeviceGray, GenericGray, etc...), may not have alpha, and may not
|
|
196
|
+
itself be masked by an image mask or a masking color. */
|
|
197
|
+
|
|
198
|
+
CG_EXTERN CGImageRef __nullable CGImageCreateWithMask(
|
|
199
|
+
CGImageRef cg_nullable image, CGImageRef cg_nullable mask)
|
|
200
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
201
|
+
|
|
202
|
+
/* Create a new image from `image' masked by `components', an array of 2N
|
|
203
|
+
values { min[1], max[1], ... min[N], max[N] } where N is the number of
|
|
204
|
+
components in color space of `image'. Any image sample with color value
|
|
205
|
+
{c[1], ... c[N]} where min[i] <= c[i] <= max[i] for 1 <= i <= N is masked
|
|
206
|
+
out (that is, not painted).
|
|
207
|
+
|
|
208
|
+
Each value in `components' must be a valid image sample value: if `image'
|
|
209
|
+
has integral pixel components, then each value of must be in the range
|
|
210
|
+
[0..2**bitsPerComponent - 1] (where `bitsPerComponent' is the number of
|
|
211
|
+
bits/component of `image'); if `image' has floating-point pixel
|
|
212
|
+
components, then each value may be any floating-point number which is a
|
|
213
|
+
valid color component.
|
|
214
|
+
|
|
215
|
+
The parameter `image' may not be an image mask, and may not already have
|
|
216
|
+
an image mask or masking color associated with it. */
|
|
217
|
+
|
|
218
|
+
CG_EXTERN CGImageRef __nullable CGImageCreateWithMaskingColors(
|
|
219
|
+
CGImageRef cg_nullable image, const CGFloat * cg_nullable components)
|
|
220
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
221
|
+
|
|
222
|
+
/* Create a copy of `image', replacing the image's color space with `space'.
|
|
223
|
+
Returns NULL if `image' is an image mask, or if the number of components
|
|
224
|
+
of `space' isn't the same as the number of components of the color space
|
|
225
|
+
of `image'. */
|
|
226
|
+
|
|
227
|
+
CG_EXTERN CGImageRef __nullable CGImageCreateCopyWithColorSpace(
|
|
228
|
+
CGImageRef cg_nullable image, CGColorSpaceRef cg_nullable space)
|
|
229
|
+
API_AVAILABLE(macos(10.3), ios(2.0));
|
|
230
|
+
|
|
231
|
+
/* Create an image with specified content headroom. ColorSpace 'space' must be an
|
|
232
|
+
extended color space, PQ or HLG. In case of extended color spaces, image
|
|
233
|
+
components must be either 16-bit or 32-bit float. In case of PQ or HLG
|
|
234
|
+
color spaces, 16-bit or 32-bit float image components values will be
|
|
235
|
+
clipped to [0.0, 1.0] range, and other bit depths will be treated as
|
|
236
|
+
representing [0.0, 1.0] range, same as in the 'CGImageCreate' API.
|
|
237
|
+
The headroom parameter must be either equal 0.0f or be greater or equal 1.0f.
|
|
238
|
+
The headroom value of 0.0f means "headroom unknown".
|
|
239
|
+
The image with unknown content headroom will be excluded from tone mapping.
|
|
240
|
+
When justified, kCGDefaultHDRImageContentHeadroom which is a typical content
|
|
241
|
+
headroom for PQ and HLG images could be used to specify the content headroom.*/
|
|
242
|
+
|
|
243
|
+
CG_EXTERN CGImageRef __nullable CGImageCreateWithContentHeadroom(
|
|
244
|
+
float headroom,
|
|
245
|
+
size_t width, size_t height,
|
|
246
|
+
size_t bitsPerComponent, size_t bitsPerPixel, size_t bytesPerRow,
|
|
247
|
+
CGColorSpaceRef cg_nullable space, CGBitmapInfo bitmapInfo,
|
|
248
|
+
CGDataProviderRef cg_nullable provider,
|
|
249
|
+
const CGFloat * __nullable decode, bool shouldInterpolate,
|
|
250
|
+
CGColorRenderingIntent intent)
|
|
251
|
+
API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0));
|
|
252
|
+
|
|
253
|
+
/* Create a copy of `image' adding or replacing the image's content headroom.
|
|
254
|
+
Returns NULL if `image' is not using PQ, HLG or extended color space.
|
|
255
|
+
The headroom parameter must be either equal 0.0f or be greater or equal 1.0f.
|
|
256
|
+
The headroom value of 0.0f means "headroom unknown".
|
|
257
|
+
The image with unknown content headroom will be excluded from tone mapping.
|
|
258
|
+
When justified, kCGDefaultHDRImageContentHeadroom which is a typical content
|
|
259
|
+
headroom for PQ and HLG images could be used to specify the content headroom. */
|
|
260
|
+
|
|
261
|
+
CG_EXTERN CGImageRef __nullable CGImageCreateCopyWithContentHeadroom(
|
|
262
|
+
float headroom, CGImageRef cg_nullable image)
|
|
263
|
+
API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0));
|
|
264
|
+
|
|
265
|
+
CG_EXTERN float kCGDefaultHDRImageContentHeadroom
|
|
266
|
+
API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0));
|
|
267
|
+
|
|
268
|
+
/* Return image content headroom if it is contained in the image metadata, and return 0.0f if unknown. */
|
|
269
|
+
|
|
270
|
+
CG_EXTERN float CGImageGetContentHeadroom(CGImageRef cg_nullable image)
|
|
271
|
+
API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0));
|
|
272
|
+
|
|
273
|
+
/* Calculate the image content headroom, and return 0.0f if unknown. Please note that because of image immutability, the image metadata cannot be updated.
|
|
274
|
+
Use CGImageCreateCopyWithContentHeadroom if applicable. */
|
|
275
|
+
|
|
276
|
+
CG_EXTERN float CGImageCalculateContentHeadroom(CGImageRef cg_nullable image)
|
|
277
|
+
CF_SWIFT_NAME(getter:CGImage.calculatedContentHeadroom(self:))
|
|
278
|
+
API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0));
|
|
279
|
+
|
|
280
|
+
/* Return the image content average light level value normalized by the reference white if the content average light level is contained in the image metadata, and return 0.0f if unknown. */
|
|
281
|
+
|
|
282
|
+
CG_EXTERN float CGImageGetContentAverageLightLevel(CGImageRef cg_nullable image)
|
|
283
|
+
CF_SWIFT_NAME(getter:CGImage.contentAverageLightLevel(self:))
|
|
284
|
+
API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0));
|
|
285
|
+
|
|
286
|
+
/* Calculate the image content average light level value normalized by the reference white, and return 0.0f if unknown. Please note that because of image immutability, the image metadata cannot be updated.
|
|
287
|
+
Use CGImageCreateCopyWithContentAverageLightLevel if applicable. */
|
|
288
|
+
|
|
289
|
+
CG_EXTERN float CGImageCalculateContentAverageLightLevel(CGImageRef cg_nullable image)
|
|
290
|
+
CF_SWIFT_NAME(getter:CGImage.calculatedContentAverageLightLevel(self:))
|
|
291
|
+
API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0));
|
|
292
|
+
|
|
293
|
+
/* Create a copy of `image' adding or replacing the image's content average light level.
|
|
294
|
+
Returns NULL if `image' is not using color space of RGB model.
|
|
295
|
+
The `avll' parameter must be greater or equal 0.0f.
|
|
296
|
+
The value of 0.0f means "content average light level unknown". */
|
|
297
|
+
|
|
298
|
+
CG_EXTERN CGImageRef __nullable CGImageCreateCopyWithContentAverageLightLevel(CGImageRef cg_nullable image, float avll)
|
|
299
|
+
CF_SWIFT_NAME(CGImage.copy(self:contentAverageLightLevel:))
|
|
300
|
+
API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0));
|
|
301
|
+
|
|
302
|
+
CG_EXTERN CGImageRef __nullable CGImageCreateCopyWithCalculatedHDRStats(CGImageRef cg_nullable image)
|
|
303
|
+
CF_SWIFT_NAME(CGImage.copyWithCalculatedHDRStats(self:))
|
|
304
|
+
API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0));
|
|
305
|
+
|
|
306
|
+
/* Equivalent to `CFRetain(image)'. */
|
|
307
|
+
|
|
308
|
+
CG_EXTERN CGImageRef cg_nullable CGImageRetain(CGImageRef cg_nullable image)
|
|
309
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
310
|
+
|
|
311
|
+
/* Equivalent to `CFRelease(image)'. */
|
|
312
|
+
|
|
313
|
+
CG_EXTERN void CGImageRelease(CGImageRef cg_nullable image)
|
|
314
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
315
|
+
|
|
316
|
+
/* Return true if `image' is an image mask, false otherwise. */
|
|
317
|
+
|
|
318
|
+
CG_EXTERN bool CGImageIsMask(CGImageRef cg_nullable image)
|
|
319
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
320
|
+
|
|
321
|
+
/* Return the width of `image'. */
|
|
322
|
+
|
|
323
|
+
CG_EXTERN size_t CGImageGetWidth(CGImageRef cg_nullable image)
|
|
324
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
325
|
+
|
|
326
|
+
/* Return the height of `image'. */
|
|
327
|
+
|
|
328
|
+
CG_EXTERN size_t CGImageGetHeight(CGImageRef cg_nullable image)
|
|
329
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
330
|
+
|
|
331
|
+
/* Return the number of bits/component of `image'. */
|
|
332
|
+
|
|
333
|
+
CG_EXTERN size_t CGImageGetBitsPerComponent(CGImageRef cg_nullable image)
|
|
334
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
335
|
+
|
|
336
|
+
/* Return the number of bits/pixel of `image'. */
|
|
337
|
+
|
|
338
|
+
CG_EXTERN size_t CGImageGetBitsPerPixel(CGImageRef cg_nullable image)
|
|
339
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
340
|
+
|
|
341
|
+
/* Return the number of bytes/row of `image'. */
|
|
342
|
+
|
|
343
|
+
CG_EXTERN size_t CGImageGetBytesPerRow(CGImageRef cg_nullable image)
|
|
344
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
345
|
+
|
|
346
|
+
/* Return the color space of `image', or NULL if `image' is an image
|
|
347
|
+
mask. */
|
|
348
|
+
|
|
349
|
+
CG_EXTERN CGColorSpaceRef __nullable CGImageGetColorSpace(CGImageRef cg_nullable image)
|
|
350
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
351
|
+
|
|
352
|
+
/* Return the alpha info of `image'. */
|
|
353
|
+
|
|
354
|
+
CG_EXTERN CGImageAlphaInfo CGImageGetAlphaInfo(CGImageRef cg_nullable image)
|
|
355
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
356
|
+
|
|
357
|
+
/* Return the data provider of `image'. */
|
|
358
|
+
|
|
359
|
+
CG_EXTERN CGDataProviderRef __nullable CGImageGetDataProvider(CGImageRef cg_nullable image)
|
|
360
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
361
|
+
|
|
362
|
+
/* Return the decode array of `image'. */
|
|
363
|
+
|
|
364
|
+
CG_EXTERN const CGFloat * __nullable CGImageGetDecode(CGImageRef cg_nullable image)
|
|
365
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
366
|
+
|
|
367
|
+
/* Return the interpolation parameter of `image'. */
|
|
368
|
+
|
|
369
|
+
CG_EXTERN bool CGImageGetShouldInterpolate(CGImageRef cg_nullable image)
|
|
370
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
371
|
+
|
|
372
|
+
/* Return the rendering intent of `image'. */
|
|
373
|
+
|
|
374
|
+
CG_EXTERN CGColorRenderingIntent CGImageGetRenderingIntent(cg_nullable CGImageRef image)
|
|
375
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
376
|
+
|
|
377
|
+
/* Return the bitmap info of `image'. */
|
|
378
|
+
|
|
379
|
+
CG_EXTERN CGBitmapInfo CGImageGetBitmapInfo(CGImageRef cg_nullable image)
|
|
380
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
381
|
+
|
|
382
|
+
/* Return the byte order info of `image'. */
|
|
383
|
+
|
|
384
|
+
CG_EXTERN CGImageByteOrderInfo CGImageGetByteOrderInfo(CGImageRef cg_nullable image) API_AVAILABLE(macos(10.14), ios(12.0));
|
|
385
|
+
|
|
386
|
+
/* Return the pixel format of `image'. */
|
|
387
|
+
|
|
388
|
+
CG_EXTERN CGImagePixelFormatInfo CGImageGetPixelFormatInfo(CGImageRef cg_nullable image) API_AVAILABLE(macos(10.14), ios(12.0));
|
|
389
|
+
|
|
390
|
+
/* Return true if `image' should be tone mapped while rendering, false otherwise.
|
|
391
|
+
Tone mapping results depend on the receiving context.
|
|
392
|
+
*/
|
|
393
|
+
|
|
394
|
+
CG_EXTERN bool CGImageShouldToneMap(CGImageRef cg_nullable image) API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0));
|
|
395
|
+
|
|
396
|
+
/* Return true if `image' contains image specific tone mapping metadata, false otherwise. */
|
|
397
|
+
|
|
398
|
+
CG_EXTERN bool CGImageContainsImageSpecificToneMappingMetadata(CGImageRef cg_nullable image) API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0));
|
|
399
|
+
|
|
400
|
+
/* Return the UTType of `image'. */
|
|
401
|
+
|
|
402
|
+
CG_EXTERN CFStringRef __nullable CGImageGetUTType(cg_nullable CGImageRef image)
|
|
403
|
+
API_AVAILABLE(macos(10.11), ios(9.0));
|
|
404
|
+
|
|
405
|
+
CF_ASSUME_NONNULL_END
|
|
406
|
+
|
|
407
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
408
|
+
|
|
409
|
+
#endif /* CGIMAGE_H_ */
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* CoreGraphics - CGLayer.h
|
|
2
|
+
* Copyright (c) 2004-2008 Apple Inc.
|
|
3
|
+
* All rights reserved. */
|
|
4
|
+
|
|
5
|
+
#ifndef CGLAYER_H_
|
|
6
|
+
#define CGLAYER_H_
|
|
7
|
+
|
|
8
|
+
#include <CoreFoundation/CFBase.h>
|
|
9
|
+
#include <CoreFoundation/CFAvailability.h>
|
|
10
|
+
#include <stdint.h>
|
|
11
|
+
|
|
12
|
+
typedef struct CF_BRIDGED_TYPE(id) CGLayer *CGLayerRef;
|
|
13
|
+
|
|
14
|
+
#include <CoreGraphics/CGBase.h>
|
|
15
|
+
#include <CoreGraphics/CGContext.h>
|
|
16
|
+
|
|
17
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
18
|
+
|
|
19
|
+
CF_ASSUME_NONNULL_BEGIN
|
|
20
|
+
|
|
21
|
+
/* Create a layer of size `size' relative to the context `context'. The
|
|
22
|
+
value of `size' is specified in default user space (base space) units.
|
|
23
|
+
The parameter `auxiliaryInfo' should be NULL; it is reserved for future
|
|
24
|
+
expansion. */
|
|
25
|
+
|
|
26
|
+
CG_EXTERN CGLayerRef __nullable CGLayerCreateWithContext(
|
|
27
|
+
CGContextRef cg_nullable context,
|
|
28
|
+
CGSize size, CFDictionaryRef __nullable auxiliaryInfo)
|
|
29
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
30
|
+
|
|
31
|
+
/* Equivalent to `CFRetain(layer)', except it doesn't crash (as CFRetain
|
|
32
|
+
does) if `layer' is NULL. */
|
|
33
|
+
|
|
34
|
+
CG_EXTERN CGLayerRef cg_nullable CGLayerRetain(CGLayerRef cg_nullable layer)
|
|
35
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
36
|
+
|
|
37
|
+
/* Equivalent to `CFRelease(layer)', except it doesn't crash (as CFRelease
|
|
38
|
+
does) if `layer' is NULL. */
|
|
39
|
+
|
|
40
|
+
CG_EXTERN void CGLayerRelease(CGLayerRef cg_nullable layer)
|
|
41
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
42
|
+
|
|
43
|
+
/* Return the size of the layer `layer'. CGSizeZero if invalid `layer'. */
|
|
44
|
+
|
|
45
|
+
CG_EXTERN CGSize CGLayerGetSize(CGLayerRef cg_nullable layer)
|
|
46
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
47
|
+
|
|
48
|
+
/* Return the context of `layer'. */
|
|
49
|
+
|
|
50
|
+
CG_EXTERN CGContextRef __nullable CGLayerGetContext(CGLayerRef cg_nullable layer)
|
|
51
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
52
|
+
|
|
53
|
+
/* Draw the contents of `layer' into `rect' of `context'. The contents are
|
|
54
|
+
scaled, if necessary, to fit into `rect'; the rectangle `rect' is in user
|
|
55
|
+
space. */
|
|
56
|
+
|
|
57
|
+
CG_EXTERN void CGContextDrawLayerInRect(CGContextRef cg_nullable context,
|
|
58
|
+
CGRect rect, CGLayerRef cg_nullable layer)
|
|
59
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
60
|
+
|
|
61
|
+
/* Draw the contents of `layer' at `point' in `context'. This is equivalent
|
|
62
|
+
to calling "CGContextDrawLayerInRect" with a rectangle having origin at
|
|
63
|
+
`point' and size equal to the size of `layer'. */
|
|
64
|
+
|
|
65
|
+
CG_EXTERN void CGContextDrawLayerAtPoint(CGContextRef cg_nullable context,
|
|
66
|
+
CGPoint point, CGLayerRef cg_nullable layer)
|
|
67
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
68
|
+
|
|
69
|
+
/* Return the CFTypeID for CGLayerRefs. */
|
|
70
|
+
|
|
71
|
+
CG_EXTERN CFTypeID CGLayerGetTypeID(void)
|
|
72
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
73
|
+
|
|
74
|
+
CF_ASSUME_NONNULL_END
|
|
75
|
+
|
|
76
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
77
|
+
|
|
78
|
+
#endif /* CGLAYER_H_ */
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/* CoreGraphics - CGPDFArray.h
|
|
2
|
+
* Copyright (c) 2002-2008 Apple Inc.
|
|
3
|
+
* All rights reserved. */
|
|
4
|
+
|
|
5
|
+
#ifndef CGPDFARRAY_H_
|
|
6
|
+
#define CGPDFARRAY_H_
|
|
7
|
+
|
|
8
|
+
#include <CoreFoundation/CFBase.h>
|
|
9
|
+
#include <CoreFoundation/CFAvailability.h>
|
|
10
|
+
#include <stdint.h>
|
|
11
|
+
|
|
12
|
+
typedef struct CGPDFArray *CGPDFArrayRef __attribute__((swift_wrapper(struct)));
|
|
13
|
+
|
|
14
|
+
#include <CoreGraphics/CGPDFDictionary.h>
|
|
15
|
+
#include <CoreGraphics/CGPDFObject.h>
|
|
16
|
+
#include <CoreGraphics/CGPDFStream.h>
|
|
17
|
+
#include <CoreGraphics/CGPDFString.h>
|
|
18
|
+
|
|
19
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
20
|
+
|
|
21
|
+
CF_ASSUME_NONNULL_BEGIN
|
|
22
|
+
|
|
23
|
+
#/* Return the number of items in `array'. */
|
|
24
|
+
|
|
25
|
+
CG_EXTERN size_t CGPDFArrayGetCount(CGPDFArrayRef cg_nullable array)
|
|
26
|
+
API_AVAILABLE(macos(10.3), ios(2.0));
|
|
27
|
+
|
|
28
|
+
/* Look up the object at `index' in `array' and return the result in
|
|
29
|
+
`value'. Return true on success; false otherwise. */
|
|
30
|
+
|
|
31
|
+
CG_EXTERN bool CGPDFArrayGetObject(CGPDFArrayRef cg_nullable array, size_t index,
|
|
32
|
+
CGPDFObjectRef __nullable * __nullable value)
|
|
33
|
+
API_AVAILABLE(macos(10.3), ios(2.0));
|
|
34
|
+
|
|
35
|
+
/* Look up the object at `index' in `array' and, if it's a null, return
|
|
36
|
+
true; otherwise, return false. */
|
|
37
|
+
|
|
38
|
+
CG_EXTERN bool CGPDFArrayGetNull(CGPDFArrayRef cg_nullable array, size_t index)
|
|
39
|
+
API_AVAILABLE(macos(10.3), ios(2.0));
|
|
40
|
+
|
|
41
|
+
/* Look up the object at `index' in `array' and, if it's a boolean, return
|
|
42
|
+
the result in `value'. Return true on success; false otherwise. */
|
|
43
|
+
|
|
44
|
+
CG_EXTERN bool CGPDFArrayGetBoolean(CGPDFArrayRef cg_nullable array,
|
|
45
|
+
size_t index, CGPDFBoolean * __nullable value)
|
|
46
|
+
API_AVAILABLE(macos(10.3), ios(2.0));
|
|
47
|
+
|
|
48
|
+
/* Look up the object at `index' in `array' and, if it's an integer, return
|
|
49
|
+
the result in `value'. Return true on success; false otherwise. */
|
|
50
|
+
|
|
51
|
+
CG_EXTERN bool CGPDFArrayGetInteger(CGPDFArrayRef cg_nullable array,
|
|
52
|
+
size_t index, CGPDFInteger * __nullable value)
|
|
53
|
+
API_AVAILABLE(macos(10.3), ios(2.0));
|
|
54
|
+
|
|
55
|
+
/* Look up the object at `index' in `array' and, if it's a number (real or
|
|
56
|
+
integer), return the result in `value'. Return true on success; false
|
|
57
|
+
otherwise. */
|
|
58
|
+
|
|
59
|
+
CG_EXTERN bool CGPDFArrayGetNumber(CGPDFArrayRef cg_nullable array,
|
|
60
|
+
size_t index, CGPDFReal * __nullable value)
|
|
61
|
+
API_AVAILABLE(macos(10.3), ios(2.0));
|
|
62
|
+
|
|
63
|
+
/* Look up the object at `index' in `array' and, if it's a name, return the
|
|
64
|
+
result in `value'. Return true on success; false otherwise. */
|
|
65
|
+
|
|
66
|
+
CG_EXTERN bool CGPDFArrayGetName(CGPDFArrayRef cg_nullable array,
|
|
67
|
+
size_t index, const char * __nullable * __nullable value)
|
|
68
|
+
API_AVAILABLE(macos(10.3), ios(2.0));
|
|
69
|
+
|
|
70
|
+
/* Look up the object at `index' in `array' and, if it's a string, return
|
|
71
|
+
the result in `value'. Return true on success; false otherwise. */
|
|
72
|
+
|
|
73
|
+
CG_EXTERN bool CGPDFArrayGetString(CGPDFArrayRef cg_nullable array,
|
|
74
|
+
size_t index, CGPDFStringRef __nullable * __nullable value)
|
|
75
|
+
API_AVAILABLE(macos(10.3), ios(2.0));
|
|
76
|
+
|
|
77
|
+
/* Look up the object at `index' in `array' and, if it's an array, return it
|
|
78
|
+
in `value'. Return true on success; false otherwise. */
|
|
79
|
+
|
|
80
|
+
CG_EXTERN bool CGPDFArrayGetArray(CGPDFArrayRef cg_nullable array,
|
|
81
|
+
size_t index, CGPDFArrayRef __nullable * __nullable value)
|
|
82
|
+
API_AVAILABLE(macos(10.3), ios(2.0));
|
|
83
|
+
|
|
84
|
+
/* Look up the object at `index' in `array' and, if it's a dictionary,
|
|
85
|
+
return it in `value'. Return true on success; false otherwise. */
|
|
86
|
+
|
|
87
|
+
CG_EXTERN bool CGPDFArrayGetDictionary(CGPDFArrayRef cg_nullable array,
|
|
88
|
+
size_t index, CGPDFDictionaryRef __nullable * __nullable value)
|
|
89
|
+
API_AVAILABLE(macos(10.3), ios(2.0));
|
|
90
|
+
|
|
91
|
+
/* Look up the object at `index' in `array' and, if it's a stream, return it
|
|
92
|
+
in `value'. Return true on success; false otherwise. */
|
|
93
|
+
|
|
94
|
+
CG_EXTERN bool CGPDFArrayGetStream(CGPDFArrayRef cg_nullable array,
|
|
95
|
+
size_t index, CGPDFStreamRef __nullable * __nullable value)
|
|
96
|
+
API_AVAILABLE(macos(10.3), ios(2.0));
|
|
97
|
+
|
|
98
|
+
/* The block function for `CGPDFArrayApplyBlock'. `index' is the current
|
|
99
|
+
iterator index, `value' is the CGPDFObject at this index. If the block
|
|
100
|
+
returns true, the iteration of the array will continue, otherwise if
|
|
101
|
+
the block returns false, the iterator will stop and return early. */
|
|
102
|
+
|
|
103
|
+
typedef bool (^CGPDFArrayApplierBlock)(size_t index,
|
|
104
|
+
CGPDFObjectRef value, void * __nullable info);
|
|
105
|
+
|
|
106
|
+
/* Enumerate all of the objects in `array', calling the block-function `block' once
|
|
107
|
+
for each value in the array. Passes the current iterator index, the current
|
|
108
|
+
value, and `info' to `block'. If `block' returns true, iteration will continue
|
|
109
|
+
over all values. If `block' returns false, iteration will stop and return
|
|
110
|
+
early. */
|
|
111
|
+
|
|
112
|
+
CG_EXTERN void CGPDFArrayApplyBlock(CGPDFArrayRef cg_nullable array,
|
|
113
|
+
CF_NOESCAPE CGPDFArrayApplierBlock cg_nullable block, void * __nullable info)
|
|
114
|
+
API_AVAILABLE(macos(10.14), ios(12.0));
|
|
115
|
+
|
|
116
|
+
CF_ASSUME_NONNULL_END
|
|
117
|
+
|
|
118
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
119
|
+
|
|
120
|
+
#endif /* CGPDFARRAY_H_ */
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* CoreGraphics - CGPDFContentStream.h
|
|
2
|
+
Copyright (c) 2004-2011 Apple Inc.
|
|
3
|
+
All rights reserved. */
|
|
4
|
+
|
|
5
|
+
#ifndef CGPDFCONTENTSTREAM_H_
|
|
6
|
+
#define CGPDFCONTENTSTREAM_H_
|
|
7
|
+
|
|
8
|
+
typedef struct CGPDFContentStream *CGPDFContentStreamRef;
|
|
9
|
+
|
|
10
|
+
#include <CoreGraphics/CGPDFPage.h>
|
|
11
|
+
|
|
12
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
13
|
+
|
|
14
|
+
CF_ASSUME_NONNULL_BEGIN
|
|
15
|
+
|
|
16
|
+
/* Create a content stream from `page'. */
|
|
17
|
+
|
|
18
|
+
CG_EXTERN CGPDFContentStreamRef CGPDFContentStreamCreateWithPage(
|
|
19
|
+
CGPDFPageRef page) API_AVAILABLE(macos(10.4), ios(2.0));
|
|
20
|
+
|
|
21
|
+
/* Create a content stream from `stream'. */
|
|
22
|
+
|
|
23
|
+
CG_EXTERN CGPDFContentStreamRef CGPDFContentStreamCreateWithStream(
|
|
24
|
+
CGPDFStreamRef stream, CGPDFDictionaryRef streamResources,
|
|
25
|
+
CGPDFContentStreamRef cg_nullable parent)
|
|
26
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
27
|
+
|
|
28
|
+
/* Increment the retain count of `cs'. */
|
|
29
|
+
|
|
30
|
+
CG_EXTERN CGPDFContentStreamRef CGPDFContentStreamRetain(
|
|
31
|
+
CGPDFContentStreamRef cs) API_AVAILABLE(macos(10.4), ios(2.0));
|
|
32
|
+
|
|
33
|
+
/* Decrement the retain count of `cs'. */
|
|
34
|
+
|
|
35
|
+
CG_EXTERN void CGPDFContentStreamRelease(CGPDFContentStreamRef cs)
|
|
36
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
37
|
+
|
|
38
|
+
/* Return the array of CGPDFStreamRefs comprising the entire content stream
|
|
39
|
+
of `cs'. */
|
|
40
|
+
|
|
41
|
+
CG_EXTERN CFArrayRef __nullable CGPDFContentStreamGetStreams(CGPDFContentStreamRef cs)
|
|
42
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
43
|
+
|
|
44
|
+
/* Return the resource named `name' in category `category' of the resource
|
|
45
|
+
dictionaries of `cs'. */
|
|
46
|
+
|
|
47
|
+
CG_EXTERN CGPDFObjectRef __nullable CGPDFContentStreamGetResource(
|
|
48
|
+
CGPDFContentStreamRef cs, const char *category, const char *name)
|
|
49
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
50
|
+
|
|
51
|
+
CF_ASSUME_NONNULL_END
|
|
52
|
+
|
|
53
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
54
|
+
|
|
55
|
+
#endif /* CGPDFCONTENTSTREAM_H_ */
|