@nativescript/canvas 2.0.0-alpha.3 → 2.0.0-alpha.30
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/Canvas/common.d.ts +198 -25
- package/Canvas/common.js +660 -460
- package/Canvas/common.js.map +1 -1
- package/Canvas/index.android.d.ts +8 -0
- package/Canvas/index.android.js +129 -47
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.d.ts +12 -0
- package/Canvas/index.ios.d.ts +5 -0
- package/Canvas/index.ios.js +111 -52
- package/Canvas/index.ios.js.map +1 -1
- package/Canvas2D/CanvasGradient/index.d.ts +1 -3
- package/Canvas2D/CanvasGradient/index.js +1 -10
- package/Canvas2D/CanvasGradient/index.js.map +1 -1
- package/Canvas2D/CanvasPattern/index.d.ts +1 -3
- package/Canvas2D/CanvasPattern/index.js +1 -10
- package/Canvas2D/CanvasPattern/index.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.d.ts +1 -3
- package/Canvas2D/CanvasRenderingContext2D/index.js +104 -214
- package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -1
- package/Canvas2D/DOMMatrix/index.js +3 -3
- package/Canvas2D/DOMMatrix/index.js.map +1 -1
- package/Canvas2D/ImageData/index.js +6 -6
- package/Canvas2D/ImageData/index.js.map +1 -1
- package/Canvas2D/Path2D/index.d.ts +0 -2
- package/Canvas2D/Path2D/index.js +34 -39
- package/Canvas2D/Path2D/index.js.map +1 -1
- package/Dom/Paint.js +2 -3
- package/Dom/Paint.js.map +1 -1
- package/Dom/shapes/Circle.js +1 -2
- package/Dom/shapes/Circle.js.map +1 -1
- package/Dom/shapes/Points.js +1 -2
- package/Dom/shapes/Points.js.map +1 -1
- package/ImageAsset/index.d.ts +2 -2
- package/ImageAsset/index.js +33 -37
- package/ImageAsset/index.js.map +1 -1
- package/ImageBitmap/index.d.ts +0 -2
- package/ImageBitmap/index.js +47 -34
- package/ImageBitmap/index.js.map +1 -1
- package/LICENSE +201 -0
- package/SVG/SVG.js +1 -1
- package/SVG/SVG.js.map +1 -1
- package/TextDecoder/index.d.ts +0 -2
- package/TextDecoder/index.js +3 -12
- package/TextDecoder/index.js.map +1 -1
- package/TextEncoder/index.d.ts +0 -2
- package/TextEncoder/index.js +4 -13
- package/TextEncoder/index.js.map +1 -1
- package/WebGL/WebGLExtensions/index.d.ts +4 -12
- package/WebGL/WebGLExtensions/index.js +27 -77
- package/WebGL/WebGLExtensions/index.js.map +1 -1
- package/WebGL/WebGLProgram.d.ts +0 -1
- package/WebGL/WebGLProgram.js +0 -3
- package/WebGL/WebGLProgram.js.map +1 -1
- package/WebGL/WebGLRenderingContext/common.d.ts +0 -2
- package/WebGL/WebGLRenderingContext/common.js +0 -10
- package/WebGL/WebGLRenderingContext/common.js.map +1 -1
- package/WebGL/WebGLRenderingContext/index.d.ts +15 -15
- package/WebGL/WebGLRenderingContext/index.js +183 -578
- package/WebGL/WebGLRenderingContext/index.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/index.d.ts +1 -1
- package/WebGL2/WebGL2RenderingContext/index.js +109 -281
- package/WebGL2/WebGL2RenderingContext/index.js.map +1 -1
- package/angular/esm2020/index.mjs +4 -4
- package/angular/fesm2015/nativescript-canvas-angular.mjs +4 -4
- package/angular/fesm2020/nativescript-canvas-angular.mjs +4 -4
- package/angular/package.json +2 -2
- package/index.js.map +1 -1
- package/package.json +3 -2
- package/platforms/android/canvas-release.aar +0 -0
- package/platforms/android/include.gradle +15 -0
- package/platforms/ios/CanvasNative.xcframework/Info.plist +5 -5
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +136 -64
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +10 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h +142 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +2621 -68
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json +5685 -2366
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +41 -19
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +41 -19
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +272 -128
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +10 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h +142 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +2621 -68
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json +5685 -2366
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +41 -19
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +41 -19
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +5685 -2366
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +41 -19
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +41 -19
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +42 -31
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/Podfile +4 -1
- package/platforms/ios/build.xcconfig +3 -3
- package/platforms/ios/src/CanvasModule.h +0 -2
- package/platforms/ios/src/CanvasModule.mm +4 -4
- package/platforms/ios/src/NSOperationQueueWrapper.h +11 -0
- package/platforms/ios/src/NSOperationQueueWrapper.mm +74 -0
- package/platforms/ios/src/cpp/Caches.cpp +35 -0
- package/platforms/ios/src/cpp/Caches.h +186 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.cpp +1533 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.h +7 -34
- package/platforms/ios/src/cpp/Common.h +30 -0
- package/platforms/ios/src/cpp/ConcurrentMap.h +54 -0
- package/platforms/ios/src/cpp/Helpers.h +304 -36
- package/platforms/ios/src/cpp/ImageAssetImpl.cpp +802 -0
- package/platforms/ios/src/cpp/ImageAssetImpl.h +44 -12
- package/platforms/ios/src/cpp/ImageBitmapImpl.cpp +189 -0
- package/platforms/ios/src/cpp/ImageBitmapImpl.h +34 -16
- package/platforms/ios/src/cpp/JSICallback.h +61 -5
- package/platforms/ios/src/cpp/JSIReadFileCallback.h +86 -6
- package/platforms/ios/src/cpp/JSIRuntime.cpp +21 -0
- package/platforms/ios/src/cpp/JSIRuntime.h +7 -0
- package/platforms/ios/src/cpp/OneByteStringResource.cpp +49 -0
- package/platforms/ios/src/cpp/OneByteStringResource.h +32 -0
- package/platforms/ios/src/cpp/RafImpl.cpp +8 -0
- package/platforms/ios/src/cpp/RafImpl.h +11 -8
- package/platforms/ios/src/cpp/TextDecoderImpl.cpp +187 -0
- package/platforms/ios/src/cpp/TextDecoderImpl.h +20 -14
- package/platforms/ios/src/cpp/TextEncoderImpl.cpp +139 -0
- package/platforms/ios/src/cpp/TextEncoderImpl.h +20 -11
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.cpp +71 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +27 -13
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp +89 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +26 -13
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +2413 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +267 -16
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.cpp +203 -0
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +26 -12
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.cpp +806 -0
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +172 -13
- package/platforms/ios/src/cpp/canvas2d/Path2D.cpp +449 -0
- package/platforms/ios/src/cpp/canvas2d/Path2D.h +41 -12
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.cpp +253 -0
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +50 -12
- package/platforms/ios/src/cpp/gl.h +57 -7
- package/platforms/ios/src/cpp/gl3stub.c +425 -0
- package/platforms/ios/src/cpp/gl3stub.h +665 -0
- package/platforms/ios/src/cpp/gles3jni.h +37 -0
- package/platforms/ios/src/cpp/include/robin_hood.h +2544 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.cpp +91 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +33 -13
- package/platforms/ios/src/cpp/webgl/WebGLBuffer.h +41 -6
- package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +46 -10
- package/platforms/ios/src/cpp/webgl/WebGLProgram.h +40 -5
- package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +40 -6
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +6454 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +262 -390
- package/platforms/ios/src/cpp/webgl/{WebGLRenderingContextBase.mm → WebGLRenderingContextBase.cpp} +46 -24
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +17 -11
- package/platforms/ios/src/cpp/webgl/WebGLShader.h +40 -6
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.cpp +50 -0
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +66 -11
- package/platforms/ios/src/cpp/webgl/WebGLTexture.h +40 -6
- package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +44 -8
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.cpp +126 -0
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +25 -11
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.cpp +35 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.h +25 -5
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.cpp +41 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.h +25 -5
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.cpp +306 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +47 -13
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/EXT_shader_texture_lodImpl.h +37 -15
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +47 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h +51 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +44 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +38 -15
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +37 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +41 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +40 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.cpp +102 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +69 -14
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +51 -8
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +49 -8
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +76 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +57 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +53 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +59 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +46 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.cpp +35 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +127 -14
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.cpp +32 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +61 -12
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp +4375 -0
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +139 -343
- package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +40 -4
- package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +42 -3
- package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +44 -11
- package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +42 -4
- package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +43 -4
- package/platforms/ios/src/module.modulemap +1 -0
- package/src-native/ios/Headers/include/APIDesign.md +72 -0
- package/src-native/ios/Headers/include/DEPS +10 -0
- package/src-native/ios/Headers/include/DIR_METADATA +11 -0
- package/src-native/ios/Headers/include/OWNERS +23 -0
- package/src-native/ios/Headers/include/cppgc/DEPS +8 -0
- package/src-native/ios/Headers/include/cppgc/OWNERS +2 -0
- package/src-native/ios/Headers/include/cppgc/README.md +133 -0
- package/src-native/ios/Headers/include/cppgc/allocation.h +310 -0
- package/src-native/ios/Headers/include/cppgc/common.h +29 -0
- package/src-native/ios/Headers/include/cppgc/cross-thread-persistent.h +465 -0
- package/src-native/ios/Headers/include/cppgc/custom-space.h +97 -0
- package/src-native/ios/Headers/include/cppgc/default-platform.h +67 -0
- package/src-native/ios/Headers/include/cppgc/ephemeron-pair.h +30 -0
- package/src-native/ios/Headers/include/cppgc/explicit-management.h +100 -0
- package/src-native/ios/Headers/include/cppgc/garbage-collected.h +106 -0
- package/src-native/ios/Headers/include/cppgc/heap-consistency.h +266 -0
- package/src-native/ios/Headers/include/cppgc/heap-state.h +82 -0
- package/src-native/ios/Headers/include/cppgc/heap-statistics.h +120 -0
- package/src-native/ios/Headers/include/cppgc/heap.h +206 -0
- package/src-native/ios/Headers/include/cppgc/internal/api-constants.h +55 -0
- package/src-native/ios/Headers/include/cppgc/internal/atomic-entry-flag.h +48 -0
- package/src-native/ios/Headers/include/cppgc/internal/caged-heap-local-data.h +79 -0
- package/src-native/ios/Headers/include/cppgc/internal/compiler-specific.h +38 -0
- package/src-native/ios/Headers/include/cppgc/internal/finalizer-trait.h +93 -0
- package/src-native/ios/Headers/include/cppgc/internal/gc-info.h +156 -0
- package/src-native/ios/Headers/include/cppgc/internal/logging.h +50 -0
- package/src-native/ios/Headers/include/cppgc/internal/name-trait.h +122 -0
- package/src-native/ios/Headers/include/cppgc/internal/persistent-node.h +216 -0
- package/src-native/ios/Headers/include/cppgc/internal/pointer-policies.h +186 -0
- package/src-native/ios/Headers/include/cppgc/internal/write-barrier.h +435 -0
- package/src-native/ios/Headers/include/cppgc/liveness-broker.h +77 -0
- package/src-native/ios/Headers/include/cppgc/macros.h +26 -0
- package/src-native/ios/Headers/include/cppgc/member.h +291 -0
- package/src-native/ios/Headers/include/cppgc/name-provider.h +65 -0
- package/src-native/ios/Headers/include/cppgc/object-size-trait.h +58 -0
- package/src-native/ios/Headers/include/cppgc/persistent.h +370 -0
- package/src-native/ios/Headers/include/cppgc/platform.h +156 -0
- package/src-native/ios/Headers/include/cppgc/prefinalizer.h +75 -0
- package/src-native/ios/Headers/include/cppgc/process-heap-statistics.h +36 -0
- package/src-native/ios/Headers/include/cppgc/sentinel-pointer.h +32 -0
- package/src-native/ios/Headers/include/cppgc/source-location.h +92 -0
- package/src-native/ios/Headers/include/cppgc/testing.h +106 -0
- package/src-native/ios/Headers/include/cppgc/trace-trait.h +116 -0
- package/src-native/ios/Headers/include/cppgc/type-traits.h +240 -0
- package/src-native/ios/Headers/include/cppgc/visitor.h +379 -0
- package/src-native/ios/Headers/include/js_protocol-1.2.json +936 -0
- package/src-native/ios/Headers/include/js_protocol-1.3.json +1112 -0
- package/src-native/ios/Headers/include/js_protocol.pdl +1709 -0
- package/src-native/ios/Headers/include/libffi/arm64/ffi.h +524 -0
- package/src-native/ios/Headers/include/libffi/arm64/ffitarget.h +92 -0
- package/src-native/ios/Headers/include/libffi/x86_64/ffi.h +524 -0
- package/src-native/ios/Headers/include/libffi/x86_64/ffitarget.h +147 -0
- package/src-native/ios/Headers/include/libffi.h +12 -0
- package/src-native/ios/Headers/include/libplatform/DEPS +9 -0
- package/src-native/ios/Headers/include/libplatform/libplatform-export.h +29 -0
- package/src-native/ios/Headers/include/libplatform/libplatform.h +106 -0
- package/src-native/ios/Headers/include/libplatform/v8-tracing.h +333 -0
- package/src-native/ios/Headers/include/v8-array-buffer.h +433 -0
- package/src-native/ios/Headers/include/v8-callbacks.h +397 -0
- package/src-native/ios/Headers/include/v8-container.h +129 -0
- package/src-native/ios/Headers/include/v8-context.h +407 -0
- package/src-native/ios/Headers/include/v8-cppgc.h +215 -0
- package/src-native/ios/Headers/include/v8-data.h +80 -0
- package/src-native/ios/Headers/include/v8-date.h +43 -0
- package/src-native/ios/Headers/include/v8-debug.h +168 -0
- package/src-native/ios/Headers/include/v8-embedder-heap.h +218 -0
- package/src-native/ios/Headers/include/v8-embedder-state-scope.h +51 -0
- package/src-native/ios/Headers/include/v8-exception.h +217 -0
- package/src-native/ios/Headers/include/v8-extension.h +62 -0
- package/src-native/ios/Headers/include/v8-external.h +37 -0
- package/src-native/ios/Headers/include/v8-fast-api-calls.h +939 -0
- package/src-native/ios/Headers/include/v8-forward.h +81 -0
- package/src-native/ios/Headers/include/v8-function-callback.h +475 -0
- package/src-native/ios/Headers/include/v8-function.h +125 -0
- package/src-native/ios/Headers/include/v8-initialization.h +315 -0
- package/src-native/ios/Headers/include/v8-inspector-protocol.h +13 -0
- package/src-native/ios/Headers/include/v8-inspector.h +376 -0
- package/src-native/ios/Headers/include/v8-internal.h +661 -0
- package/src-native/ios/Headers/include/v8-isolate.h +1709 -0
- package/src-native/ios/Headers/include/v8-json.h +47 -0
- package/src-native/ios/Headers/include/v8-local-handle.h +455 -0
- package/src-native/ios/Headers/include/v8-locker.h +149 -0
- package/src-native/ios/Headers/include/v8-maybe.h +137 -0
- package/src-native/ios/Headers/include/v8-memory-span.h +43 -0
- package/src-native/ios/Headers/include/v8-message.h +216 -0
- package/src-native/ios/Headers/include/v8-metrics.h +255 -0
- package/src-native/ios/Headers/include/v8-microtask-queue.h +152 -0
- package/src-native/ios/Headers/include/v8-microtask.h +28 -0
- package/src-native/ios/Headers/include/v8-object.h +775 -0
- package/src-native/ios/Headers/include/v8-persistent-handle.h +590 -0
- package/src-native/ios/Headers/include/v8-platform.h +1092 -0
- package/src-native/ios/Headers/include/v8-primitive-object.h +118 -0
- package/src-native/ios/Headers/include/v8-primitive.h +866 -0
- package/src-native/ios/Headers/include/v8-profiler.h +1198 -0
- package/src-native/ios/Headers/include/v8-promise.h +174 -0
- package/src-native/ios/Headers/include/v8-proxy.h +50 -0
- package/src-native/ios/Headers/include/v8-regexp.h +105 -0
- package/src-native/ios/Headers/include/v8-script.h +748 -0
- package/src-native/ios/Headers/include/v8-snapshot.h +196 -0
- package/src-native/ios/Headers/include/v8-statistics.h +217 -0
- package/src-native/ios/Headers/include/v8-template.h +1079 -0
- package/src-native/ios/Headers/include/v8-traced-handle.h +420 -0
- package/src-native/ios/Headers/include/v8-typed-array.h +282 -0
- package/src-native/ios/Headers/include/v8-unwinder-state.h +31 -0
- package/src-native/ios/Headers/include/v8-unwinder.h +132 -0
- package/src-native/ios/Headers/include/v8-util.h +658 -0
- package/src-native/ios/Headers/include/v8-value-serializer-version.h +24 -0
- package/src-native/ios/Headers/include/v8-value-serializer.h +279 -0
- package/src-native/ios/Headers/include/v8-value.h +526 -0
- package/src-native/ios/Headers/include/v8-version-string.h +38 -0
- package/src-native/ios/Headers/include/v8-version.h +20 -0
- package/src-native/ios/Headers/include/v8-wasm-trap-handler-posix.h +31 -0
- package/src-native/ios/Headers/include/v8-wasm-trap-handler-win.h +28 -0
- package/src-native/ios/Headers/include/v8-wasm.h +257 -0
- package/src-native/ios/Headers/include/v8-weak-callback-info.h +86 -0
- package/src-native/ios/Headers/include/v8.h +88 -0
- package/src-native/ios/Headers/include/v8config.h +605 -0
- package/src-native/ios/Headers/inspector/InspectorServer.h +20 -0
- package/src-native/ios/Headers/inspector/JsV8InspectorClient.h +66 -0
- package/src-native/ios/Headers/inspector/base/trace_event/common/trace_event_common.h +1123 -0
- package/src-native/ios/Headers/inspector/base64.h +9 -0
- package/src-native/ios/Headers/inspector/src/base/address-region.h +95 -0
- package/src-native/ios/Headers/inspector/src/base/atomic-utils.h +219 -0
- package/src-native/ios/Headers/inspector/src/base/atomicops.h +332 -0
- package/src-native/ios/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +89 -0
- package/src-native/ios/Headers/inspector/src/base/base-export.h +31 -0
- package/src-native/ios/Headers/inspector/src/base/bits.h +343 -0
- package/src-native/ios/Headers/inspector/src/base/build_config.h +234 -0
- package/src-native/ios/Headers/inspector/src/base/compiler-specific.h +136 -0
- package/src-native/ios/Headers/inspector/src/base/export-template.h +163 -0
- package/src-native/ios/Headers/inspector/src/base/flags.h +130 -0
- package/src-native/ios/Headers/inspector/src/base/immediate-crash.h +162 -0
- package/src-native/ios/Headers/inspector/src/base/lazy-instance.h +258 -0
- package/src-native/ios/Headers/inspector/src/base/logging.h +417 -0
- package/src-native/ios/Headers/inspector/src/base/macros.h +423 -0
- package/src-native/ios/Headers/inspector/src/base/memory.h +89 -0
- package/src-native/ios/Headers/inspector/src/base/once.h +108 -0
- package/src-native/ios/Headers/inspector/src/base/optional.h +882 -0
- package/src-native/ios/Headers/inspector/src/base/platform/mutex.h +370 -0
- package/src-native/ios/Headers/inspector/src/base/platform/platform.h +476 -0
- package/src-native/ios/Headers/inspector/src/base/platform/semaphore.h +108 -0
- package/src-native/ios/Headers/inspector/src/base/platform/v8-time.h +513 -0
- package/src-native/ios/Headers/inspector/src/base/platform/wrappers.h +73 -0
- package/src-native/ios/Headers/inspector/src/base/safe_conversions.h +389 -0
- package/src-native/ios/Headers/inspector/src/base/safe_conversions_impl.h +822 -0
- package/src-native/ios/Headers/inspector/src/base/template-utils.h +113 -0
- package/src-native/ios/Headers/inspector/src/base/v8-fallthrough.h +21 -0
- package/src-native/ios/Headers/inspector/src/common/checks.h +38 -0
- package/src-native/ios/Headers/inspector/src/common/globals.h +1842 -0
- package/src-native/ios/Headers/inspector/src/debug/debug-interface.h +667 -0
- package/src-native/ios/Headers/inspector/src/debug/interface-types.h +175 -0
- package/src-native/ios/Headers/inspector/src/init/v8.h +52 -0
- package/src-native/ios/Headers/inspector/src/inspector/custom-preview.h +24 -0
- package/src-native/ios/Headers/inspector/src/inspector/injected-script.h +251 -0
- package/src-native/ios/Headers/inspector/src/inspector/inspected-context.h +79 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/CSS.h +2148 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Console.h +211 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/DOM.h +1008 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Debugger.h +892 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Forward.h +75 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/HeapProfiler.h +346 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Log.h +342 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Network.h +2528 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Overlay.h +281 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Page.h +1189 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Profiler.h +1001 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Protocol.h +617 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Runtime.h +1696 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Schema.h +146 -0
- package/src-native/ios/Headers/inspector/src/inspector/protocol/Security.h +793 -0
- package/src-native/ios/Headers/inspector/src/inspector/remote-object-id.h +54 -0
- package/src-native/ios/Headers/inspector/src/inspector/search-util.h +26 -0
- package/src-native/ios/Headers/inspector/src/inspector/string-16.h +180 -0
- package/src-native/ios/Headers/inspector/src/inspector/string-util.h +128 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-console-agent-impl.h +48 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-console-message.h +147 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-console.h +173 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-css-agent-impl.h +62 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +248 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-debugger-id.h +44 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-debugger-script.h +123 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-debugger.h +257 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-dom-agent-impl.h +91 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +80 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-inspector-impl.h +191 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-inspector-session-impl.h +156 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-log-agent-impl.h +34 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-network-agent-impl.h +71 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +24 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +70 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-page-agent-impl.h +88 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +104 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-regex.h +38 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +157 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-schema-agent-impl.h +38 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-stack-trace-impl.h +164 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-string-conversions.h +17 -0
- package/src-native/ios/Headers/inspector/src/inspector/v8-value-utils.h +23 -0
- package/src-native/ios/Headers/inspector/src/inspector/value-mirror.h +87 -0
- package/src-native/ios/Headers/inspector/src/libplatform/default-platform.h +92 -0
- package/src-native/ios/Headers/inspector/src/logging/tracing-flags.h +50 -0
- package/src-native/ios/Headers/inspector/src/numbers/conversions.h +183 -0
- package/src-native/ios/Headers/inspector/src/tracing/trace-event.h +664 -0
- package/src-native/ios/Headers/inspector/src/utils/allocation.h +367 -0
- package/src-native/ios/Headers/inspector/src/utils/vector.h +324 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +305 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +314 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +62 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +6 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +58 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +47 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +80 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +52 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +26 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +104 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +39 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +406 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +32 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +158 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +99 -0
- package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +139 -0
- package/src-native/ios/Headers/inspector/utils.h +32 -0
- package/src-native/ios/Headers/inspector/v8-inspector-platform.h +44 -0
- package/src-native/ios/Headers/runtime/ArgConverter.h +61 -0
- package/src-native/ios/Headers/runtime/ArrayAdapter.h +13 -0
- package/src-native/ios/Headers/runtime/Caches.h +98 -0
- package/src-native/ios/Headers/runtime/ClassBuilder.h +61 -0
- package/src-native/ios/Headers/runtime/Common.h +9 -0
- package/src-native/ios/Headers/runtime/ConcurrentMap.h +55 -0
- package/src-native/ios/Headers/runtime/ConcurrentQueue.h +28 -0
- package/src-native/ios/Headers/runtime/Console.h +27 -0
- package/src-native/ios/Headers/runtime/Constants.h +15 -0
- package/src-native/ios/Headers/runtime/DataWrapper.h +671 -0
- package/src-native/ios/Headers/runtime/DictionaryAdapter.h +13 -0
- package/src-native/ios/Headers/runtime/ExtVector.h +21 -0
- package/src-native/ios/Headers/runtime/FFICall.h +105 -0
- package/src-native/ios/Headers/runtime/FastEnumerationAdapter.h +13 -0
- package/src-native/ios/Headers/runtime/FunctionReference.h +18 -0
- package/src-native/ios/Headers/runtime/Helpers.h +84 -0
- package/src-native/ios/Headers/runtime/InlineFunctions.h +16 -0
- package/src-native/ios/Headers/runtime/Interop.h +202 -0
- package/src-native/ios/Headers/runtime/KnownUnknownClassPair.h +35 -0
- package/src-native/ios/Headers/runtime/Metadata.h +981 -0
- package/src-native/ios/Headers/runtime/MetadataBuilder.h +72 -0
- package/src-native/ios/Headers/runtime/MetadataInlines.h +157 -0
- package/src-native/ios/Headers/runtime/ModuleInternal.h +59 -0
- package/src-native/ios/Headers/runtime/NSDataAdapter.h +13 -0
- package/src-native/ios/Headers/runtime/NativeScriptException.h +27 -0
- package/src-native/ios/Headers/runtime/ObjectManager.h +31 -0
- package/src-native/ios/Headers/runtime/OneByteStringResource.h +21 -0
- package/src-native/ios/Headers/runtime/Pointer.h +26 -0
- package/src-native/ios/Headers/runtime/PromiseProxy.h +15 -0
- package/src-native/ios/Headers/runtime/Reference.h +38 -0
- package/src-native/ios/Headers/runtime/Runtime.h +67 -0
- package/src-native/ios/Headers/runtime/RuntimeConfig.h +17 -0
- package/src-native/ios/Headers/runtime/SetTimeout.h +34 -0
- package/src-native/ios/Headers/runtime/SimpleAllocator.h +23 -0
- package/src-native/ios/Headers/runtime/StringHasher.h +315 -0
- package/src-native/ios/Headers/runtime/SymbolIterator.h +18 -0
- package/src-native/ios/Headers/runtime/SymbolLoader.h +27 -0
- package/src-native/ios/Headers/runtime/TNSDerivedClass.h +8 -0
- package/src-native/ios/Headers/runtime/TSHelpers.h +15 -0
- package/src-native/ios/Headers/runtime/Tasks.h +19 -0
- package/src-native/ios/Headers/runtime/UnmanagedType.h +21 -0
- package/src-native/ios/Headers/runtime/WeakRef.h +15 -0
- package/src-native/ios/Headers/runtime/Worker.h +26 -0
- package/src-native/ios/Headers/runtime/robin_hood.h +2184 -0
- package/src-native/ios/NativeScript.podspec +55 -0
- package/typings/objc!CanvasNative.d.ts +2038 -0
- package/typings/objc!CanvasNative.js +1 -0
- package/typings/objc!CanvasNative.js.map +1 -0
- package/utils.d.ts +3 -1
- package/utils.js +7 -20
- package/utils.js.map +1 -1
- package/angular/nativescript-canvas-angular.d.ts +0 -5
- package/platforms/ios/src/cpp/CanvasJSIModule.mm +0 -1105
- package/platforms/ios/src/cpp/ImageAssetImpl.mm +0 -417
- package/platforms/ios/src/cpp/ImageBitmapImpl.mm +0 -126
- package/platforms/ios/src/cpp/RafImpl.mm +0 -10
- package/platforms/ios/src/cpp/TextDecoderImpl.mm +0 -97
- package/platforms/ios/src/cpp/TextEncoderImpl.mm +0 -60
- package/platforms/ios/src/cpp/VecMutableBuffer.h +0 -51
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.cc +0 -6119
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +0 -2854
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.mm +0 -42
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.mm +0 -49
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.mm +0 -1954
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.mm +0 -68
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.mm +0 -149
- package/platforms/ios/src/cpp/canvas2d/Path2D.mm +0 -335
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.mm +0 -68
- package/platforms/ios/src/cpp/rust/cxx.cc +0 -793
- package/platforms/ios/src/cpp/rust/cxx.h +0 -1111
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.mm +0 -39
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.mm +0 -5879
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.mm +0 -40
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.mm +0 -108
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.mm +0 -42
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.mm +0 -295
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.mm +0 -40
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.mm +0 -37
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.mm +0 -31
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.mm +0 -127
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.mm +0 -45
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.mm +0 -45
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.mm +0 -31
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.mm +0 -70
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.mm +0 -47
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.mm +0 -46
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.mm +0 -49
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.mm +0 -30
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.mm +0 -177
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.mm +0 -64
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.mm +0 -4554
- /package/platforms/ios/src/cpp/{OnRafCallback.mm → OnRafCallback.cpp} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#if 0
|
|
2
2
|
#elif defined(__arm64__) && __arm64__
|
|
3
|
-
// Generated by Apple Swift version 5.
|
|
3
|
+
// Generated by Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
|
|
4
4
|
#ifndef CANVASNATIVE_SWIFT_H
|
|
5
5
|
#define CANVASNATIVE_SWIFT_H
|
|
6
6
|
#pragma clang diagnostic push
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
# include <swift/objc-prologue.h>
|
|
24
24
|
#endif
|
|
25
25
|
|
|
26
|
-
#pragma clang diagnostic ignored "-Wduplicate-method-match"
|
|
27
26
|
#pragma clang diagnostic ignored "-Wauto-import"
|
|
28
27
|
#if defined(__OBJC__)
|
|
29
28
|
#include <Foundation/Foundation.h>
|
|
@@ -32,10 +31,24 @@
|
|
|
32
31
|
#include <cstdint>
|
|
33
32
|
#include <cstddef>
|
|
34
33
|
#include <cstdbool>
|
|
34
|
+
#include <cstring>
|
|
35
|
+
#include <stdlib.h>
|
|
36
|
+
#include <new>
|
|
37
|
+
#include <type_traits>
|
|
35
38
|
#else
|
|
36
39
|
#include <stdint.h>
|
|
37
40
|
#include <stddef.h>
|
|
38
41
|
#include <stdbool.h>
|
|
42
|
+
#include <string.h>
|
|
43
|
+
#endif
|
|
44
|
+
#if defined(__cplusplus)
|
|
45
|
+
#if __has_include(<ptrauth.h>)
|
|
46
|
+
# include <ptrauth.h>
|
|
47
|
+
#else
|
|
48
|
+
# ifndef __ptrauth_swift_value_witness_function_pointer
|
|
49
|
+
# define __ptrauth_swift_value_witness_function_pointer(x)
|
|
50
|
+
# endif
|
|
51
|
+
#endif
|
|
39
52
|
#endif
|
|
40
53
|
|
|
41
54
|
#if !defined(SWIFT_TYPEDEFS)
|
|
@@ -71,53 +84,66 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
71
84
|
# if __has_feature(objc_class_property)
|
|
72
85
|
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
|
73
86
|
# else
|
|
74
|
-
# define SWIFT_CLASS_PROPERTY(...)
|
|
87
|
+
# define SWIFT_CLASS_PROPERTY(...)
|
|
75
88
|
# endif
|
|
76
89
|
#endif
|
|
77
|
-
|
|
78
|
-
#if __has_attribute(objc_runtime_name)
|
|
79
|
-
#
|
|
80
|
-
#else
|
|
81
|
-
#
|
|
90
|
+
#if !defined(SWIFT_RUNTIME_NAME)
|
|
91
|
+
# if __has_attribute(objc_runtime_name)
|
|
92
|
+
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
|
93
|
+
# else
|
|
94
|
+
# define SWIFT_RUNTIME_NAME(X)
|
|
95
|
+
# endif
|
|
82
96
|
#endif
|
|
83
|
-
#if
|
|
84
|
-
#
|
|
85
|
-
#
|
|
86
|
-
#
|
|
97
|
+
#if !defined(SWIFT_COMPILE_NAME)
|
|
98
|
+
# if __has_attribute(swift_name)
|
|
99
|
+
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
|
100
|
+
# else
|
|
101
|
+
# define SWIFT_COMPILE_NAME(X)
|
|
102
|
+
# endif
|
|
87
103
|
#endif
|
|
88
|
-
#if
|
|
89
|
-
#
|
|
90
|
-
#
|
|
91
|
-
#
|
|
104
|
+
#if !defined(SWIFT_METHOD_FAMILY)
|
|
105
|
+
# if __has_attribute(objc_method_family)
|
|
106
|
+
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
|
107
|
+
# else
|
|
108
|
+
# define SWIFT_METHOD_FAMILY(X)
|
|
109
|
+
# endif
|
|
92
110
|
#endif
|
|
93
|
-
#if
|
|
94
|
-
#
|
|
95
|
-
#
|
|
96
|
-
#
|
|
111
|
+
#if !defined(SWIFT_NOESCAPE)
|
|
112
|
+
# if __has_attribute(noescape)
|
|
113
|
+
# define SWIFT_NOESCAPE __attribute__((noescape))
|
|
114
|
+
# else
|
|
115
|
+
# define SWIFT_NOESCAPE
|
|
116
|
+
# endif
|
|
97
117
|
#endif
|
|
98
|
-
#if
|
|
99
|
-
#
|
|
100
|
-
#
|
|
101
|
-
#
|
|
118
|
+
#if !defined(SWIFT_RELEASES_ARGUMENT)
|
|
119
|
+
# if __has_attribute(ns_consumed)
|
|
120
|
+
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
|
121
|
+
# else
|
|
122
|
+
# define SWIFT_RELEASES_ARGUMENT
|
|
123
|
+
# endif
|
|
102
124
|
#endif
|
|
103
|
-
#if
|
|
104
|
-
#
|
|
105
|
-
#
|
|
106
|
-
#
|
|
125
|
+
#if !defined(SWIFT_WARN_UNUSED_RESULT)
|
|
126
|
+
# if __has_attribute(warn_unused_result)
|
|
127
|
+
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
|
128
|
+
# else
|
|
129
|
+
# define SWIFT_WARN_UNUSED_RESULT
|
|
130
|
+
# endif
|
|
107
131
|
#endif
|
|
108
|
-
#if
|
|
109
|
-
#
|
|
110
|
-
#
|
|
111
|
-
#
|
|
132
|
+
#if !defined(SWIFT_NORETURN)
|
|
133
|
+
# if __has_attribute(noreturn)
|
|
134
|
+
# define SWIFT_NORETURN __attribute__((noreturn))
|
|
135
|
+
# else
|
|
136
|
+
# define SWIFT_NORETURN
|
|
137
|
+
# endif
|
|
112
138
|
#endif
|
|
113
139
|
#if !defined(SWIFT_CLASS_EXTRA)
|
|
114
|
-
# define SWIFT_CLASS_EXTRA
|
|
140
|
+
# define SWIFT_CLASS_EXTRA
|
|
115
141
|
#endif
|
|
116
142
|
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
|
117
|
-
# define SWIFT_PROTOCOL_EXTRA
|
|
143
|
+
# define SWIFT_PROTOCOL_EXTRA
|
|
118
144
|
#endif
|
|
119
145
|
#if !defined(SWIFT_ENUM_EXTRA)
|
|
120
|
-
# define SWIFT_ENUM_EXTRA
|
|
146
|
+
# define SWIFT_ENUM_EXTRA
|
|
121
147
|
#endif
|
|
122
148
|
#if !defined(SWIFT_CLASS)
|
|
123
149
|
# if __has_attribute(objc_subclassing_restricted)
|
|
@@ -137,28 +163,25 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
137
163
|
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
|
138
164
|
# endif
|
|
139
165
|
#endif
|
|
140
|
-
|
|
141
166
|
#if !defined(SWIFT_PROTOCOL)
|
|
142
167
|
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
143
168
|
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
144
169
|
#endif
|
|
145
|
-
|
|
146
170
|
#if !defined(SWIFT_EXTENSION)
|
|
147
171
|
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
|
148
172
|
#endif
|
|
149
|
-
|
|
150
173
|
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
|
151
174
|
# if __has_attribute(objc_designated_initializer)
|
|
152
175
|
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
|
153
176
|
# else
|
|
154
|
-
# define OBJC_DESIGNATED_INITIALIZER
|
|
177
|
+
# define OBJC_DESIGNATED_INITIALIZER
|
|
155
178
|
# endif
|
|
156
179
|
#endif
|
|
157
180
|
#if !defined(SWIFT_ENUM_ATTR)
|
|
158
|
-
# if
|
|
181
|
+
# if __has_attribute(enum_extensibility)
|
|
159
182
|
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
|
160
183
|
# else
|
|
161
|
-
# define SWIFT_ENUM_ATTR(_extensibility)
|
|
184
|
+
# define SWIFT_ENUM_ATTR(_extensibility)
|
|
162
185
|
# endif
|
|
163
186
|
#endif
|
|
164
187
|
#if !defined(SWIFT_ENUM)
|
|
@@ -187,14 +210,16 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
187
210
|
#if !defined(SWIFT_DEPRECATED_MSG)
|
|
188
211
|
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
|
189
212
|
#endif
|
|
190
|
-
#if
|
|
191
|
-
#
|
|
192
|
-
#
|
|
193
|
-
#
|
|
213
|
+
#if !defined(SWIFT_DEPRECATED_OBJC)
|
|
214
|
+
# if __has_feature(attribute_diagnose_if_objc)
|
|
215
|
+
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
|
|
216
|
+
# else
|
|
217
|
+
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
|
218
|
+
# endif
|
|
194
219
|
#endif
|
|
195
220
|
#if defined(__OBJC__)
|
|
196
221
|
#if !defined(IBSegueAction)
|
|
197
|
-
# define IBSegueAction
|
|
222
|
+
# define IBSegueAction
|
|
198
223
|
#endif
|
|
199
224
|
#endif
|
|
200
225
|
#if !defined(SWIFT_EXTERN)
|
|
@@ -207,26 +232,31 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
207
232
|
#if !defined(SWIFT_CALL)
|
|
208
233
|
# define SWIFT_CALL __attribute__((swiftcall))
|
|
209
234
|
#endif
|
|
235
|
+
#if !defined(SWIFT_INDIRECT_RESULT)
|
|
236
|
+
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
|
|
237
|
+
#endif
|
|
238
|
+
#if !defined(SWIFT_CONTEXT)
|
|
239
|
+
# define SWIFT_CONTEXT __attribute__((swift_context))
|
|
240
|
+
#endif
|
|
241
|
+
#if !defined(SWIFT_ERROR_RESULT)
|
|
242
|
+
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
|
|
243
|
+
#endif
|
|
210
244
|
#if defined(__cplusplus)
|
|
211
|
-
#if !defined(SWIFT_NOEXCEPT)
|
|
212
245
|
# define SWIFT_NOEXCEPT noexcept
|
|
213
|
-
#endif
|
|
214
246
|
#else
|
|
215
|
-
#if !defined(SWIFT_NOEXCEPT)
|
|
216
247
|
# define SWIFT_NOEXCEPT
|
|
217
248
|
#endif
|
|
249
|
+
#if defined(_WIN32)
|
|
250
|
+
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
251
|
+
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
|
|
218
252
|
#endif
|
|
219
|
-
#
|
|
220
|
-
#if !defined(
|
|
221
|
-
#define
|
|
222
|
-
namespace swift {
|
|
223
|
-
using Int = ptrdiff_t;
|
|
224
|
-
using UInt = size_t;
|
|
225
|
-
}
|
|
253
|
+
#else
|
|
254
|
+
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
255
|
+
# define SWIFT_IMPORT_STDLIB_SYMBOL
|
|
226
256
|
#endif
|
|
227
257
|
#endif
|
|
228
258
|
#if defined(__OBJC__)
|
|
229
|
-
#if __has_feature(
|
|
259
|
+
#if __has_feature(objc_modules)
|
|
230
260
|
#if __has_warning("-Watimport-in-framework-header")
|
|
231
261
|
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
232
262
|
#endif
|
|
@@ -281,17 +311,55 @@ SWIFT_CLASS_NAMED("CanvasGLKView")
|
|
|
281
311
|
- (nonnull instancetype)initWithFrame:(CGRect)frame context:(EAGLContext * _Nonnull)context SWIFT_UNAVAILABLE;
|
|
282
312
|
@end
|
|
283
313
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
@
|
|
314
|
+
@class UIImage;
|
|
315
|
+
@class NSMutableData;
|
|
316
|
+
@class NSString;
|
|
317
|
+
@class NSData;
|
|
318
|
+
@class NSError;
|
|
319
|
+
|
|
320
|
+
SWIFT_CLASS_NAMED("CanvasHelpers")
|
|
321
|
+
@interface NSSCanvasHelpers : NSObject
|
|
322
|
+
+ (NSMutableData * _Nonnull)getBytesFromUIImage:(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
|
|
323
|
+
+ (int64_t)createPattern:(int64_t)context :(UIImage * _Nonnull)image :(NSString * _Nonnull)repetition SWIFT_WARN_UNUSED_RESULT;
|
|
324
|
+
+ (BOOL)loadImageAssetWithContext:(int64_t)asset :(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
|
|
325
|
+
+ (void)drawImageWithContext:(int64_t)context image:(UIImage * _Nonnull)image dx:(float)dx dy:(float)dy;
|
|
326
|
+
+ (void)drawImageWithContext:(int64_t)context image:(UIImage * _Nonnull)image dx:(float)dx dy:(float)dy dw:(float)dw dh:(float)dh;
|
|
327
|
+
+ (void)drawImageWithContext:(int64_t)context image:(UIImage * _Nonnull)image sx:(float)sx sy:(float)sy sw:(float)sw sh:(float)sh dx:(float)dx dy:(float)dy dw:(float)dw dh:(float)dh;
|
|
328
|
+
+ (int64_t)initGLWithView:(int64_t)view :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)fail_if_major_performance_caveat :(NSString * _Nonnull)power_preference :(BOOL)premultiplied_alpha :(BOOL)preserve_drawing_buffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xr_compatible :(int32_t)version :(BOOL)is_canvas SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
|
|
329
|
+
+ (int64_t)initSharedGLWithView:(int64_t)view :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)fail_if_major_performance_caveat :(NSString * _Nonnull)power_preference :(BOOL)premultiplied_alpha :(BOOL)preserve_drawing_buffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xr_compatible :(int32_t)version :(BOOL)is_canvas :(int64_t)shared_context SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
|
|
330
|
+
+ (int64_t)initGLWithWidthAndHeight:(int32_t)width :(int32_t)height :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)fail_if_major_performance_caveat :(NSString * _Nonnull)power_preference :(BOOL)premultiplied_alpha :(BOOL)preserve_drawing_buffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xr_compatible :(int32_t)version :(BOOL)is_canvas SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
|
|
331
|
+
+ (int64_t)initSharedGLWidthAndHeight:(int32_t)width :(int32_t)height :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)fail_if_major_performance_caveat :(NSString * _Nonnull)power_preference :(BOOL)premultiplied_alpha :(BOOL)preserve_drawing_buffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xr_compatible :(int32_t)version :(BOOL)is_canvas :(int64_t)shared_context SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
|
|
332
|
+
+ (void)resize2DContext:(int64_t)context :(float)width :(float)height;
|
|
333
|
+
+ (void)flush2DContext:(int64_t)context;
|
|
334
|
+
+ (BOOL)flushGL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
|
|
335
|
+
+ (void)releaseGL:(int64_t)context;
|
|
336
|
+
+ (int64_t)getGLPointer:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
|
|
337
|
+
+ (void)releaseGLPointer:(int64_t)context;
|
|
338
|
+
+ (int64_t)create2DContext:(int64_t)context :(int32_t)width :(int32_t)height :(BOOL)alpha :(float)density :(int32_t)samples :(int32_t)font_color :(float)ppi :(int32_t)direction SWIFT_WARN_UNUSED_RESULT;
|
|
339
|
+
+ (void)updateGLSurfaceWithView:(int64_t)view :(int32_t)width :(int32_t)height :(int64_t)context;
|
|
340
|
+
+ (void)test2D:(int64_t)context;
|
|
341
|
+
+ (NSString * _Nonnull)testToDataURL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
|
|
342
|
+
+ (void)writeFile:(NSData * _Nonnull)data :(NSString * _Nonnull)path :(void (^ _Nonnull)(NSString * _Nullable, NSString * _Nullable))callback;
|
|
343
|
+
+ (void)readFile:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSString * _Nullable, NSData * _Nullable))callback;
|
|
344
|
+
+ (void)deleteFile:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSError * _Nullable, BOOL))callback;
|
|
345
|
+
+ (void)handleBase64Image:(NSString * _Nonnull)mime :(NSString * _Nonnull)dir :(NSString * _Nonnull)base64 :(void (^ _Nonnull)(NSString * _Nullable, NSString * _Nullable))callback;
|
|
287
346
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
288
347
|
@end
|
|
289
348
|
|
|
290
|
-
|
|
349
|
+
|
|
350
|
+
@interface GLKView (SWIFT_EXTENSION(CanvasNative))
|
|
351
|
+
- (void)snapshotWithData:(NSData * _Nonnull)data;
|
|
352
|
+
@end
|
|
353
|
+
|
|
354
|
+
@class NSMutableDictionary;
|
|
355
|
+
@class UIGestureRecognizer;
|
|
291
356
|
@protocol NSCCanvasListener;
|
|
292
357
|
|
|
293
358
|
SWIFT_CLASS_NAMED("NSCCanvas")
|
|
294
|
-
@interface NSCCanvas : UIView
|
|
359
|
+
@interface NSCCanvas : UIView <GLKViewDelegate>
|
|
360
|
+
- (void)glkView:(GLKView * _Nonnull)view drawInRect:(CGRect)rect;
|
|
361
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSMutableDictionary * _Nonnull store;)
|
|
362
|
+
+ (NSMutableDictionary * _Nonnull)store SWIFT_WARN_UNUSED_RESULT;
|
|
295
363
|
+ (NSMapTable<NSString *, NSCCanvas *> * _Nonnull)getViews SWIFT_WARN_UNUSED_RESULT;
|
|
296
364
|
- (void * _Nonnull)getViewPtr SWIFT_WARN_UNUSED_RESULT;
|
|
297
365
|
@property (nonatomic) BOOL ignorePixelScaling;
|
|
@@ -304,9 +372,11 @@ SWIFT_CLASS_NAMED("NSCCanvas")
|
|
|
304
372
|
- (void)initContext:(NSString * _Nonnull)type :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)failIfMajorPerformanceCaveat :(NSString * _Nonnull)powerPreference :(BOOL)premultipliedAlpha :(BOOL)preserveDrawingBuffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xrCompatible SWIFT_METHOD_FAMILY(none);
|
|
305
373
|
- (int64_t)create2DContext:(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)failIfMajorPerformanceCaveat :(NSString * _Nonnull)powerPreference :(BOOL)premultipliedAlpha :(BOOL)preserveDrawingBuffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xrCompatible :(int32_t)fontColor SWIFT_WARN_UNUSED_RESULT;
|
|
306
374
|
- (void)forceLayout:(CGFloat)width :(CGFloat)height;
|
|
307
|
-
- (
|
|
375
|
+
- (UIImage * _Nullable)snapshot:(BOOL)flip SWIFT_WARN_UNUSED_RESULT;
|
|
376
|
+
- (BOOL)render;
|
|
308
377
|
- (void)context2DTest:(int64_t)context;
|
|
309
378
|
- (NSString * _Nonnull)context2DTestToDataURL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
|
|
379
|
+
@property (nonatomic, copy) void (^ _Nullable touchEventListener)(NSString * _Nonnull, UIGestureRecognizer * _Nonnull);
|
|
310
380
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
311
381
|
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
|
|
312
382
|
- (void)setListener:(id <NSCCanvasListener> _Nullable)listener;
|
|
@@ -325,7 +395,6 @@ SWIFT_CLASS_NAMED("NSCCanvasRenderingContext")
|
|
|
325
395
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
326
396
|
@end
|
|
327
397
|
|
|
328
|
-
@class UIImage;
|
|
329
398
|
|
|
330
399
|
SWIFT_CLASS_NAMED("NSCCanvasRenderingContext2D")
|
|
331
400
|
@interface NSCCanvasRenderingContext2D : NSCCanvasRenderingContext
|
|
@@ -369,6 +438,8 @@ SWIFT_CLASS_NAMED("NSCSVG")
|
|
|
369
438
|
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
|
|
370
439
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
371
440
|
- (void)drawRect:(CGRect)rect;
|
|
441
|
+
- (UIImage * _Nullable)toImage SWIFT_WARN_UNUSED_RESULT;
|
|
442
|
+
- (NSData * _Nullable)toData SWIFT_WARN_UNUSED_RESULT;
|
|
372
443
|
@end
|
|
373
444
|
|
|
374
445
|
@class AVPlayer;
|
|
@@ -380,6 +451,7 @@ SWIFT_CLASS_NAMED("Utils")
|
|
|
380
451
|
+ (CVOpenGLESTextureRef _Nullable)createImage:(CVOpenGLESTextureCacheRef _Nonnull)texturecache :(CVImageBufferRef _Nonnull)buffer :(CFDictionaryRef _Nullable)textureAttributes :(GLenum)target :(GLint)internalFormat :(GLsizei)width :(GLsizei)height :(GLenum)format :(GLenum)type :(NSInteger)planeIndex SWIFT_WARN_UNUSED_RESULT;
|
|
381
452
|
+ (TNSRender * _Nonnull)setupRender SWIFT_WARN_UNUSED_RESULT;
|
|
382
453
|
+ (void)drawFrame:(AVPlayer * _Nonnull)player :(AVPlayerItemVideoOutput * _Nonnull)output :(CGSize)videoSize :(TNSRender * _Nonnull)render :(int32_t)internalFormat :(int32_t)format :(BOOL)flipYWebGL;
|
|
454
|
+
+ (BOOL)writeToFile:(NSData * _Nonnull)data :(NSString * _Nonnull)path error:(NSError * _Nullable * _Nullable)error;
|
|
383
455
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
384
456
|
@end
|
|
385
457
|
|
|
@@ -393,7 +465,7 @@ SWIFT_CLASS_NAMED("Utils")
|
|
|
393
465
|
#endif
|
|
394
466
|
|
|
395
467
|
#elif defined(__x86_64__) && __x86_64__
|
|
396
|
-
// Generated by Apple Swift version 5.
|
|
468
|
+
// Generated by Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
|
|
397
469
|
#ifndef CANVASNATIVE_SWIFT_H
|
|
398
470
|
#define CANVASNATIVE_SWIFT_H
|
|
399
471
|
#pragma clang diagnostic push
|
|
@@ -416,7 +488,6 @@ SWIFT_CLASS_NAMED("Utils")
|
|
|
416
488
|
# include <swift/objc-prologue.h>
|
|
417
489
|
#endif
|
|
418
490
|
|
|
419
|
-
#pragma clang diagnostic ignored "-Wduplicate-method-match"
|
|
420
491
|
#pragma clang diagnostic ignored "-Wauto-import"
|
|
421
492
|
#if defined(__OBJC__)
|
|
422
493
|
#include <Foundation/Foundation.h>
|
|
@@ -425,10 +496,24 @@ SWIFT_CLASS_NAMED("Utils")
|
|
|
425
496
|
#include <cstdint>
|
|
426
497
|
#include <cstddef>
|
|
427
498
|
#include <cstdbool>
|
|
499
|
+
#include <cstring>
|
|
500
|
+
#include <stdlib.h>
|
|
501
|
+
#include <new>
|
|
502
|
+
#include <type_traits>
|
|
428
503
|
#else
|
|
429
504
|
#include <stdint.h>
|
|
430
505
|
#include <stddef.h>
|
|
431
506
|
#include <stdbool.h>
|
|
507
|
+
#include <string.h>
|
|
508
|
+
#endif
|
|
509
|
+
#if defined(__cplusplus)
|
|
510
|
+
#if __has_include(<ptrauth.h>)
|
|
511
|
+
# include <ptrauth.h>
|
|
512
|
+
#else
|
|
513
|
+
# ifndef __ptrauth_swift_value_witness_function_pointer
|
|
514
|
+
# define __ptrauth_swift_value_witness_function_pointer(x)
|
|
515
|
+
# endif
|
|
516
|
+
#endif
|
|
432
517
|
#endif
|
|
433
518
|
|
|
434
519
|
#if !defined(SWIFT_TYPEDEFS)
|
|
@@ -464,53 +549,66 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
464
549
|
# if __has_feature(objc_class_property)
|
|
465
550
|
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
|
466
551
|
# else
|
|
467
|
-
# define SWIFT_CLASS_PROPERTY(...)
|
|
552
|
+
# define SWIFT_CLASS_PROPERTY(...)
|
|
468
553
|
# endif
|
|
469
554
|
#endif
|
|
470
|
-
|
|
471
|
-
#if __has_attribute(objc_runtime_name)
|
|
472
|
-
#
|
|
473
|
-
#else
|
|
474
|
-
#
|
|
555
|
+
#if !defined(SWIFT_RUNTIME_NAME)
|
|
556
|
+
# if __has_attribute(objc_runtime_name)
|
|
557
|
+
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
|
558
|
+
# else
|
|
559
|
+
# define SWIFT_RUNTIME_NAME(X)
|
|
560
|
+
# endif
|
|
475
561
|
#endif
|
|
476
|
-
#if
|
|
477
|
-
#
|
|
478
|
-
#
|
|
479
|
-
#
|
|
562
|
+
#if !defined(SWIFT_COMPILE_NAME)
|
|
563
|
+
# if __has_attribute(swift_name)
|
|
564
|
+
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
|
565
|
+
# else
|
|
566
|
+
# define SWIFT_COMPILE_NAME(X)
|
|
567
|
+
# endif
|
|
480
568
|
#endif
|
|
481
|
-
#if
|
|
482
|
-
#
|
|
483
|
-
#
|
|
484
|
-
#
|
|
569
|
+
#if !defined(SWIFT_METHOD_FAMILY)
|
|
570
|
+
# if __has_attribute(objc_method_family)
|
|
571
|
+
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
|
572
|
+
# else
|
|
573
|
+
# define SWIFT_METHOD_FAMILY(X)
|
|
574
|
+
# endif
|
|
485
575
|
#endif
|
|
486
|
-
#if
|
|
487
|
-
#
|
|
488
|
-
#
|
|
489
|
-
#
|
|
576
|
+
#if !defined(SWIFT_NOESCAPE)
|
|
577
|
+
# if __has_attribute(noescape)
|
|
578
|
+
# define SWIFT_NOESCAPE __attribute__((noescape))
|
|
579
|
+
# else
|
|
580
|
+
# define SWIFT_NOESCAPE
|
|
581
|
+
# endif
|
|
490
582
|
#endif
|
|
491
|
-
#if
|
|
492
|
-
#
|
|
493
|
-
#
|
|
494
|
-
#
|
|
583
|
+
#if !defined(SWIFT_RELEASES_ARGUMENT)
|
|
584
|
+
# if __has_attribute(ns_consumed)
|
|
585
|
+
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
|
586
|
+
# else
|
|
587
|
+
# define SWIFT_RELEASES_ARGUMENT
|
|
588
|
+
# endif
|
|
495
589
|
#endif
|
|
496
|
-
#if
|
|
497
|
-
#
|
|
498
|
-
#
|
|
499
|
-
#
|
|
590
|
+
#if !defined(SWIFT_WARN_UNUSED_RESULT)
|
|
591
|
+
# if __has_attribute(warn_unused_result)
|
|
592
|
+
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
|
593
|
+
# else
|
|
594
|
+
# define SWIFT_WARN_UNUSED_RESULT
|
|
595
|
+
# endif
|
|
500
596
|
#endif
|
|
501
|
-
#if
|
|
502
|
-
#
|
|
503
|
-
#
|
|
504
|
-
#
|
|
597
|
+
#if !defined(SWIFT_NORETURN)
|
|
598
|
+
# if __has_attribute(noreturn)
|
|
599
|
+
# define SWIFT_NORETURN __attribute__((noreturn))
|
|
600
|
+
# else
|
|
601
|
+
# define SWIFT_NORETURN
|
|
602
|
+
# endif
|
|
505
603
|
#endif
|
|
506
604
|
#if !defined(SWIFT_CLASS_EXTRA)
|
|
507
|
-
# define SWIFT_CLASS_EXTRA
|
|
605
|
+
# define SWIFT_CLASS_EXTRA
|
|
508
606
|
#endif
|
|
509
607
|
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
|
510
|
-
# define SWIFT_PROTOCOL_EXTRA
|
|
608
|
+
# define SWIFT_PROTOCOL_EXTRA
|
|
511
609
|
#endif
|
|
512
610
|
#if !defined(SWIFT_ENUM_EXTRA)
|
|
513
|
-
# define SWIFT_ENUM_EXTRA
|
|
611
|
+
# define SWIFT_ENUM_EXTRA
|
|
514
612
|
#endif
|
|
515
613
|
#if !defined(SWIFT_CLASS)
|
|
516
614
|
# if __has_attribute(objc_subclassing_restricted)
|
|
@@ -530,28 +628,25 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
530
628
|
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
|
531
629
|
# endif
|
|
532
630
|
#endif
|
|
533
|
-
|
|
534
631
|
#if !defined(SWIFT_PROTOCOL)
|
|
535
632
|
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
536
633
|
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
537
634
|
#endif
|
|
538
|
-
|
|
539
635
|
#if !defined(SWIFT_EXTENSION)
|
|
540
636
|
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
|
541
637
|
#endif
|
|
542
|
-
|
|
543
638
|
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
|
544
639
|
# if __has_attribute(objc_designated_initializer)
|
|
545
640
|
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
|
546
641
|
# else
|
|
547
|
-
# define OBJC_DESIGNATED_INITIALIZER
|
|
642
|
+
# define OBJC_DESIGNATED_INITIALIZER
|
|
548
643
|
# endif
|
|
549
644
|
#endif
|
|
550
645
|
#if !defined(SWIFT_ENUM_ATTR)
|
|
551
|
-
# if
|
|
646
|
+
# if __has_attribute(enum_extensibility)
|
|
552
647
|
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
|
553
648
|
# else
|
|
554
|
-
# define SWIFT_ENUM_ATTR(_extensibility)
|
|
649
|
+
# define SWIFT_ENUM_ATTR(_extensibility)
|
|
555
650
|
# endif
|
|
556
651
|
#endif
|
|
557
652
|
#if !defined(SWIFT_ENUM)
|
|
@@ -580,14 +675,16 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
580
675
|
#if !defined(SWIFT_DEPRECATED_MSG)
|
|
581
676
|
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
|
582
677
|
#endif
|
|
583
|
-
#if
|
|
584
|
-
#
|
|
585
|
-
#
|
|
586
|
-
#
|
|
678
|
+
#if !defined(SWIFT_DEPRECATED_OBJC)
|
|
679
|
+
# if __has_feature(attribute_diagnose_if_objc)
|
|
680
|
+
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
|
|
681
|
+
# else
|
|
682
|
+
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
|
683
|
+
# endif
|
|
587
684
|
#endif
|
|
588
685
|
#if defined(__OBJC__)
|
|
589
686
|
#if !defined(IBSegueAction)
|
|
590
|
-
# define IBSegueAction
|
|
687
|
+
# define IBSegueAction
|
|
591
688
|
#endif
|
|
592
689
|
#endif
|
|
593
690
|
#if !defined(SWIFT_EXTERN)
|
|
@@ -600,26 +697,31 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
600
697
|
#if !defined(SWIFT_CALL)
|
|
601
698
|
# define SWIFT_CALL __attribute__((swiftcall))
|
|
602
699
|
#endif
|
|
700
|
+
#if !defined(SWIFT_INDIRECT_RESULT)
|
|
701
|
+
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
|
|
702
|
+
#endif
|
|
703
|
+
#if !defined(SWIFT_CONTEXT)
|
|
704
|
+
# define SWIFT_CONTEXT __attribute__((swift_context))
|
|
705
|
+
#endif
|
|
706
|
+
#if !defined(SWIFT_ERROR_RESULT)
|
|
707
|
+
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
|
|
708
|
+
#endif
|
|
603
709
|
#if defined(__cplusplus)
|
|
604
|
-
#if !defined(SWIFT_NOEXCEPT)
|
|
605
710
|
# define SWIFT_NOEXCEPT noexcept
|
|
606
|
-
#endif
|
|
607
711
|
#else
|
|
608
|
-
#if !defined(SWIFT_NOEXCEPT)
|
|
609
712
|
# define SWIFT_NOEXCEPT
|
|
610
713
|
#endif
|
|
714
|
+
#if defined(_WIN32)
|
|
715
|
+
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
716
|
+
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
|
|
611
717
|
#endif
|
|
612
|
-
#
|
|
613
|
-
#if !defined(
|
|
614
|
-
#define
|
|
615
|
-
namespace swift {
|
|
616
|
-
using Int = ptrdiff_t;
|
|
617
|
-
using UInt = size_t;
|
|
618
|
-
}
|
|
718
|
+
#else
|
|
719
|
+
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
720
|
+
# define SWIFT_IMPORT_STDLIB_SYMBOL
|
|
619
721
|
#endif
|
|
620
722
|
#endif
|
|
621
723
|
#if defined(__OBJC__)
|
|
622
|
-
#if __has_feature(
|
|
724
|
+
#if __has_feature(objc_modules)
|
|
623
725
|
#if __has_warning("-Watimport-in-framework-header")
|
|
624
726
|
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
625
727
|
#endif
|
|
@@ -674,17 +776,55 @@ SWIFT_CLASS_NAMED("CanvasGLKView")
|
|
|
674
776
|
- (nonnull instancetype)initWithFrame:(CGRect)frame context:(EAGLContext * _Nonnull)context SWIFT_UNAVAILABLE;
|
|
675
777
|
@end
|
|
676
778
|
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
@
|
|
779
|
+
@class UIImage;
|
|
780
|
+
@class NSMutableData;
|
|
781
|
+
@class NSString;
|
|
782
|
+
@class NSData;
|
|
783
|
+
@class NSError;
|
|
784
|
+
|
|
785
|
+
SWIFT_CLASS_NAMED("CanvasHelpers")
|
|
786
|
+
@interface NSSCanvasHelpers : NSObject
|
|
787
|
+
+ (NSMutableData * _Nonnull)getBytesFromUIImage:(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
|
|
788
|
+
+ (int64_t)createPattern:(int64_t)context :(UIImage * _Nonnull)image :(NSString * _Nonnull)repetition SWIFT_WARN_UNUSED_RESULT;
|
|
789
|
+
+ (BOOL)loadImageAssetWithContext:(int64_t)asset :(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
|
|
790
|
+
+ (void)drawImageWithContext:(int64_t)context image:(UIImage * _Nonnull)image dx:(float)dx dy:(float)dy;
|
|
791
|
+
+ (void)drawImageWithContext:(int64_t)context image:(UIImage * _Nonnull)image dx:(float)dx dy:(float)dy dw:(float)dw dh:(float)dh;
|
|
792
|
+
+ (void)drawImageWithContext:(int64_t)context image:(UIImage * _Nonnull)image sx:(float)sx sy:(float)sy sw:(float)sw sh:(float)sh dx:(float)dx dy:(float)dy dw:(float)dw dh:(float)dh;
|
|
793
|
+
+ (int64_t)initGLWithView:(int64_t)view :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)fail_if_major_performance_caveat :(NSString * _Nonnull)power_preference :(BOOL)premultiplied_alpha :(BOOL)preserve_drawing_buffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xr_compatible :(int32_t)version :(BOOL)is_canvas SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
|
|
794
|
+
+ (int64_t)initSharedGLWithView:(int64_t)view :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)fail_if_major_performance_caveat :(NSString * _Nonnull)power_preference :(BOOL)premultiplied_alpha :(BOOL)preserve_drawing_buffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xr_compatible :(int32_t)version :(BOOL)is_canvas :(int64_t)shared_context SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
|
|
795
|
+
+ (int64_t)initGLWithWidthAndHeight:(int32_t)width :(int32_t)height :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)fail_if_major_performance_caveat :(NSString * _Nonnull)power_preference :(BOOL)premultiplied_alpha :(BOOL)preserve_drawing_buffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xr_compatible :(int32_t)version :(BOOL)is_canvas SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
|
|
796
|
+
+ (int64_t)initSharedGLWidthAndHeight:(int32_t)width :(int32_t)height :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)fail_if_major_performance_caveat :(NSString * _Nonnull)power_preference :(BOOL)premultiplied_alpha :(BOOL)preserve_drawing_buffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xr_compatible :(int32_t)version :(BOOL)is_canvas :(int64_t)shared_context SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
|
|
797
|
+
+ (void)resize2DContext:(int64_t)context :(float)width :(float)height;
|
|
798
|
+
+ (void)flush2DContext:(int64_t)context;
|
|
799
|
+
+ (BOOL)flushGL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
|
|
800
|
+
+ (void)releaseGL:(int64_t)context;
|
|
801
|
+
+ (int64_t)getGLPointer:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
|
|
802
|
+
+ (void)releaseGLPointer:(int64_t)context;
|
|
803
|
+
+ (int64_t)create2DContext:(int64_t)context :(int32_t)width :(int32_t)height :(BOOL)alpha :(float)density :(int32_t)samples :(int32_t)font_color :(float)ppi :(int32_t)direction SWIFT_WARN_UNUSED_RESULT;
|
|
804
|
+
+ (void)updateGLSurfaceWithView:(int64_t)view :(int32_t)width :(int32_t)height :(int64_t)context;
|
|
805
|
+
+ (void)test2D:(int64_t)context;
|
|
806
|
+
+ (NSString * _Nonnull)testToDataURL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
|
|
807
|
+
+ (void)writeFile:(NSData * _Nonnull)data :(NSString * _Nonnull)path :(void (^ _Nonnull)(NSString * _Nullable, NSString * _Nullable))callback;
|
|
808
|
+
+ (void)readFile:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSString * _Nullable, NSData * _Nullable))callback;
|
|
809
|
+
+ (void)deleteFile:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSError * _Nullable, BOOL))callback;
|
|
810
|
+
+ (void)handleBase64Image:(NSString * _Nonnull)mime :(NSString * _Nonnull)dir :(NSString * _Nonnull)base64 :(void (^ _Nonnull)(NSString * _Nullable, NSString * _Nullable))callback;
|
|
680
811
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
681
812
|
@end
|
|
682
813
|
|
|
683
|
-
|
|
814
|
+
|
|
815
|
+
@interface GLKView (SWIFT_EXTENSION(CanvasNative))
|
|
816
|
+
- (void)snapshotWithData:(NSData * _Nonnull)data;
|
|
817
|
+
@end
|
|
818
|
+
|
|
819
|
+
@class NSMutableDictionary;
|
|
820
|
+
@class UIGestureRecognizer;
|
|
684
821
|
@protocol NSCCanvasListener;
|
|
685
822
|
|
|
686
823
|
SWIFT_CLASS_NAMED("NSCCanvas")
|
|
687
|
-
@interface NSCCanvas : UIView
|
|
824
|
+
@interface NSCCanvas : UIView <GLKViewDelegate>
|
|
825
|
+
- (void)glkView:(GLKView * _Nonnull)view drawInRect:(CGRect)rect;
|
|
826
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSMutableDictionary * _Nonnull store;)
|
|
827
|
+
+ (NSMutableDictionary * _Nonnull)store SWIFT_WARN_UNUSED_RESULT;
|
|
688
828
|
+ (NSMapTable<NSString *, NSCCanvas *> * _Nonnull)getViews SWIFT_WARN_UNUSED_RESULT;
|
|
689
829
|
- (void * _Nonnull)getViewPtr SWIFT_WARN_UNUSED_RESULT;
|
|
690
830
|
@property (nonatomic) BOOL ignorePixelScaling;
|
|
@@ -697,9 +837,11 @@ SWIFT_CLASS_NAMED("NSCCanvas")
|
|
|
697
837
|
- (void)initContext:(NSString * _Nonnull)type :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)failIfMajorPerformanceCaveat :(NSString * _Nonnull)powerPreference :(BOOL)premultipliedAlpha :(BOOL)preserveDrawingBuffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xrCompatible SWIFT_METHOD_FAMILY(none);
|
|
698
838
|
- (int64_t)create2DContext:(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)failIfMajorPerformanceCaveat :(NSString * _Nonnull)powerPreference :(BOOL)premultipliedAlpha :(BOOL)preserveDrawingBuffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xrCompatible :(int32_t)fontColor SWIFT_WARN_UNUSED_RESULT;
|
|
699
839
|
- (void)forceLayout:(CGFloat)width :(CGFloat)height;
|
|
700
|
-
- (
|
|
840
|
+
- (UIImage * _Nullable)snapshot:(BOOL)flip SWIFT_WARN_UNUSED_RESULT;
|
|
841
|
+
- (BOOL)render;
|
|
701
842
|
- (void)context2DTest:(int64_t)context;
|
|
702
843
|
- (NSString * _Nonnull)context2DTestToDataURL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
|
|
844
|
+
@property (nonatomic, copy) void (^ _Nullable touchEventListener)(NSString * _Nonnull, UIGestureRecognizer * _Nonnull);
|
|
703
845
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
704
846
|
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
|
|
705
847
|
- (void)setListener:(id <NSCCanvasListener> _Nullable)listener;
|
|
@@ -718,7 +860,6 @@ SWIFT_CLASS_NAMED("NSCCanvasRenderingContext")
|
|
|
718
860
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
719
861
|
@end
|
|
720
862
|
|
|
721
|
-
@class UIImage;
|
|
722
863
|
|
|
723
864
|
SWIFT_CLASS_NAMED("NSCCanvasRenderingContext2D")
|
|
724
865
|
@interface NSCCanvasRenderingContext2D : NSCCanvasRenderingContext
|
|
@@ -762,6 +903,8 @@ SWIFT_CLASS_NAMED("NSCSVG")
|
|
|
762
903
|
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
|
|
763
904
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
764
905
|
- (void)drawRect:(CGRect)rect;
|
|
906
|
+
- (UIImage * _Nullable)toImage SWIFT_WARN_UNUSED_RESULT;
|
|
907
|
+
- (NSData * _Nullable)toData SWIFT_WARN_UNUSED_RESULT;
|
|
765
908
|
@end
|
|
766
909
|
|
|
767
910
|
@class AVPlayer;
|
|
@@ -773,6 +916,7 @@ SWIFT_CLASS_NAMED("Utils")
|
|
|
773
916
|
+ (CVOpenGLESTextureRef _Nullable)createImage:(CVOpenGLESTextureCacheRef _Nonnull)texturecache :(CVImageBufferRef _Nonnull)buffer :(CFDictionaryRef _Nullable)textureAttributes :(GLenum)target :(GLint)internalFormat :(GLsizei)width :(GLsizei)height :(GLenum)format :(GLenum)type :(NSInteger)planeIndex SWIFT_WARN_UNUSED_RESULT;
|
|
774
917
|
+ (TNSRender * _Nonnull)setupRender SWIFT_WARN_UNUSED_RESULT;
|
|
775
918
|
+ (void)drawFrame:(AVPlayer * _Nonnull)player :(AVPlayerItemVideoOutput * _Nonnull)output :(CGSize)videoSize :(TNSRender * _Nonnull)render :(int32_t)internalFormat :(int32_t)format :(BOOL)flipYWebGL;
|
|
919
|
+
+ (BOOL)writeToFile:(NSData * _Nonnull)data :(NSString * _Nonnull)path error:(NSError * _Nullable * _Nullable)error;
|
|
776
920
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
777
921
|
@end
|
|
778
922
|
|