diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/Info.plist b/packages/canvas/platforms/ios/CanvasNative.xcframework/Info.plist
new file mode 100644
index 000000000..803c127dd
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/Info.plist
@@ -0,0 +1,44 @@
+
+
+
+
+ AvailableLibraries
+
+
+ DebugSymbolsPath
+ dSYMs
+ LibraryIdentifier
+ ios-arm64
+ LibraryPath
+ CanvasNative.framework
+ SupportedArchitectures
+
+ arm64
+
+ SupportedPlatform
+ ios
+
+
+ DebugSymbolsPath
+ dSYMs
+ LibraryIdentifier
+ ios-arm64_x86_64-simulator
+ LibraryPath
+ CanvasNative.framework
+ SupportedArchitectures
+
+ arm64
+ x86_64
+
+ SupportedPlatform
+ ios
+ SupportedPlatformVariant
+ simulator
+
+
+ CFBundlePackageType
+ XFWK
+ XCFrameworkFormatVersion
+ 1.0
+
+
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative
new file mode 100755
index 000000000..c9fe87c40
Binary files /dev/null and b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative differ
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h
new file mode 100644
index 000000000..c8446d582
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h
@@ -0,0 +1,464 @@
+#if 0
+#elif defined(__arm64__) && __arm64__
+// Generated by Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
+#ifndef CANVASNATIVE_SWIFT_H
+#define CANVASNATIVE_SWIFT_H
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wgcc-compat"
+
+#if !defined(__has_include)
+# define __has_include(x) 0
+#endif
+#if !defined(__has_attribute)
+# define __has_attribute(x) 0
+#endif
+#if !defined(__has_feature)
+# define __has_feature(x) 0
+#endif
+#if !defined(__has_warning)
+# define __has_warning(x) 0
+#endif
+
+#if __has_include()
+# include
+#endif
+
+#pragma clang diagnostic ignored "-Wauto-import"
+#if defined(__OBJC__)
+#include
+#endif
+#if defined(__cplusplus)
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#else
+#include
+#include
+#include
+#include
+#endif
+#if defined(__cplusplus)
+#if __has_include()
+# include
+#else
+# ifndef __ptrauth_swift_value_witness_function_pointer
+# define __ptrauth_swift_value_witness_function_pointer(x)
+# endif
+#endif
+#endif
+
+#if !defined(SWIFT_TYPEDEFS)
+# define SWIFT_TYPEDEFS 1
+# if __has_include()
+# include
+# elif !defined(__cplusplus)
+typedef uint_least16_t char16_t;
+typedef uint_least32_t char32_t;
+# endif
+typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
+typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
+typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
+typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
+typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
+typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
+typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
+typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
+typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
+typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
+typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
+typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
+#endif
+
+#if !defined(SWIFT_PASTE)
+# define SWIFT_PASTE_HELPER(x, y) x##y
+# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
+#endif
+#if !defined(SWIFT_METATYPE)
+# define SWIFT_METATYPE(X) Class
+#endif
+#if !defined(SWIFT_CLASS_PROPERTY)
+# if __has_feature(objc_class_property)
+# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
+# else
+# define SWIFT_CLASS_PROPERTY(...)
+# endif
+#endif
+#if !defined(SWIFT_RUNTIME_NAME)
+# if __has_attribute(objc_runtime_name)
+# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
+# else
+# define SWIFT_RUNTIME_NAME(X)
+# endif
+#endif
+#if !defined(SWIFT_COMPILE_NAME)
+# if __has_attribute(swift_name)
+# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
+# else
+# define SWIFT_COMPILE_NAME(X)
+# endif
+#endif
+#if !defined(SWIFT_METHOD_FAMILY)
+# if __has_attribute(objc_method_family)
+# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
+# else
+# define SWIFT_METHOD_FAMILY(X)
+# endif
+#endif
+#if !defined(SWIFT_NOESCAPE)
+# if __has_attribute(noescape)
+# define SWIFT_NOESCAPE __attribute__((noescape))
+# else
+# define SWIFT_NOESCAPE
+# endif
+#endif
+#if !defined(SWIFT_RELEASES_ARGUMENT)
+# if __has_attribute(ns_consumed)
+# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
+# else
+# define SWIFT_RELEASES_ARGUMENT
+# endif
+#endif
+#if !defined(SWIFT_WARN_UNUSED_RESULT)
+# if __has_attribute(warn_unused_result)
+# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
+# else
+# define SWIFT_WARN_UNUSED_RESULT
+# endif
+#endif
+#if !defined(SWIFT_NORETURN)
+# if __has_attribute(noreturn)
+# define SWIFT_NORETURN __attribute__((noreturn))
+# else
+# define SWIFT_NORETURN
+# endif
+#endif
+#if !defined(SWIFT_CLASS_EXTRA)
+# define SWIFT_CLASS_EXTRA
+#endif
+#if !defined(SWIFT_PROTOCOL_EXTRA)
+# define SWIFT_PROTOCOL_EXTRA
+#endif
+#if !defined(SWIFT_ENUM_EXTRA)
+# define SWIFT_ENUM_EXTRA
+#endif
+#if !defined(SWIFT_CLASS)
+# if __has_attribute(objc_subclassing_restricted)
+# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
+# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
+# else
+# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
+# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
+# endif
+#endif
+#if !defined(SWIFT_RESILIENT_CLASS)
+# if __has_attribute(objc_class_stub)
+# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
+# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
+# else
+# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
+# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
+# endif
+#endif
+#if !defined(SWIFT_PROTOCOL)
+# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
+# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
+#endif
+#if !defined(SWIFT_EXTENSION)
+# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
+#endif
+#if !defined(OBJC_DESIGNATED_INITIALIZER)
+# if __has_attribute(objc_designated_initializer)
+# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
+# else
+# define OBJC_DESIGNATED_INITIALIZER
+# endif
+#endif
+#if !defined(SWIFT_ENUM_ATTR)
+# if __has_attribute(enum_extensibility)
+# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
+# else
+# define SWIFT_ENUM_ATTR(_extensibility)
+# endif
+#endif
+#if !defined(SWIFT_ENUM)
+# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
+# if __has_feature(generalized_swift_name)
+# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
+# else
+# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
+# endif
+#endif
+#if !defined(SWIFT_UNAVAILABLE)
+# define SWIFT_UNAVAILABLE __attribute__((unavailable))
+#endif
+#if !defined(SWIFT_UNAVAILABLE_MSG)
+# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
+#endif
+#if !defined(SWIFT_AVAILABILITY)
+# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
+#endif
+#if !defined(SWIFT_WEAK_IMPORT)
+# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
+#endif
+#if !defined(SWIFT_DEPRECATED)
+# define SWIFT_DEPRECATED __attribute__((deprecated))
+#endif
+#if !defined(SWIFT_DEPRECATED_MSG)
+# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
+#endif
+#if !defined(SWIFT_DEPRECATED_OBJC)
+# if __has_feature(attribute_diagnose_if_objc)
+# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
+# else
+# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
+# endif
+#endif
+#if defined(__OBJC__)
+#if !defined(IBSegueAction)
+# define IBSegueAction
+#endif
+#endif
+#if !defined(SWIFT_EXTERN)
+# if defined(__cplusplus)
+# define SWIFT_EXTERN extern "C"
+# else
+# define SWIFT_EXTERN extern
+# endif
+#endif
+#if !defined(SWIFT_CALL)
+# define SWIFT_CALL __attribute__((swiftcall))
+#endif
+#if !defined(SWIFT_INDIRECT_RESULT)
+# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
+#endif
+#if !defined(SWIFT_CONTEXT)
+# define SWIFT_CONTEXT __attribute__((swift_context))
+#endif
+#if !defined(SWIFT_ERROR_RESULT)
+# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
+#endif
+#if defined(__cplusplus)
+# define SWIFT_NOEXCEPT noexcept
+#else
+# define SWIFT_NOEXCEPT
+#endif
+#if defined(_WIN32)
+#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
+# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
+#endif
+#else
+#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
+# define SWIFT_IMPORT_STDLIB_SYMBOL
+#endif
+#endif
+#if defined(__OBJC__)
+#if __has_feature(objc_modules)
+#if __has_warning("-Watimport-in-framework-header")
+#pragma clang diagnostic ignored "-Watimport-in-framework-header"
+#endif
+@import CoreFoundation;
+@import CoreVideo;
+@import Dispatch;
+@import Foundation;
+@import GLKit;
+@import ObjectiveC;
+@import OpenGLES;
+@import UIKit;
+#endif
+
+#endif
+#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
+#pragma clang diagnostic ignored "-Wduplicate-method-arg"
+#if __has_warning("-Wpragma-clang-attribute")
+# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
+#endif
+#pragma clang diagnostic ignored "-Wunknown-pragmas"
+#pragma clang diagnostic ignored "-Wnullability"
+#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
+
+#if __has_attribute(external_source_symbol)
+# pragma push_macro("any")
+# undef any
+# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CanvasNative",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
+# pragma pop_macro("any")
+#endif
+
+#if defined(__OBJC__)
+@class NSCoder;
+
+SWIFT_CLASS_NAMED("CanvasCPUView")
+@interface CanvasCPUView : UIView
+@property (nonatomic) BOOL ignorePixelScaling;
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
+- (void)drawRect:(CGRect)rect;
+@end
+
+@class EAGLContext;
+
+SWIFT_CLASS_NAMED("CanvasGLKView")
+@interface CanvasGLKView : GLKView
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
+- (void)setNeedsDisplay;
+- (void)setNeedsDisplayInRect:(CGRect)rect;
+- (nonnull instancetype)initWithFrame:(CGRect)frame context:(EAGLContext * _Nonnull)context SWIFT_UNAVAILABLE;
+@end
+
+@class UIImage;
+@class NSMutableData;
+@class NSString;
+@class NSData;
+@class NSError;
+
+SWIFT_CLASS_NAMED("CanvasHelpers")
+@interface NSSCanvasHelpers : NSObject
++ (NSMutableData * _Nonnull)getBytesFromUIImage:(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
++ (int64_t)createPattern:(int64_t)context :(UIImage * _Nonnull)image :(NSString * _Nonnull)repetition SWIFT_WARN_UNUSED_RESULT;
++ (BOOL)loadImageAssetWithContext:(int64_t)asset :(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
++ (void)drawImageWithContext:(int64_t)context image:(UIImage * _Nonnull)image dx:(float)dx dy:(float)dy;
++ (void)drawImageWithContext:(int64_t)context image:(UIImage * _Nonnull)image dx:(float)dx dy:(float)dy dw:(float)dw dh:(float)dh;
++ (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;
++ (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;
++ (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;
++ (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;
++ (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;
++ (void)resize2DContext:(int64_t)context :(float)width :(float)height;
++ (void)flush2DContext:(int64_t)context;
++ (BOOL)flushGL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
++ (void)releaseGL:(int64_t)context;
++ (int64_t)getGLPointer:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
++ (void)releaseGLPointer:(int64_t)context;
++ (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;
++ (void)updateGLSurfaceWithView:(int64_t)view :(int32_t)width :(int32_t)height :(int64_t)context;
++ (void)test2D:(int64_t)context;
++ (NSString * _Nonnull)testToDataURL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
++ (void)writeFile:(NSData * _Nonnull)data :(NSString * _Nonnull)path :(void (^ _Nonnull)(NSString * _Nullable, NSString * _Nullable))callback;
++ (void)readFile:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSString * _Nullable, NSData * _Nullable))callback;
++ (void)deleteFile:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSError * _Nullable, BOOL))callback;
++ (void)handleBase64Image:(NSString * _Nonnull)mime :(NSString * _Nonnull)dir :(NSString * _Nonnull)base64 :(void (^ _Nonnull)(NSString * _Nullable, NSString * _Nullable))callback;
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+@end
+
+
+@interface GLKView (SWIFT_EXTENSION(CanvasNative))
+- (void)snapshotWithData:(NSData * _Nonnull)data;
+@end
+
+@class NSMutableDictionary;
+@protocol NSCCanvasListener;
+
+SWIFT_CLASS_NAMED("NSCCanvas")
+@interface NSCCanvas : UIView
+- (void)glkView:(GLKView * _Nonnull)view drawInRect:(CGRect)rect;
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSMutableDictionary * _Nonnull store;)
++ (NSMutableDictionary * _Nonnull)store SWIFT_WARN_UNUSED_RESULT;
++ (NSMapTable * _Nonnull)getViews SWIFT_WARN_UNUSED_RESULT;
+- (void * _Nonnull)getViewPtr SWIFT_WARN_UNUSED_RESULT;
+@property (nonatomic) BOOL ignorePixelScaling;
+@property (nonatomic, readonly) int64_t nativeGL;
+@property (nonatomic, readonly) int64_t nativeContext;
+@property (nonatomic, readonly) NSInteger drawingBufferWidth;
+@property (nonatomic, readonly) NSInteger drawingBufferHeight;
+@property (nonatomic, readonly) float width;
+@property (nonatomic, readonly) float height;
+- (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);
+- (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;
+- (void)forceLayout:(CGFloat)width :(CGFloat)height;
+- (UIImage * _Nullable)snapshot:(BOOL)flip SWIFT_WARN_UNUSED_RESULT;
+- (BOOL)render;
+- (void)context2DTest:(int64_t)context;
+- (NSString * _Nonnull)context2DTestToDataURL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
+- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
+- (void)setListener:(id _Nullable)listener;
+- (void)layoutSubviews;
+@end
+
+
+SWIFT_PROTOCOL_NAMED("NSCCanvasListener")
+@protocol NSCCanvasListener
+- (void)contextReady;
+@end
+
+
+SWIFT_CLASS_NAMED("NSCCanvasRenderingContext")
+@interface NSCCanvasRenderingContext : NSObject
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+@end
+
+
+SWIFT_CLASS_NAMED("NSCCanvasRenderingContext2D")
+@interface NSCCanvasRenderingContext2D : NSCCanvasRenderingContext
++ (int64_t)createPattern:(int64_t)context :(UIImage * _Nonnull)src :(NSString * _Nonnull)repetition SWIFT_WARN_UNUSED_RESULT;
++ (void)drawImage:(int64_t)context :(UIImage * _Nonnull)image :(float)dx :(float)dy;
++ (void)drawImage:(int64_t)context :(UIImage * _Nonnull)image :(float)dx :(float)dy :(float)dWidth :(float)dHeight;
++ (void)drawImage:(int64_t)context :(UIImage * _Nonnull)image :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(float)dx :(float)dy :(float)dWidth :(float)dHeight;
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+@end
+
+
+SWIFT_CLASS_NAMED("NSCImageAsset")
+@interface NSCImageAsset : NSObject
++ (BOOL)loadImageFromImageSync:(int64_t)context :(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
++ (void)loadImageFromImage:(int64_t)context :(UIImage * _Nonnull)image :(void (^ _Nonnull)(BOOL))callback;
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+@end
+
+
+SWIFT_CLASS_NAMED("NSCImageBitmap")
+@interface NSCImageBitmap : NSObject
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) dispatch_queue_t _Nonnull queue;)
++ (dispatch_queue_t _Nonnull)queue SWIFT_WARN_UNUSED_RESULT;
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+@end
+
+
+SWIFT_CLASS_NAMED("NSCRender")
+@interface TNSRender : NSObject
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+- (void)createSurface;
+@end
+
+
+SWIFT_CLASS_NAMED("NSCSVG")
+@interface TNSSVG : UIView
+@property (nonatomic) BOOL ignorePixelScaling;
+@property (nonatomic, copy) NSString * _Nullable src;
+@property (nonatomic, copy) NSString * _Nullable srcPath;
+- (void)layoutSubviews;
+- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
+- (void)drawRect:(CGRect)rect;
+@end
+
+@class AVPlayer;
+@class AVPlayerItemVideoOutput;
+
+SWIFT_CLASS_NAMED("Utils")
+@interface Utils : NSObject
++ (CVOpenGLESTextureCacheRef _Nullable)createTextureCache SWIFT_WARN_UNUSED_RESULT;
++ (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;
++ (TNSRender * _Nonnull)setupRender SWIFT_WARN_UNUSED_RESULT;
++ (void)drawFrame:(AVPlayer * _Nonnull)player :(AVPlayerItemVideoOutput * _Nonnull)output :(CGSize)videoSize :(TNSRender * _Nonnull)render :(int32_t)internalFormat :(int32_t)format :(BOOL)flipYWebGL;
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+@end
+
+#endif
+#if defined(__cplusplus)
+#endif
+#if __has_attribute(external_source_symbol)
+# pragma clang attribute pop
+#endif
+#pragma clang diagnostic pop
+#endif
+
+#else
+#error unsupported Swift architecture
+#endif
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h
new file mode 100644
index 000000000..b414de9c6
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h
@@ -0,0 +1,20 @@
+//
+// CanvasNative.h
+// CanvasNative
+//
+// Created by Osei Fortune on 30/09/2020.
+//
+
+#import
+#import "canvas_native.h"
+#import "canvas_ios.h"
+
+//! Project version number for CanvasNative.
+FOUNDATION_EXPORT double CanvasNativeVersionNumber;
+
+//! Project version string for CanvasNative.
+FOUNDATION_EXPORT const unsigned char CanvasNativeVersionString[];
+
+// In this header, you should import all the public headers of your framework using statements like #import
+
+
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h
new file mode 100644
index 000000000..5cafc1060
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h
@@ -0,0 +1,142 @@
+#ifndef CANVAS_IOS_H
+#define CANVAS_IOS_H
+
+/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */
+
+#include
+#include
+#include
+#include
+
+long long canvas_native_init_ios_gl(int64_t view,
+ bool alpha,
+ bool antialias,
+ bool depth,
+ bool fail_if_major_performance_caveat,
+ const char *power_preference,
+ bool premultiplied_alpha,
+ bool preserve_drawing_buffer,
+ bool stencil,
+ bool desynchronized,
+ bool xr_compatible,
+ int32_t version,
+ bool is_canvas);
+
+long long canvas_native_init_ios_gl_with_shared_gl(int64_t view,
+ bool alpha,
+ bool antialias,
+ bool depth,
+ bool fail_if_major_performance_caveat,
+ const char *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);
+
+long long canvas_native_init_offscreen_ios_gl(int32_t width,
+ int32_t height,
+ bool alpha,
+ bool antialias,
+ bool depth,
+ bool fail_if_major_performance_caveat,
+ const char *power_preference,
+ bool premultiplied_alpha,
+ bool preserve_drawing_buffer,
+ bool stencil,
+ bool desynchronized,
+ bool xr_compatible,
+ int32_t version,
+ bool is_canvas);
+
+long long canvas_native_init_offscreen_ios_gl_with_shared_gl(int32_t width,
+ int32_t height,
+ bool alpha,
+ bool antialias,
+ bool depth,
+ bool fail_if_major_performance_caveat,
+ const char *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);
+
+bool canvas_native_ios_flush_gl(int64_t context);
+
+void canvas_native_ios_flush_2d_context(int64_t context);
+
+void canvas_native_resize_context_2d(int64_t context, float width, float height);
+
+int64_t canvas_native_create_2d_context(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);
+
+void canvas_native_update_gl_surface(int64_t view, int32_t width, int32_t height, int64_t context);
+
+void canvas_native_release_ios_gl(int64_t context);
+
+int64_t canvas_native_get_gl_pointer(int64_t gl_context);
+
+void canvas_native_release_gl_pointer(int64_t gl_context);
+
+void canvas_native_context_2d_test(int64_t context);
+
+char *canvas_native_context_2d_test_to_data_url(int64_t context);
+
+void canvas_native_context_2d_destroy_string(char *string);
+
+bool canvas_native_imageasset_load_from_bytes(int64_t asset, uint8_t *bytes, uintptr_t size);
+
+int64_t canvas_native_context_create_pattern_raw(int64_t context,
+ int32_t width,
+ int32_t height,
+ uint8_t *bytes,
+ uintptr_t size,
+ const char *repetition);
+
+bool canvas_native_context_draw_image_dx_dy_with_bytes(int64_t context,
+ uint8_t *bytes,
+ uintptr_t size,
+ float width,
+ float height,
+ float dx,
+ float dy);
+
+bool canvas_native_context_draw_image_dx_dy_dw_dh_with_bytes(int64_t context,
+ uint8_t *bytes,
+ uintptr_t size,
+ float width,
+ float height,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+bool canvas_native_context_draw_image_with_bytes(int64_t context,
+ uint8_t *bytes,
+ uintptr_t size,
+ float width,
+ float height,
+ float sx,
+ float sy,
+ float s_width,
+ float s_height,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+#endif /* CANVAS_IOS_H */
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h
new file mode 100644
index 000000000..3fc2610ac
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h
@@ -0,0 +1,2517 @@
+#ifndef CANVAS_C_H
+#define CANVAS_C_H
+
+/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */
+
+#include
+#include
+#include
+#include
+
+typedef enum GLConstants {
+ UNPACK_FLIP_Y_WEBGL = 37440,
+ UNPACK_PREMULTIPLY_ALPHA_WEBGL = 37441,
+ UNPACK_COLORSPACE_CONVERSION_WEBGL = 37443,
+} GLConstants;
+
+typedef enum ImageBitmapColorSpaceConversion {
+ ImageBitmapColorSpaceConversionDefault,
+ ImageBitmapColorSpaceConversionNone,
+} ImageBitmapColorSpaceConversion;
+
+typedef enum ImageBitmapPremultiplyAlpha {
+ ImageBitmapPremultiplyAlphaDefault,
+ ImageBitmapPremultiplyAlphaPremultiply,
+ ImageBitmapPremultiplyAlphaNone,
+} ImageBitmapPremultiplyAlpha;
+
+typedef enum ImageBitmapResizeQuality {
+ ImageBitmapResizeQualityLow,
+ ImageBitmapResizeQualityMedium,
+ ImageBitmapResizeQualityHigh,
+ ImageBitmapResizeQualityPixelated,
+} ImageBitmapResizeQuality;
+
+typedef enum InvalidateState {
+ InvalidateStateNone,
+ InvalidateStatePending,
+ InvalidateStateInvalidating,
+} InvalidateState;
+
+typedef enum PaintStyleType {
+ PaintStyleTypeNone,
+ PaintStyleTypeColor,
+ PaintStyleTypeGradient,
+ PaintStyleTypePattern,
+} PaintStyleType;
+
+typedef enum WebGLExtensionType {
+ WebGLExtensionTypeEXT_blend_minmax,
+ WebGLExtensionTypeEXT_color_buffer_half_float,
+ WebGLExtensionTypeEXT_disjoint_timer_query,
+ WebGLExtensionTypeEXT_sRGB,
+ WebGLExtensionTypeEXT_shader_texture_lod,
+ WebGLExtensionTypeEXT_texture_filter_anisotropic,
+ WebGLExtensionTypeOES_element_index_uint,
+ WebGLExtensionTypeOES_standard_derivatives,
+ WebGLExtensionTypeOES_texture_float,
+ WebGLExtensionTypeOES_texture_float_linear,
+ WebGLExtensionTypeOES_texture_half_float,
+ WebGLExtensionTypeOES_texture_half_float_linear,
+ WebGLExtensionTypeOES_vertex_array_object,
+ WebGLExtensionTypeWEBGL_color_buffer_float,
+ WebGLExtensionTypeWEBGL_compressed_texture_atc,
+ WebGLExtensionTypeWEBGL_compressed_texture_etc1,
+ WebGLExtensionTypeWEBGL_compressed_texture_s3tc,
+ WebGLExtensionTypeWEBGL_compressed_texture_s3tc_srgb,
+ WebGLExtensionTypeWEBGL_compressed_texture_etc,
+ WebGLExtensionTypeWEBGL_compressed_texture_pvrtc,
+ WebGLExtensionTypeWEBGL_lose_context,
+ WebGLExtensionTypeANGLE_instanced_arrays,
+ WebGLExtensionTypeWEBGL_depth_texture,
+ WebGLExtensionTypeWEBGL_draw_buffers,
+ WebGLExtensionTypeOES_fbo_render_mipmap,
+ WebGLExtensionTypeNone,
+} WebGLExtensionType;
+
+typedef struct ANGLE_instanced_arrays ANGLE_instanced_arrays;
+
+typedef struct CanvasRenderingContext2D CanvasRenderingContext2D;
+
+typedef struct ContextAttributes ContextAttributes;
+
+typedef struct EXT_blend_minmax EXT_blend_minmax;
+
+typedef struct EXT_color_buffer_half_float EXT_color_buffer_half_float;
+
+typedef struct EXT_disjoint_timer_query EXT_disjoint_timer_query;
+
+typedef struct EXT_shader_texture_lod EXT_shader_texture_lod;
+
+typedef struct EXT_texture_filter_anisotropic EXT_texture_filter_anisotropic;
+
+typedef struct F32Buffer F32Buffer;
+
+typedef struct F32BufferMut F32BufferMut;
+
+typedef struct FileHelper FileHelper;
+
+typedef struct I32Buffer I32Buffer;
+
+typedef struct ImageAsset ImageAsset;
+
+typedef struct ImageData ImageData;
+
+typedef struct ImageFilter ImageFilter;
+
+typedef struct Matrix Matrix;
+
+typedef struct OES_element_index_uint OES_element_index_uint;
+
+typedef struct OES_standard_derivatives OES_standard_derivatives;
+
+typedef struct OES_texture_float OES_texture_float;
+
+typedef struct OES_texture_float_linear OES_texture_float_linear;
+
+typedef struct OES_texture_half_float OES_texture_half_float;
+
+typedef struct OES_texture_half_float_linear OES_texture_half_float_linear;
+
+typedef struct OES_vertex_array_object OES_vertex_array_object;
+
+typedef struct PaintStyle PaintStyle;
+
+typedef struct Path Path;
+
+#if (defined(TARGET_OS_ANDROID) || defined(TARGET_OS_IOS))
+typedef struct Raf Raf;
+#endif
+
+#if ((defined(TARGET_OS_ANDROID) || defined(TARGET_OS_IOS)) && defined(TARGET_OS_ANDROID))
+typedef struct Raf Raf;
+#endif
+
+#if ((defined(TARGET_OS_ANDROID) || defined(TARGET_OS_IOS)) && defined(TARGET_OS_IOS))
+typedef struct Raf Raf;
+#endif
+
+typedef struct StringBuffer StringBuffer;
+
+typedef struct StringRefBuffer StringRefBuffer;
+
+typedef struct TextDecoder TextDecoder;
+
+typedef struct TextEncoder TextEncoder;
+
+typedef struct TextMetrics TextMetrics;
+
+typedef struct U16Buffer U16Buffer;
+
+typedef struct U16BufferMut U16BufferMut;
+
+typedef struct U32Buffer U32Buffer;
+
+typedef struct U8Buffer U8Buffer;
+
+typedef struct U8BufferMut U8BufferMut;
+
+typedef struct WEBGL_color_buffer_float WEBGL_color_buffer_float;
+
+typedef struct WEBGL_compressed_texture_atc WEBGL_compressed_texture_atc;
+
+typedef struct WEBGL_compressed_texture_etc WEBGL_compressed_texture_etc;
+
+typedef struct WEBGL_compressed_texture_etc1 WEBGL_compressed_texture_etc1;
+
+typedef struct WEBGL_compressed_texture_pvrtc WEBGL_compressed_texture_pvrtc;
+
+typedef struct WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc;
+
+typedef struct WEBGL_compressed_texture_s3tc_srgb WEBGL_compressed_texture_s3tc_srgb;
+
+typedef struct WEBGL_depth_texture WEBGL_depth_texture;
+
+typedef struct WEBGL_draw_buffers WEBGL_draw_buffers;
+
+typedef struct WEBGL_lose_context WEBGL_lose_context;
+
+typedef struct WebGLActiveInfo WebGLActiveInfo;
+
+typedef struct WebGLExtension WebGLExtension;
+
+typedef struct WebGLFramebufferAttachmentParameter WebGLFramebufferAttachmentParameter;
+
+typedef struct WebGLIndexedParameter WebGLIndexedParameter;
+
+typedef struct WebGLResult WebGLResult;
+
+typedef struct WebGLShaderPrecisionFormat WebGLShaderPrecisionFormat;
+
+typedef struct WebGLState WebGLState;
+
+typedef struct WebGLSync WebGLSync;
+
+#if defined(TARGET_OS_ANDROID)
+typedef struct AChoreographer {
+ uint8_t _unused[0];
+} AChoreographer;
+#endif
+
+#if defined(TARGET_OS_ANDROID)
+/**
+ * Prototype of the function that is called when a new frame is being rendered.
+ * It's passed the time that the frame is being rendered as nanoseconds in the
+ * CLOCK_MONOTONIC time base, as well as the data pointer provided by the
+ * application that registered a callback. All callbacks that run as part of
+ * rendering a frame will observe the same frame time, so it should be used
+ * whenever events need to be synchronized (e.g. animations).
+ */
+typedef void (*AChoreographer_frameCallback)(long frameTimeNanos, void *data);
+#endif
+
+#if defined(TARGET_OS_ANDROID)
+/**
+ * Prototype of the function that is called when a new frame is being rendered.
+ * It's passed the time that the frame is being rendered as nanoseconds in the
+ * CLOCK_MONOTONIC time base, as well as the data pointer provided by the
+ * application that registered a callback. All callbacks that run as part of
+ * rendering a frame will observe the same frame time, so it should be used
+ * whenever events need to be synchronized (e.g. animations).
+ */
+typedef void (*AChoreographer_frameCallback64)(int64_t frameTimeNanos, void *data);
+#endif
+
+void canvas_native_image_filter_destroy(struct ImageFilter *value);
+
+void canvas_native_helper_destroy(struct FileHelper *value);
+
+struct FileHelper *canvas_native_helper_read_file(const char *path);
+
+bool canvas_native_helper_read_file_has_error(const struct FileHelper *file);
+
+struct U8Buffer *canvas_native_helper_read_file_get_data(struct FileHelper *file);
+
+const char *canvas_native_helper_read_file_get_error(const struct FileHelper *file);
+
+void canvas_native_text_encoder_destroy(struct TextEncoder *value);
+
+void canvas_native_text_decoder_destroy(struct TextDecoder *value);
+
+void canvas_native_context_destroy(struct CanvasRenderingContext2D *value);
+
+void canvas_native_paint_style_destroy(struct PaintStyle *value);
+
+void canvas_native_text_metrics_destroy(struct TextMetrics *value);
+
+#if (defined(TARGET_OS_ANDROID) || defined(TARGET_OS_IOS))
+struct Raf *canvas_native_raf_create(intptr_t callback, void (*on_frame_callback)(intptr_t callback,
+ int64_t ts));
+#endif
+
+#if (defined(TARGET_OS_ANDROID) || defined(TARGET_OS_IOS))
+void canvas_native_raf_destroy(struct Raf *value);
+#endif
+
+#if (defined(TARGET_OS_ANDROID) || defined(TARGET_OS_IOS))
+void canvas_native_raf_start(struct Raf *raf);
+#endif
+
+#if (defined(TARGET_OS_ANDROID) || defined(TARGET_OS_IOS))
+void canvas_native_raf_stop(struct Raf *raf);
+#endif
+
+#if (defined(TARGET_OS_ANDROID) || defined(TARGET_OS_IOS))
+bool canvas_native_raf_get_started(const struct Raf *raf);
+#endif
+
+struct CanvasRenderingContext2D *canvas_native_context_create_with_wrapper(int64_t context,
+ int64_t gl_context);
+
+void canvas_native_context_resize(struct CanvasRenderingContext2D *context,
+ float width,
+ float height);
+
+struct CanvasRenderingContext2D *canvas_native_context_create(float width,
+ float height,
+ float density,
+ bool alpha,
+ int32_t font_color,
+ float ppi,
+ uint32_t direction);
+
+struct CanvasRenderingContext2D *canvas_native_context_create_gl(float width,
+ float height,
+ float density,
+ int64_t gl_context,
+ int32_t samples,
+ bool alpha,
+ int32_t font_color,
+ float ppi,
+ uint32_t direction);
+
+struct CanvasRenderingContext2D *canvas_native_context_create_with_pointer(int64_t pointer);
+
+struct CanvasRenderingContext2D *canvas_native_context_create_gl_no_window(float width,
+ float height,
+ float density,
+ int32_t font_color,
+ float ppi,
+ uint32_t direction,
+ bool alpha);
+
+const char *canvas_native_context_get_filter(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_filter(struct CanvasRenderingContext2D *context, const char *filter);
+
+const char *canvas_native_context_get_font(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_font(struct CanvasRenderingContext2D *context, const char *font);
+
+float canvas_native_context_get_global_alpha(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_global_alpha(struct CanvasRenderingContext2D *context, float alpha);
+
+bool canvas_native_context_get_image_smoothing_enabled(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_image_smoothing_enabled(struct CanvasRenderingContext2D *context,
+ bool enabled);
+
+const char *canvas_native_context_get_image_smoothing_quality(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_image_smoothing_quality(struct CanvasRenderingContext2D *context,
+ const char *quality);
+
+const char *canvas_native_context_get_line_join(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_line_join(struct CanvasRenderingContext2D *context,
+ const char *join);
+
+const char *canvas_native_context_get_line_cap(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_line_cap(struct CanvasRenderingContext2D *context, const char *cap);
+
+float canvas_native_context_get_miter_limit(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_miter_limit(struct CanvasRenderingContext2D *context, float limit);
+
+const char *canvas_native_context_get_shadow_color(const struct CanvasRenderingContext2D *context);
+
+struct U8Buffer *canvas_native_context_get_shadow_color_buf(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_get_shadow_color_rgba(const struct CanvasRenderingContext2D *context,
+ uint8_t *r,
+ uint8_t *g,
+ uint8_t *b,
+ uint8_t *a);
+
+void canvas_native_context_set_shadow_color(struct CanvasRenderingContext2D *context,
+ const char *color);
+
+void canvas_native_context_set_shadow_color_rgba(struct CanvasRenderingContext2D *context,
+ uint8_t r,
+ uint8_t g,
+ uint8_t b,
+ uint8_t a);
+
+float canvas_native_context_get_shadow_blur(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_shadow_blur(struct CanvasRenderingContext2D *context, float blur);
+
+float canvas_native_context_get_shadow_offset_x(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_shadow_offset_x(struct CanvasRenderingContext2D *context, float x);
+
+float canvas_native_context_get_shadow_offset_y(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_shadow_offset_y(struct CanvasRenderingContext2D *context, float y);
+
+const char *canvas_native_context_get_text_align(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_text_align(struct CanvasRenderingContext2D *context,
+ const char *alignment);
+
+const char *canvas_native_context_get_global_composition(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_global_composition(struct CanvasRenderingContext2D *context,
+ const char *composition);
+
+void canvas_native_paint_style_set_fill_color_with_c_string(struct CanvasRenderingContext2D *context,
+ const char *color);
+
+void canvas_native_paint_style_set_stroke_color_with_c_string(struct CanvasRenderingContext2D *context,
+ const char *color);
+
+void canvas_native_paint_style_set_stroke_color_with_rgba(struct CanvasRenderingContext2D *context,
+ uint8_t r,
+ uint8_t g,
+ uint8_t b,
+ uint8_t a);
+
+void canvas_native_paint_style_set_fill_color_with_rgba(struct CanvasRenderingContext2D *context,
+ uint8_t r,
+ uint8_t g,
+ uint8_t b,
+ uint8_t a);
+
+bool canvas_native_parse_css_color_rgba(const char *value,
+ uint8_t *r,
+ uint8_t *g,
+ uint8_t *b,
+ uint8_t *a);
+
+const char *canvas_native_paint_style_get_color_string(const struct PaintStyle *color);
+
+const char *canvas_native_paint_style_get_current_stroke_color_string(const struct CanvasRenderingContext2D *context);
+
+struct U8Buffer *canvas_native_paint_style_get_current_stroke_color_buf(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_paint_style_get_current_stroke_color_r_g_b_a(const struct CanvasRenderingContext2D *context,
+ uint8_t *r,
+ uint8_t *g,
+ uint8_t *b,
+ uint8_t *a);
+
+void canvas_native_paint_style_get_current_fill_color_r_g_b_a(const struct CanvasRenderingContext2D *context,
+ uint8_t *r,
+ uint8_t *g,
+ uint8_t *b,
+ uint8_t *a);
+
+const char *canvas_native_paint_style_get_current_fill_color_string(const struct CanvasRenderingContext2D *context);
+
+struct U8Buffer *canvas_native_paint_style_get_current_fill_color_buf(struct CanvasRenderingContext2D *context);
+
+enum PaintStyleType canvas_native_context_get_style_type(const struct PaintStyle *style);
+
+enum PaintStyleType canvas_native_context_get_current_fill_style_type(struct CanvasRenderingContext2D *context);
+
+enum PaintStyleType canvas_native_context_get_current_stroke_style_type(struct CanvasRenderingContext2D *context);
+
+struct PaintStyle *canvas_native_context_get_fill_style(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_fill_style(struct CanvasRenderingContext2D *context,
+ const struct PaintStyle *style);
+
+struct PaintStyle *canvas_native_context_get_stroke_style(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_stroke_style(struct CanvasRenderingContext2D *context,
+ const struct PaintStyle *style);
+
+float canvas_native_context_get_line_width(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_line_width(struct CanvasRenderingContext2D *context, float width);
+
+float canvas_native_context_get_line_dash_offset(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_line_dash_offset(struct CanvasRenderingContext2D *context,
+ float offset);
+
+struct F32Buffer *canvas_native_context_get_line_dash(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_line_dash(struct CanvasRenderingContext2D *context,
+ const struct F32Buffer *dash);
+
+void canvas_native_context_arc(struct CanvasRenderingContext2D *context,
+ float x,
+ float y,
+ float radius,
+ float start_angle,
+ float end_angle,
+ bool anticlockwise);
+
+void canvas_native_context_arc_to(struct CanvasRenderingContext2D *context,
+ float x1,
+ float y1,
+ float x2,
+ float y2,
+ float radius);
+
+void canvas_native_context_begin_path(struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_bezier_curve_to(struct CanvasRenderingContext2D *context,
+ float cp1x,
+ float cp1y,
+ float cp2x,
+ float cp2y,
+ float x,
+ float y);
+
+void canvas_native_context_clear_rect(struct CanvasRenderingContext2D *context,
+ float x,
+ float y,
+ float width,
+ float height);
+
+void canvas_native_context_clip(struct CanvasRenderingContext2D *context,
+ struct Path *path,
+ const char *rule);
+
+void canvas_native_context_clip_rule(struct CanvasRenderingContext2D *context, const char *rule);
+
+void canvas_native_context_close_path(struct CanvasRenderingContext2D *context);
+
+struct ImageData *canvas_native_context_create_image_data(int32_t width, int32_t height);
+
+struct ImageData *canvas_native_context_create_image_data_with_data(int32_t width,
+ int32_t height,
+ const struct U8Buffer *data);
+
+struct PaintStyle *canvas_native_context_create_linear_gradient(struct CanvasRenderingContext2D *context,
+ float x0,
+ float y0,
+ float x1,
+ float y1);
+
+struct PaintStyle *canvas_native_context_create_pattern(struct CanvasRenderingContext2D *context,
+ const struct U8Buffer *data,
+ int32_t width,
+ int32_t height,
+ const char *repetition);
+
+struct PaintStyle *canvas_native_context_create_pattern_asset(struct CanvasRenderingContext2D *context,
+ struct ImageAsset *asset,
+ const char *repetition);
+
+struct PaintStyle *canvas_native_context_create_pattern_encoded(struct CanvasRenderingContext2D *context,
+ const struct U8Buffer *data,
+ const char *repetition);
+
+struct PaintStyle *canvas_native_context_create_pattern_canvas2d(struct CanvasRenderingContext2D *source,
+ struct CanvasRenderingContext2D *context,
+ const char *repetition);
+
+struct PaintStyle *canvas_native_context_create_radial_gradient(struct CanvasRenderingContext2D *context,
+ float x0,
+ float y0,
+ float r0,
+ float x1,
+ float y1,
+ float r1);
+
+void canvas_native_context_draw_point(struct CanvasRenderingContext2D *context, float x, float y);
+
+void canvas_native_context_draw_points(struct CanvasRenderingContext2D *context,
+ int32_t mode,
+ const struct F32Buffer *points);
+
+void canvas_native_context_draw_image_dx_dy(struct CanvasRenderingContext2D *context,
+ const struct U8Buffer *data,
+ float width,
+ float height,
+ float dx,
+ float dy);
+
+void canvas_native_context_draw_image_dx_dy_dw_dh(struct CanvasRenderingContext2D *context,
+ const struct U8Buffer *data,
+ float width,
+ float height,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+void canvas_native_context_draw_image(struct CanvasRenderingContext2D *context,
+ const struct U8Buffer *data,
+ float width,
+ float height,
+ float sx,
+ float sy,
+ float s_width,
+ float s_height,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+void canvas_native_context_draw_image_encoded_dx_dy(struct CanvasRenderingContext2D *context,
+ const struct U8Buffer *data,
+ float dx,
+ float dy);
+
+void canvas_native_context_draw_image_encoded_dx_dy_dw_dh(struct CanvasRenderingContext2D *context,
+ const struct U8Buffer *data,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+void canvas_native_context_draw_image_encoded(struct CanvasRenderingContext2D *context,
+ const struct U8Buffer *data,
+ float sx,
+ float sy,
+ float s_width,
+ float s_height,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+void canvas_native_context_draw_image_dx_dy_asset(struct CanvasRenderingContext2D *context,
+ struct ImageAsset *asset,
+ float dx,
+ float dy);
+
+void canvas_native_context_draw_image_dx_dy_dw_dh_asset(struct CanvasRenderingContext2D *context,
+ struct ImageAsset *asset,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+void canvas_native_context_draw_image_asset(struct CanvasRenderingContext2D *context,
+ struct ImageAsset *asset,
+ float sx,
+ float sy,
+ float s_width,
+ float s_height,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+void canvas_native_context_draw_image_dx_dy_context(struct CanvasRenderingContext2D *context,
+ struct CanvasRenderingContext2D *source,
+ float dx,
+ float dy);
+
+void canvas_native_context_draw_image_dx_dy_dw_dh_context(struct CanvasRenderingContext2D *context,
+ struct CanvasRenderingContext2D *source,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+void canvas_native_context_draw_image_context(struct CanvasRenderingContext2D *context,
+ struct CanvasRenderingContext2D *source,
+ float sx,
+ float sy,
+ float s_width,
+ float s_height,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+void canvas_native_context_ellipse(struct CanvasRenderingContext2D *context,
+ float x,
+ float y,
+ float radius_x,
+ float radius_y,
+ float rotation,
+ float start_angle,
+ float end_angle,
+ bool anticlockwise);
+
+void canvas_native_context_fill(struct CanvasRenderingContext2D *context, const char *rule);
+
+void canvas_native_context_fill_with_path(struct CanvasRenderingContext2D *context,
+ struct Path *path,
+ const char *rule);
+
+void canvas_native_context_fill_rect(struct CanvasRenderingContext2D *context,
+ float x,
+ float y,
+ float width,
+ float height);
+
+void canvas_native_context_fill_text(struct CanvasRenderingContext2D *context,
+ const char *text,
+ float x,
+ float y,
+ float width);
+
+struct ImageData *canvas_native_context_get_image_data(struct CanvasRenderingContext2D *context,
+ float sx,
+ float sy,
+ float sw,
+ float sh);
+
+struct Matrix *canvas_native_context_get_transform(struct CanvasRenderingContext2D *context);
+
+bool canvas_native_context_is_point_in_path(struct CanvasRenderingContext2D *context,
+ float x,
+ float y,
+ const char *rule);
+
+bool canvas_native_context_is_point_in_path_with_path(struct CanvasRenderingContext2D *context,
+ struct Path *path,
+ float x,
+ float y,
+ const char *rule);
+
+bool canvas_native_context_is_point_in_stroke(struct CanvasRenderingContext2D *context,
+ float x,
+ float y);
+
+bool canvas_native_context_is_point_in_stroke_with_path(struct CanvasRenderingContext2D *context,
+ struct Path *path,
+ float x,
+ float y);
+
+void canvas_native_context_line_to(struct CanvasRenderingContext2D *context, float x, float y);
+
+struct TextMetrics *canvas_native_context_measure_text(struct CanvasRenderingContext2D *context,
+ const char *text);
+
+void canvas_native_context_move_to(struct CanvasRenderingContext2D *context, float x, float y);
+
+void canvas_native_context_put_image_data(struct CanvasRenderingContext2D *context,
+ struct ImageData *image_data,
+ float dx,
+ float dy,
+ float dirty_x,
+ float dirty_y,
+ float dirty_width,
+ float dirty_height);
+
+void canvas_native_context_quadratic_curve_to(struct CanvasRenderingContext2D *context,
+ float cpx,
+ float cpy,
+ float x,
+ float y);
+
+void canvas_native_context_rect(struct CanvasRenderingContext2D *context,
+ float x,
+ float y,
+ float width,
+ float height);
+
+void canvas_native_context_round_rect(struct CanvasRenderingContext2D *context,
+ float x,
+ float y,
+ float width,
+ float height,
+ const struct F32Buffer *radii);
+
+void canvas_native_context_round_rect_tl_tr_br_bl(struct CanvasRenderingContext2D *context,
+ float x,
+ float y,
+ float width,
+ float height,
+ float top_left,
+ float top_right,
+ float bottom_right,
+ float bottom_left);
+
+void canvas_native_context_reset_transform(struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_restore(struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_rotate(struct CanvasRenderingContext2D *context, float angle);
+
+void canvas_native_context_save(struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_scale(struct CanvasRenderingContext2D *context, float x, float y);
+
+void canvas_native_context_set_transform(struct CanvasRenderingContext2D *context,
+ float a,
+ float b,
+ float c,
+ float d,
+ float e,
+ float f);
+
+void canvas_native_context_set_transform_matrix(struct CanvasRenderingContext2D *context,
+ struct Matrix *matrix);
+
+void canvas_native_context_stroke(struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_stroke_with_path(struct CanvasRenderingContext2D *context,
+ struct Path *path);
+
+void canvas_native_context_stroke_rect(struct CanvasRenderingContext2D *context,
+ float x,
+ float y,
+ float width,
+ float height);
+
+void canvas_native_context_stroke_text(struct CanvasRenderingContext2D *context,
+ const char *text,
+ float x,
+ float y,
+ float width);
+
+void canvas_native_context_transform(struct CanvasRenderingContext2D *context,
+ float a,
+ float b,
+ float c,
+ float d,
+ float e,
+ float f);
+
+void canvas_native_context_translate(struct CanvasRenderingContext2D *context, float x, float y);
+
+void canvas_native_context_flush(struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_render(const struct CanvasRenderingContext2D *context);
+
+const char *canvas_native_to_data_url(struct CanvasRenderingContext2D *context,
+ const char *format,
+ uint32_t quality);
+
+struct ImageAsset *canvas_native_image_bitmap_create_from_asset(struct ImageAsset *asset,
+ bool flip_y,
+ enum ImageBitmapPremultiplyAlpha premultiply_alpha,
+ enum ImageBitmapColorSpaceConversion color_space_conversion,
+ enum ImageBitmapResizeQuality resize_quality,
+ float resize_width,
+ float resize_height);
+
+struct ImageAsset *canvas_native_image_bitmap_create_from_asset_src_rect(struct ImageAsset *asset,
+ float sx,
+ float sy,
+ float s_width,
+ float s_height,
+ bool flip_y,
+ enum ImageBitmapPremultiplyAlpha premultiply_alpha,
+ enum ImageBitmapColorSpaceConversion color_space_conversion,
+ enum ImageBitmapResizeQuality resize_quality,
+ float resize_width,
+ float resize_height);
+
+struct ImageAsset *canvas_native_image_bitmap_create_from_encoded_bytes(const struct U8Buffer *bytes,
+ bool flip_y,
+ enum ImageBitmapPremultiplyAlpha premultiply_alpha,
+ enum ImageBitmapColorSpaceConversion color_space_conversion,
+ enum ImageBitmapResizeQuality resize_quality,
+ float resize_width,
+ float resize_height);
+
+bool canvas_native_image_bitmap_create_from_encoded_bytes_with_output(const struct U8Buffer *bytes,
+ bool flip_y,
+ enum ImageBitmapPremultiplyAlpha premultiply_alpha,
+ enum ImageBitmapColorSpaceConversion color_space_conversion,
+ enum ImageBitmapResizeQuality resize_quality,
+ float resize_width,
+ float resize_height,
+ struct ImageAsset *output);
+
+struct ImageAsset *canvas_native_image_bitmap_create_from_encoded_bytes_src_rect(const struct U8Buffer *bytes,
+ float sx,
+ float sy,
+ float s_width,
+ float s_height,
+ bool flip_y,
+ enum ImageBitmapPremultiplyAlpha premultiply_alpha,
+ enum ImageBitmapColorSpaceConversion color_space_conversion,
+ enum ImageBitmapResizeQuality resize_quality,
+ float resize_width,
+ float resize_height);
+
+bool canvas_native_image_bitmap_create_from_encoded_bytes_src_rect_with_output(const struct U8Buffer *bytes,
+ float sx,
+ float sy,
+ float s_width,
+ float s_height,
+ bool flip_y,
+ enum ImageBitmapPremultiplyAlpha premultiply_alpha,
+ enum ImageBitmapColorSpaceConversion color_space_conversion,
+ enum ImageBitmapResizeQuality resize_quality,
+ float resize_width,
+ float resize_height,
+ struct ImageAsset *output);
+
+void canvas_native_path_add_path(struct Path *path, const struct Path *path_to_add);
+
+struct Path *canvas_native_path_create(void);
+
+struct Path *canvas_native_path_create_with_path(const struct Path *path);
+
+struct Path *canvas_native_path_create_with_string(const char *string);
+
+void canvas_native_path_close_path(struct Path *path);
+
+void canvas_native_path_move_to(struct Path *path, float x, float y);
+
+void canvas_native_path_line_to(struct Path *path, float x, float y);
+
+void canvas_native_path_bezier_curve_to(struct Path *path,
+ float cp1x,
+ float cp1y,
+ float cp2x,
+ float cp2y,
+ float x,
+ float y);
+
+void canvas_native_path_quadratic_curve_to(struct Path *path,
+ float cpx,
+ float cpy,
+ float x,
+ float y);
+
+void canvas_native_path_arc(struct Path *path,
+ float x,
+ float y,
+ float radius,
+ float start_angle,
+ float end_angle,
+ bool anti_clockwise);
+
+void canvas_native_path_arc_to(struct Path *path,
+ float x1,
+ float y1,
+ float x2,
+ float y2,
+ float radius);
+
+void canvas_native_path_ellipse(struct Path *path,
+ float x,
+ float y,
+ float radius_x,
+ float radius_y,
+ float rotation,
+ float start_angle,
+ float end_angle,
+ bool anticlockwise);
+
+void canvas_native_path_rect(struct Path *path, float x, float y, float width, float height);
+
+void canvas_native_path_round_rect(struct Path *path,
+ float x,
+ float y,
+ float width,
+ float height,
+ const struct F32Buffer *radii);
+
+void canvas_native_path_round_rect_tl_tr_br_bl(struct Path *path,
+ float x,
+ float y,
+ float width,
+ float height,
+ float top_left,
+ float top_right,
+ float bottom_right,
+ float bottom_left);
+
+const char *canvas_native_path_to_string(const struct Path *path);
+
+struct Matrix *canvas_native_matrix_create(void);
+
+void canvas_native_matrix_update(struct Matrix *matrix, const struct F32Buffer *slice);
+
+void canvas_native_matrix_update_3d(struct Matrix *matrix, const struct F32Buffer *slice);
+
+float canvas_native_matrix_get_a(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_a(struct Matrix *matrix, float a);
+
+float canvas_native_matrix_get_b(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_b(struct Matrix *matrix, float b);
+
+float canvas_native_matrix_get_c(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_c(struct Matrix *matrix, float c);
+
+float canvas_native_matrix_get_d(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_d(struct Matrix *matrix, float d);
+
+float canvas_native_matrix_get_e(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_e(struct Matrix *matrix, float e);
+
+float canvas_native_matrix_get_f(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_f(struct Matrix *matrix, float f);
+
+float canvas_native_matrix_get_m11(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m11(struct Matrix *matrix, float m11);
+
+float canvas_native_matrix_get_m12(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m12(struct Matrix *matrix, float m12);
+
+float canvas_native_matrix_get_m13(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m13(struct Matrix *matrix, float m13);
+
+float canvas_native_matrix_get_m14(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m14(struct Matrix *matrix, float m14);
+
+float canvas_native_matrix_get_m21(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m21(struct Matrix *matrix, float m21);
+
+float canvas_native_matrix_get_m22(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m22(struct Matrix *matrix, float m22);
+
+float canvas_native_matrix_get_m23(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m23(struct Matrix *matrix, float m23);
+
+float canvas_native_matrix_get_m24(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m24(struct Matrix *matrix, float m24);
+
+float canvas_native_matrix_get_m31(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m31(struct Matrix *matrix, float m31);
+
+float canvas_native_matrix_get_m32(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m32(struct Matrix *matrix, float m32);
+
+float canvas_native_matrix_get_m33(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m33(struct Matrix *matrix, float m33);
+
+float canvas_native_matrix_get_m34(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m34(struct Matrix *matrix, float m34);
+
+float canvas_native_matrix_get_m41(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m41(struct Matrix *matrix, float m41);
+
+float canvas_native_matrix_get_m42(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m42(struct Matrix *matrix, float m42);
+
+float canvas_native_matrix_get_m43(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m43(struct Matrix *matrix, float m43);
+
+float canvas_native_matrix_get_m44(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m44(struct Matrix *matrix, float m44);
+
+struct ImageData *canvas_native_image_data_create(int32_t width, int32_t height);
+
+int32_t canvas_native_image_data_get_width(const struct ImageData *image_data);
+
+int32_t canvas_native_image_data_get_height(const struct ImageData *image_data);
+
+struct U8BufferMut *canvas_native_image_data_get_data(struct ImageData *image_data);
+
+struct ImageData *canvas_native_image_data_get_shared_instance(struct ImageData *image_data);
+
+struct ImageAsset *canvas_native_image_asset_create(void);
+
+struct ImageAsset *canvas_native_image_asset_shared_clone(const struct ImageAsset *asset);
+
+bool canvas_native_image_asset_load_from_fd(struct ImageAsset *asset, int fd);
+
+bool canvas_native_image_asset_load_from_path(struct ImageAsset *asset, const char *path);
+
+bool canvas_native_image_asset_load_from_raw(struct ImageAsset *asset,
+ const struct U8Buffer *array);
+
+bool canvas_native_image_asset_load_from_url(struct ImageAsset *asset, const char *url);
+
+int64_t canvas_native_image_asset_addr(struct ImageAsset *asset);
+
+uint32_t canvas_native_image_asset_width(struct ImageAsset *asset);
+
+uint32_t canvas_native_image_asset_height(struct ImageAsset *asset);
+
+const char *canvas_native_image_asset_get_error(struct ImageAsset *asset);
+
+bool canvas_native_image_asset_has_error(struct ImageAsset *asset);
+
+bool canvas_native_image_asset_scale(struct ImageAsset *asset, uint32_t x, uint32_t y);
+
+bool canvas_native_image_asset_save_path(struct ImageAsset *asset,
+ const char *path,
+ uint32_t format);
+
+float canvas_native_text_metrics_get_width(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_actual_bounding_box_left(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_actual_bounding_box_right(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_actual_bounding_box_ascent(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_actual_bounding_box_descent(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_font_bounding_box_ascent(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_font_bounding_box_descent(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_em_height_ascent(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_em_height_descent(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_hanging_baseline(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_alphabetic_baseline(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_ideographic_baseline(const struct TextMetrics *metrics);
+
+struct PaintStyle *canvas_native_paint_style_from_bytes(const struct CanvasRenderingContext2D *context,
+ int32_t repetition,
+ int32_t width,
+ int32_t height,
+ const struct U8Buffer *bytes);
+
+struct PaintStyle *canvas_native_pattern_from_ptr(int64_t ptr);
+
+struct PaintStyle *canvas_native_paint_style_empty(void);
+
+void canvas_native_gradient_add_color_stop(struct PaintStyle *style, float stop, const char *color);
+
+void canvas_native_pattern_set_transform(struct PaintStyle *pattern, const struct Matrix *matrix);
+
+struct TextDecoder *canvas_native_text_decoder_create(const char *decoding);
+
+const char *canvas_native_text_decoder_decode(const struct TextDecoder *decoder,
+ const struct U8Buffer *data);
+
+const char *canvas_native_text_decoder_get_encoding(const struct TextDecoder *decoder);
+
+struct TextEncoder *canvas_native_text_encoder_create(const char *encoding);
+
+struct U8Buffer *canvas_native_text_encoder_encode(const struct TextEncoder *encoder,
+ const char *text);
+
+const char *canvas_native_text_encoder_get_encoding(const struct TextEncoder *encoder);
+
+bool canvas_native_context_gl_make_current(const struct CanvasRenderingContext2D *context);
+
+bool canvas_native_context_gl_swap_buffers(const struct CanvasRenderingContext2D *context);
+
+struct PaintStyle *canvas_native_context_create_pattern_webgl(struct WebGLState *source,
+ struct CanvasRenderingContext2D *context,
+ const char *repetition);
+
+bool canvas_native_webgl_make_current(struct WebGLState *state);
+
+bool canvas_native_webgl_swap_buffers(struct WebGLState *state);
+
+void canvas_native_webgl_state_destroy(struct WebGLState *state);
+
+void canvas_native_webgl_active_info_destroy(struct WebGLActiveInfo *info);
+
+void canvas_native_context_attributes_destroy(struct ContextAttributes *attr);
+
+void canvas_native_webgl_framebuffer_attachment_parameter_destroy(struct WebGLFramebufferAttachmentParameter *parameter);
+
+void canvas_native_webgl_shader_precision_format_destroy(struct WebGLFramebufferAttachmentParameter *value);
+
+void canvas_native_webgl_extension_destroy(struct WebGLExtension *value);
+
+void canvas_native_webgl_EXT_blend_minmax_destroy(struct EXT_blend_minmax *value);
+
+void canvas_native_webgl_EXT_color_buffer_half_float_destroy(struct EXT_color_buffer_half_float *value);
+
+void canvas_native_webgl_EXT_disjoint_timer_query_destroy(struct EXT_disjoint_timer_query *value);
+
+void canvas_native_webgl_EXT_sRGB_destroy(struct EXT_disjoint_timer_query *value);
+
+void canvas_native_webgl_EXT_shader_texture_lod_destroy(struct EXT_shader_texture_lod *value);
+
+void canvas_native_webgl_EXT_texture_filter_anisotropic_destroy(struct EXT_texture_filter_anisotropic *value);
+
+void canvas_native_webgl_OES_element_index_uint_destroy(struct OES_element_index_uint *value);
+
+void canvas_native_webgl_OES_standard_derivatives_destroy(struct OES_standard_derivatives *value);
+
+void canvas_native_webgl_OES_texture_float_destroy(struct OES_texture_float *value);
+
+void canvas_native_webgl_OES_texture_float_linear_destroy(struct OES_texture_float_linear *value);
+
+void canvas_native_webgl_OES_texture_half_float_destroy(struct OES_texture_half_float *value);
+
+void canvas_native_webgl_OES_texture_half_float_linear_destroy(struct OES_texture_half_float_linear *value);
+
+void canvas_native_webgl_OES_vertex_array_object_destroy(struct OES_vertex_array_object *value);
+
+void canvas_native_webgl_WEBGL_color_buffer_float_destroy(struct WEBGL_color_buffer_float *value);
+
+void canvas_native_webgl_WEBGL_compressed_texture_atc_destroy(struct WEBGL_compressed_texture_atc *value);
+
+void canvas_native_webgl_WEBGL_compressed_texture_etc1_destroy(struct WEBGL_compressed_texture_etc1 *value);
+
+void canvas_native_webgl_WEBGL_compressed_texture_s3tc_destroy(struct WEBGL_compressed_texture_s3tc *value);
+
+void canvas_native_webgl_WEBGL_compressed_texture_s3tc_srgb_destroy(struct WEBGL_compressed_texture_s3tc_srgb *value);
+
+void canvas_native_webgl_WEBGL_compressed_texture_etc_destroy(struct WEBGL_compressed_texture_etc *value);
+
+void canvas_native_webgl_WEBGL_compressed_texture_pvrtc_destroy(struct WEBGL_compressed_texture_pvrtc *value);
+
+void canvas_native_webgl_WEBGL_lose_context_destroy(struct WEBGL_lose_context *value);
+
+void canvas_native_webgl_ANGLE_instanced_arrays_destroy(struct ANGLE_instanced_arrays *value);
+
+void canvas_native_webgl_WEBGL_depth_texture_destroy(struct WEBGL_depth_texture *value);
+
+void canvas_native_webgl_WEBGL_draw_buffers_destroy(struct WEBGL_draw_buffers *value);
+
+void canvas_native_webgl_WebGLResult_destroy(struct WebGLResult *value);
+
+const char *canvas_native_webgl_active_info_get_name(const struct WebGLActiveInfo *info);
+
+int32_t canvas_native_webgl_active_info_get_size(const struct WebGLActiveInfo *info);
+
+uint32_t canvas_native_webgl_active_info_get_type(const struct WebGLActiveInfo *info);
+
+bool canvas_native_webgl_active_info_get_is_empty(const struct WebGLActiveInfo *info);
+
+int32_t canvas_native_webgl_shader_precision_format_get_range_min(const struct WebGLShaderPrecisionFormat *shader);
+
+int32_t canvas_native_webgl_shader_precision_format_get_range_max(const struct WebGLShaderPrecisionFormat *shader);
+
+int32_t canvas_native_webgl_shader_precision_format_get_precision(const struct WebGLShaderPrecisionFormat *shader);
+
+bool canvas_native_webgl_context_attribute_get_get_alpha(const struct ContextAttributes *attr);
+
+bool canvas_native_webgl_context_attribute_get_get_antialias(const struct ContextAttributes *attr);
+
+bool canvas_native_webgl_context_attribute_get_get_depth(const struct ContextAttributes *attr);
+
+bool canvas_native_webgl_context_attribute_get_get_fail_if_major_performance_caveat(const struct ContextAttributes *attr);
+
+const char *canvas_native_webgl_context_attribute_get_get_power_preference(const struct ContextAttributes *attr);
+
+bool canvas_native_webgl_context_attribute_get_get_premultiplied_alpha(const struct ContextAttributes *attr);
+
+bool canvas_native_webgl_context_attribute_get_get_preserve_drawing_buffer(const struct ContextAttributes *attr);
+
+bool canvas_native_webgl_context_attribute_get_get_stencil(const struct ContextAttributes *attr);
+
+bool canvas_native_webgl_context_attribute_get_get_desynchronized(const struct ContextAttributes *attr);
+
+bool canvas_native_webgl_context_attribute_get_get_xr_compatible(const struct ContextAttributes *attr);
+
+bool canvas_native_webgl_context_extension_is_none(const struct WebGLExtension *extension);
+
+enum WebGLExtensionType canvas_native_webgl_context_extension_get_type(const struct WebGLExtension *extension);
+
+struct EXT_disjoint_timer_query *canvas_native_webgl_context_extension_to_ext_disjoint_timer_query(struct WebGLExtension *extension);
+
+struct ANGLE_instanced_arrays *canvas_native_webgl_context_extension_to_angle_instanced_arrays(struct WebGLExtension *extension);
+
+struct WEBGL_lose_context *canvas_native_webgl_context_extension_to_lose_context(struct WebGLExtension *extension);
+
+struct WEBGL_draw_buffers *canvas_native_webgl_context_extension_to_draw_buffers(struct WebGLExtension *extension);
+
+struct OES_vertex_array_object *canvas_native_webgl_context_extension_to_oes_vertex_array_object(struct WebGLExtension *extension);
+
+int32_t canvas_native_webgl_state_get_unpack_colorspace_conversion_webgl(struct WebGLState *state);
+
+bool canvas_native_webgl_state_get_flip_y(struct WebGLState *state);
+
+bool canvas_native_webgl_state_get_premultiplied_alpha(struct WebGLState *state);
+
+int32_t canvas_native_webgl_state_get_drawing_buffer_width(struct WebGLState *state);
+
+int32_t canvas_native_webgl_state_get_drawing_buffer_height(struct WebGLState *state);
+
+uint32_t canvas_native_webgl_ext_disjoint_timer_query_create_query_ext(const struct EXT_disjoint_timer_query *query);
+
+void canvas_native_webgl_ext_disjoint_timer_query_delete_query_ext(uint32_t value,
+ const struct EXT_disjoint_timer_query *query);
+
+bool canvas_native_webgl_ext_disjoint_timer_query_is_query_ext(uint32_t value,
+ const struct EXT_disjoint_timer_query *query);
+
+void canvas_native_webgl_ext_disjoint_timer_query_begin_query_ext(uint32_t target,
+ uint32_t value,
+ const struct EXT_disjoint_timer_query *query);
+
+void canvas_native_webgl_ext_disjoint_timer_query_end_query_ext(uint32_t target,
+ const struct EXT_disjoint_timer_query *query);
+
+void canvas_native_webgl_ext_disjoint_timer_query_query_counter_ext(uint32_t value,
+ uint32_t target,
+ const struct EXT_disjoint_timer_query *query);
+
+int32_t canvas_native_webgl_ext_disjoint_timer_query_get_query_ext(uint32_t target,
+ uint32_t pname,
+ const struct EXT_disjoint_timer_query *query);
+
+struct WebGLResult *canvas_native_webgl_ext_disjoint_timer_query_get_query_object_ext(uint32_t target,
+ uint32_t pname,
+ const struct EXT_disjoint_timer_query *query);
+
+struct WebGLState *canvas_native_webgl_create(int64_t gl_context,
+ const char *version,
+ bool alpha,
+ bool antialias,
+ bool depth,
+ bool fail_if_major_performance_caveat,
+ const char *power_preference,
+ bool premultiplied_alpha,
+ bool preserve_drawing_buffer,
+ bool stencil,
+ bool desynchronized,
+ bool xr_compatible);
+
+struct WebGLState *canvas_native_webgl_create_no_window(int32_t width,
+ int32_t height,
+ const char *version,
+ bool alpha,
+ bool antialias,
+ bool depth,
+ bool fail_if_major_performance_caveat,
+ const char *power_preference,
+ bool premultiplied_alpha,
+ bool preserve_drawing_buffer,
+ bool stencil,
+ bool desynchronized,
+ bool xr_compatible,
+ bool is_canvas);
+
+void canvas_native_webgl_active_texture(uint32_t texture, struct WebGLState *state);
+
+void canvas_native_webgl_attach_shader(uint32_t program, uint32_t shader, struct WebGLState *state);
+
+void canvas_native_webgl_bind_attrib_location(uint32_t program,
+ uint32_t index,
+ const char *name,
+ struct WebGLState *state);
+
+void canvas_native_webgl_bind_buffer(uint32_t target, uint32_t buffer, struct WebGLState *state);
+
+void canvas_native_webgl_bind_frame_buffer(uint32_t target,
+ uint32_t framebuffer,
+ struct WebGLState *state);
+
+void canvas_native_webgl_bind_render_buffer(uint32_t target,
+ uint32_t renderbuffer,
+ struct WebGLState *state);
+
+void canvas_native_webgl_bind_texture(uint32_t target, uint32_t texture, struct WebGLState *state);
+
+void canvas_native_webgl_blend_color(float red,
+ float green,
+ float blue,
+ float alpha,
+ struct WebGLState *state);
+
+void canvas_native_webgl_blend_equation_separate(uint32_t mode_rgb,
+ uint32_t mode_alpha,
+ struct WebGLState *state);
+
+void canvas_native_webgl_blend_equation(uint32_t mode, struct WebGLState *state);
+
+void canvas_native_webgl_blend_func_separate(uint32_t src_rgb,
+ uint32_t dst_rgb,
+ uint32_t src_alpha,
+ uint32_t dst_alpha,
+ struct WebGLState *state);
+
+void canvas_native_webgl_blend_func(uint32_t sfactor, uint32_t dfactor, struct WebGLState *state);
+
+void canvas_native_webgl_buffer_data(uint32_t target,
+ const struct U8Buffer *src_data,
+ uint32_t usage,
+ struct WebGLState *state);
+
+void canvas_native_webgl_buffer_data_u16(uint32_t target,
+ const struct U16Buffer *src_data,
+ uint32_t usage,
+ struct WebGLState *state);
+
+void canvas_native_webgl_buffer_data_f32(uint32_t target,
+ const struct F32Buffer *src_data,
+ uint32_t usage,
+ struct WebGLState *state);
+
+void canvas_native_webgl_buffer_data_none(uint32_t target,
+ intptr_t size,
+ uint32_t usage,
+ struct WebGLState *state);
+
+void canvas_native_webgl_buffer_sub_data(uint32_t target,
+ intptr_t offset,
+ const struct U8Buffer *src_data,
+ struct WebGLState *state);
+
+void canvas_native_webgl_buffer_sub_data_none(uint32_t target,
+ intptr_t offset,
+ struct WebGLState *state);
+
+uint32_t canvas_native_webgl_check_frame_buffer_status(uint32_t target, struct WebGLState *state);
+
+void canvas_native_webgl_clear(uint32_t mask, struct WebGLState *state);
+
+void canvas_native_webgl_clear_color(float red,
+ float green,
+ float blue,
+ float alpha,
+ struct WebGLState *state);
+
+void canvas_native_webgl_clear_depth(float depth, struct WebGLState *state);
+
+void canvas_native_webgl_clear_stencil(int32_t stencil, struct WebGLState *state);
+
+void canvas_native_webgl_color_mask(bool red,
+ bool green,
+ bool blue,
+ bool alpha,
+ struct WebGLState *state);
+
+void canvas_native_webgl_commit(struct WebGLState*);
+
+void canvas_native_webgl_compile_shader(uint32_t shader, struct WebGLState *state);
+
+void canvas_native_webgl_compressed_tex_image2d(uint32_t target,
+ int32_t level,
+ uint32_t internalformat,
+ int32_t width,
+ int32_t height,
+ int32_t border,
+ const struct U8Buffer *pixels,
+ struct WebGLState *state);
+
+void canvas_native_webgl_compressed_tex_image2d_none(uint32_t target,
+ int32_t level,
+ uint32_t internalformat,
+ int32_t width,
+ int32_t height,
+ int32_t border,
+ struct WebGLState *state);
+
+void canvas_native_webgl_compressed_tex_sub_image2d(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t width,
+ int32_t height,
+ uint32_t format,
+ const struct U8Buffer *pixels,
+ struct WebGLState *state);
+
+void canvas_native_webgl_copy_tex_image2d(uint32_t target,
+ int32_t level,
+ uint32_t internalformat,
+ int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ int32_t border,
+ struct WebGLState *state);
+
+void canvas_native_webgl_copy_tex_sub_image2d(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ struct WebGLState *state);
+
+uint32_t canvas_native_webgl_create_buffer(struct WebGLState *state);
+
+uint32_t canvas_native_webgl_create_framebuffer(struct WebGLState *state);
+
+uint32_t canvas_native_webgl_create_program(struct WebGLState *state);
+
+uint32_t canvas_native_webgl_create_renderbuffer(struct WebGLState *state);
+
+uint32_t canvas_native_webgl_create_shader(uint32_t shader_type, struct WebGLState *state);
+
+uint32_t canvas_native_webgl_create_texture(struct WebGLState *state);
+
+void canvas_native_webgl_cull_face(uint32_t mode, struct WebGLState *state);
+
+void canvas_native_webgl_delete_buffer(uint32_t buffer, struct WebGLState *state);
+
+void canvas_native_webgl_delete_framebuffer(uint32_t frame_buffer, struct WebGLState *state);
+
+void canvas_native_webgl_delete_program(uint32_t program, struct WebGLState *state);
+
+void canvas_native_webgl_delete_renderbuffer(uint32_t render_buffer, struct WebGLState *state);
+
+void canvas_native_webgl_delete_shader(uint32_t shader, struct WebGLState *state);
+
+void canvas_native_webgl_delete_texture(uint32_t texture, struct WebGLState *state);
+
+void canvas_native_webgl_depth_func(uint32_t func, struct WebGLState *state);
+
+void canvas_native_webgl_depth_mask(bool flag, struct WebGLState *state);
+
+void canvas_native_webgl_depth_range(float z_near, float z_far, struct WebGLState *state);
+
+void canvas_native_webgl_detach_shader(uint32_t program, uint32_t shader, struct WebGLState *state);
+
+void canvas_native_webgl_disable(uint32_t cap, struct WebGLState *state);
+
+void canvas_native_webgl_disable_vertex_attrib_array(uint32_t index, struct WebGLState *state);
+
+void canvas_native_webgl_draw_arrays(uint32_t mode,
+ int32_t first,
+ int32_t count,
+ struct WebGLState *state);
+
+void canvas_native_webgl_draw_elements(uint32_t mode,
+ int32_t count,
+ uint32_t element_type,
+ intptr_t offset,
+ struct WebGLState *state);
+
+void canvas_native_webgl_enable(uint32_t cap, struct WebGLState *state);
+
+void canvas_native_webgl_enable_vertex_attrib_array(uint32_t index, struct WebGLState *state);
+
+void canvas_native_webgl_finish(struct WebGLState *state);
+
+void canvas_native_webgl_flush(struct WebGLState *state);
+
+void canvas_native_webgl_framebuffer_renderbuffer(uint32_t target,
+ uint32_t attachment,
+ uint32_t renderbuffertarget,
+ uint32_t renderbuffer,
+ struct WebGLState *state);
+
+void canvas_native_webgl_framebuffer_texture2d(uint32_t target,
+ uint32_t attachment,
+ uint32_t textarget,
+ uint32_t texture,
+ int32_t level,
+ struct WebGLState *state);
+
+void canvas_native_webgl_front_face(uint32_t mode, struct WebGLState *state);
+
+void canvas_native_webgl_generate_mipmap(uint32_t target, struct WebGLState *state);
+
+struct WebGLActiveInfo *canvas_native_webgl_get_active_attrib(uint32_t program,
+ uint32_t index,
+ struct WebGLState *state);
+
+struct WebGLActiveInfo *canvas_native_webgl_get_active_uniform(uint32_t program,
+ uint32_t index,
+ struct WebGLState *state);
+
+struct U32Buffer *canvas_native_webgl_get_attached_shaders(uint32_t program,
+ struct WebGLState *state);
+
+int32_t canvas_native_webgl_get_attrib_location(uint32_t program,
+ const char *name,
+ struct WebGLState *state);
+
+int32_t canvas_native_webgl_get_buffer_parameter(uint32_t target,
+ uint32_t pname,
+ struct WebGLState *state);
+
+struct ContextAttributes *canvas_native_webgl_get_context_attributes(struct WebGLState *state);
+
+uint32_t canvas_native_webgl_get_error(struct WebGLState *state);
+
+const struct WebGLExtension *canvas_native_webgl_get_extension(const char *name,
+ struct WebGLState *state);
+
+struct WebGLFramebufferAttachmentParameter *canvas_native_webgl_get_framebuffer_attachment_parameter(uint32_t target,
+ uint32_t attachment,
+ uint32_t pname,
+ struct WebGLState *state);
+
+bool canvas_native_webgl_framebuffer_attachment_parameter_get_is_texture(const struct WebGLFramebufferAttachmentParameter *param);
+
+bool canvas_native_webgl_framebuffer_attachment_parameter_get_is_renderbuffer(const struct WebGLFramebufferAttachmentParameter *param);
+
+int32_t canvas_native_webgl_framebuffer_attachment_parameter_get_value(const struct WebGLFramebufferAttachmentParameter *param);
+
+struct WebGLResult *canvas_native_webgl_get_parameter(uint32_t pname, struct WebGLState *state);
+
+const char *canvas_native_webgl_get_program_info_log(uint32_t program, struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl_get_program_parameter(uint32_t program,
+ uint32_t pname,
+ struct WebGLState *state);
+
+int32_t canvas_native_webgl_get_renderbuffer_parameter(uint32_t target,
+ uint32_t pname,
+ struct WebGLState *state);
+
+const char *canvas_native_webgl_get_shader_info_log(uint32_t shader, struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl_get_shader_parameter(uint32_t shader,
+ uint32_t pname,
+ struct WebGLState *state);
+
+struct WebGLShaderPrecisionFormat *canvas_native_webgl_get_shader_precision_format(uint32_t shader_type,
+ uint32_t precision_type,
+ struct WebGLState *state);
+
+const char *canvas_native_webgl_get_shader_source(uint32_t shader, struct WebGLState *state);
+
+struct StringBuffer *canvas_native_webgl_get_supported_extensions(struct WebGLState *state);
+
+const char *canvas_native_webgl_get_supported_extensions_to_string(struct WebGLState *state);
+
+int32_t canvas_native_webgl_get_tex_parameter(uint32_t target,
+ uint32_t pname,
+ struct WebGLState *state);
+
+int32_t canvas_native_webgl_get_uniform_location(uint32_t program,
+ const char *name,
+ struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl_get_uniform(uint32_t program,
+ int32_t location,
+ struct WebGLState *state);
+
+uintptr_t canvas_native_webgl_get_vertex_attrib_offset(uint32_t index,
+ uint32_t pname,
+ struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl_get_vertex_attrib(uint32_t index,
+ uint32_t pname,
+ struct WebGLState *state);
+
+bool canvas_native_webgl_get_is_context_lost(struct WebGLState*);
+
+void canvas_native_webgl_hint(uint32_t target, uint32_t mode, struct WebGLState *state);
+
+bool canvas_native_webgl_is_buffer(uint32_t buffer, struct WebGLState *state);
+
+bool canvas_native_webgl_is_enabled(uint32_t cap, struct WebGLState *state);
+
+bool canvas_native_webgl_is_framebuffer(uint32_t framebuffer, struct WebGLState *state);
+
+bool canvas_native_webgl_is_program(uint32_t program, struct WebGLState *state);
+
+bool canvas_native_webgl_is_renderbuffer(uint32_t renderbuffer, struct WebGLState *state);
+
+bool canvas_native_webgl_is_shader(uint32_t shader, struct WebGLState *state);
+
+bool canvas_native_webgl_is_texture(uint32_t texture, struct WebGLState *state);
+
+void canvas_native_webgl_line_width(float width, struct WebGLState *state);
+
+void canvas_native_webgl_link_program(uint32_t program, struct WebGLState *state);
+
+void canvas_native_webgl_pixel_storei(uint32_t pname, int32_t param, struct WebGLState *state);
+
+void canvas_native_webgl_polygon_offset(float factor, float units, struct WebGLState *state);
+
+void canvas_native_webgl_read_pixels_u8(int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ uint32_t format,
+ uint32_t pixel_type,
+ struct U8BufferMut *pixels,
+ struct WebGLState *state);
+
+void canvas_native_webgl_read_pixels_u16(int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ uint32_t format,
+ uint32_t pixel_type,
+ struct U16BufferMut *pixels,
+ struct WebGLState *state);
+
+void canvas_native_webgl_read_pixels_f32(int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ uint32_t format,
+ uint32_t pixel_type,
+ struct F32BufferMut *pixels,
+ struct WebGLState *state);
+
+void canvas_native_webgl_renderbuffer_storage(uint32_t target,
+ uint32_t internal_format,
+ int32_t width,
+ int32_t height,
+ struct WebGLState *state);
+
+void canvas_native_webgl_sample_coverage(float value, bool invert, struct WebGLState *state);
+
+void canvas_native_webgl_scissor(int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ struct WebGLState *state);
+
+void canvas_native_webgl_shader_source(uint32_t shader,
+ const char *source,
+ struct WebGLState *state);
+
+void canvas_native_webgl_stencil_func(uint32_t func,
+ int32_t reference,
+ uint32_t mask,
+ struct WebGLState *state);
+
+void canvas_native_webgl_stencil_func_separate(uint32_t face,
+ uint32_t func,
+ int32_t reference,
+ uint32_t mask,
+ struct WebGLState *state);
+
+void canvas_native_webgl_stencil_mask(uint32_t mask, struct WebGLState *state);
+
+void canvas_native_webgl_stencil_mask_separate(uint32_t face,
+ uint32_t mask,
+ struct WebGLState *state);
+
+void canvas_native_webgl_stencil_op(uint32_t fail,
+ uint32_t zfail,
+ uint32_t zpass,
+ struct WebGLState *state);
+
+void canvas_native_webgl_stencil_op_separate(uint32_t face,
+ uint32_t fail,
+ uint32_t zfail,
+ uint32_t zpass,
+ struct WebGLState *state);
+
+void canvas_native_webgl_tex_image2d_image_none(int32_t target,
+ int32_t level,
+ int32_t internalformat,
+ int32_t format,
+ int32_t image_type,
+ struct WebGLState *state);
+
+void canvas_native_webgl_tex_image2d(int32_t target,
+ int32_t level,
+ int32_t internalformat,
+ int32_t width,
+ int32_t height,
+ int32_t border,
+ int32_t format,
+ int32_t image_type,
+ struct U8BufferMut *buf,
+ struct WebGLState *state);
+
+void canvas_native_webgl_tex_image2d_none(int32_t target,
+ int32_t level,
+ int32_t internalformat,
+ int32_t width,
+ int32_t height,
+ int32_t border,
+ int32_t format,
+ int32_t image_type,
+ struct WebGLState *state);
+
+void canvas_native_webgl_tex_parameterf(uint32_t target,
+ uint32_t pname,
+ float param,
+ struct WebGLState *state);
+
+void canvas_native_webgl_tex_parameteri(uint32_t target,
+ uint32_t pname,
+ int32_t param,
+ struct WebGLState *state);
+
+void canvas_native_webgl_tex_sub_image2d_asset(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ uint32_t format,
+ int32_t image_type,
+ struct ImageAsset *asset,
+ struct WebGLState *state);
+
+void canvas_native_webgl_tex_sub_image2d_canvas2d(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ uint32_t format,
+ int32_t image_type,
+ struct CanvasRenderingContext2D *canvas,
+ struct WebGLState *state);
+
+void canvas_native_webgl_tex_sub_image2d_webgl(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ uint32_t _format,
+ int32_t _image_type,
+ struct WebGLState *webgl,
+ struct WebGLState *state);
+
+void canvas_native_webgl_tex_sub_image2d(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t width,
+ int32_t height,
+ uint32_t format,
+ int32_t image_type,
+ const struct U8Buffer *buf,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform1f(int32_t location, float v0, struct WebGLState *state);
+
+void canvas_native_webgl_uniform1fv(int32_t location,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform1i(int32_t location, int32_t v0, struct WebGLState *state);
+
+void canvas_native_webgl_uniform1iv(int32_t location,
+ const struct I32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform2f(int32_t location, float v0, float v1, struct WebGLState *state);
+
+void canvas_native_webgl_uniform2fv(int32_t location,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform2i(int32_t location,
+ int32_t v0,
+ int32_t v1,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform2iv(int32_t location,
+ const struct I32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform3f(int32_t location,
+ float v0,
+ float v1,
+ float v2,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform3fv(int32_t location,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform3i(int32_t location,
+ int32_t v0,
+ int32_t v1,
+ int32_t v2,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform3iv(int32_t location,
+ const struct I32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform4f(int32_t location,
+ float v0,
+ float v1,
+ float v2,
+ float v3,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform4fv(int32_t location,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform4i(int32_t location,
+ int32_t v0,
+ int32_t v1,
+ int32_t v2,
+ int32_t v3,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform4iv(int32_t location,
+ const struct I32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform_matrix2fv(int32_t location,
+ bool transpose,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform_matrix3fv(int32_t location,
+ bool transpose,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform_matrix4fv(int32_t location,
+ bool transpose,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_use_program(uint32_t program, struct WebGLState *state);
+
+void canvas_native_webgl_validate_program(uint32_t program, struct WebGLState *state);
+
+void canvas_native_webgl_vertex_attrib1f(uint32_t index, float v0, struct WebGLState *state);
+
+void canvas_native_webgl_vertex_attrib1fv(uint32_t index,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_vertex_attrib2f(uint32_t index,
+ float v0,
+ float v1,
+ struct WebGLState *state);
+
+void canvas_native_webgl_vertex_attrib2fv(uint32_t index,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_vertex_attrib3f(uint32_t index,
+ float v0,
+ float v1,
+ float v2,
+ struct WebGLState *state);
+
+void canvas_native_webgl_vertex_attrib3fv(uint32_t index,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_vertex_attrib4f(uint32_t index,
+ float v0,
+ float v1,
+ float v2,
+ float v3,
+ struct WebGLState *state);
+
+void canvas_native_webgl_vertex_attrib4fv(uint32_t index,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_vertex_attrib_pointer(uint32_t index,
+ int32_t size,
+ uint32_t d_type,
+ bool normalized,
+ int32_t stride,
+ intptr_t offset,
+ struct WebGLState *state);
+
+void canvas_native_webgl_viewport(int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ struct WebGLState *state);
+
+intptr_t canvas_native_webgl2_indexed_parameter_get_value(const struct WebGLIndexedParameter *param);
+
+intptr_t canvas_native_webgl2_indexed_parameter_get_buffer_value(const struct WebGLIndexedParameter *param);
+
+bool canvas_native_webgl2_indexed_parameter_get_is_buffer(const struct WebGLIndexedParameter *param);
+
+void canvas_native_webgl2_begin_query(uint32_t target, uint32_t id, struct WebGLState *state);
+
+void canvas_native_webgl2_begin_transform_feedback(uint32_t primitive_mode,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_bind_buffer_base(uint32_t target,
+ uint32_t index,
+ uint32_t buffer,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_bind_buffer_range(uint32_t target,
+ uint32_t index,
+ uint32_t buffer,
+ intptr_t offset,
+ intptr_t size,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_bind_sampler(uint32_t unit, uint32_t sampler, struct WebGLState *state);
+
+void canvas_native_webgl2_bind_transform_feedback(uint32_t target,
+ uint32_t transform_feedback,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_bind_vertex_array(uint32_t vertex_array, struct WebGLState *state);
+
+void canvas_native_webgl2_blit_framebuffer(int32_t src_x0,
+ int32_t src_y0,
+ int32_t src_x1,
+ int32_t src_y1,
+ int32_t dst_x0,
+ int32_t dst_y0,
+ int32_t dst_x1,
+ int32_t dst_y1,
+ uint32_t mask,
+ uint32_t filter,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_clear_bufferfi(uint32_t buffer,
+ int32_t drawbuffer,
+ float depth,
+ int32_t stencil,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_clear_bufferfv(uint32_t buffer,
+ int32_t drawbuffer,
+ const struct F32Buffer *values,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_clear_bufferiv(uint32_t buffer,
+ int32_t drawbuffer,
+ const struct I32Buffer *values,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_clear_bufferuiv(uint32_t buffer,
+ int32_t drawbuffer,
+ const struct U32Buffer *values,
+ struct WebGLState *state);
+
+uint32_t canvas_native_webgl2_client_wait_sync(const struct WebGLSync *sync,
+ uint32_t flags,
+ intptr_t timeout,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_compressed_tex_sub_image3d_none(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t zoffset,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ uint32_t format,
+ int32_t image_size,
+ int32_t offset,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_compressed_tex_sub_image3d(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t zoffset,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ uint32_t format,
+ const struct U8Buffer *src,
+ uintptr_t src_offset,
+ uintptr_t src_length_override,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_copy_buffer_sub_data(uint32_t read_target,
+ uint32_t write_target,
+ intptr_t read_offset,
+ intptr_t write_offset,
+ intptr_t size,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_copy_tex_sub_image3d(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t zoffset,
+ int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ struct WebGLState *state);
+
+uint32_t canvas_native_webgl2_create_query(struct WebGLState *state);
+
+uint32_t canvas_native_webgl2_create_sampler(struct WebGLState *state);
+
+uint32_t canvas_native_webgl2_create_transform_feedback(struct WebGLState *state);
+
+uint32_t canvas_native_webgl2_create_vertex_array(struct WebGLState *state);
+
+void canvas_native_webgl2_delete_query_with_query(uint32_t id, struct WebGLState *state);
+
+void canvas_native_webgl2_delete_sampler_with_sampler(uint32_t sampler, struct WebGLState *state);
+
+void canvas_native_webgl2_delete_sync_with_sync(const struct WebGLSync *sync,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_delete_transform_feedback(uint32_t transform_feedback,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_delete_vertex_array_with_vertex_array(uint32_t vertex_array,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_draw_arrays_instanced(uint32_t mode,
+ int32_t first,
+ int32_t count,
+ int32_t instance_count,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_draw_buffers(const struct U32Buffer *buffers, struct WebGLState *state);
+
+void canvas_native_webgl2_draw_elements_instanced(uint32_t mode,
+ int32_t count,
+ uint32_t type_,
+ intptr_t offset,
+ int32_t instance_count,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_draw_range_elements(uint32_t mode,
+ uint32_t start,
+ uint32_t end,
+ int32_t count,
+ uint32_t type_,
+ intptr_t offset,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_end_query(uint32_t target, struct WebGLState *state);
+
+void canvas_native_webgl2_end_transform_feedback(struct WebGLState *state);
+
+struct WebGLSync *canvas_native_webgl2_fence_sync(uint32_t condition,
+ uint32_t flags,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_framebuffer_texture_layer(uint32_t target,
+ uint32_t attachment,
+ uint32_t texture,
+ int32_t level,
+ int32_t layer,
+ struct WebGLState *state);
+
+const char *canvas_native_webgl2_get_active_uniform_block_name(uint32_t program,
+ uint32_t uniform_block_index,
+ struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl2_get_active_uniform_block_parameter(uint32_t program,
+ uint32_t uniform_block_index,
+ uint32_t pname,
+ struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl2_get_active_uniforms(uint32_t program,
+ const struct U32Buffer *uniform_indices,
+ uint32_t pname,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_get_buffer_sub_data(uint32_t target,
+ intptr_t src_byte_offset,
+ struct U8BufferMut *dst_data,
+ uintptr_t dst_offset,
+ uintptr_t length,
+ struct WebGLState *state);
+
+int32_t canvas_native_webgl2_get_frag_data_location(uint32_t program,
+ const char *name,
+ struct WebGLState *state);
+
+struct WebGLIndexedParameter *canvas_native_webgl2_get_indexed_parameter(uint32_t target,
+ uint32_t index,
+ struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl2_get_internalformat_parameter(uint32_t target,
+ uint32_t internalformat,
+ uint32_t pname,
+ struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl2_get_parameter(uint32_t pname, struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl2_get_query_parameter(uint32_t query,
+ uint32_t pname,
+ struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl2_get_query(uint32_t target,
+ uint32_t pname,
+ struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl2_get_sampler_parameter(uint32_t sampler,
+ uint32_t pname,
+ struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl2_get_sync_parameter(const struct WebGLSync *sync,
+ uint32_t pname,
+ struct WebGLState *state);
+
+struct WebGLActiveInfo *canvas_native_webgl2_get_transform_feedback_varying(uint32_t program,
+ uint32_t index,
+ struct WebGLState *state);
+
+uint32_t canvas_native_webgl2_get_uniform_block_index(uint32_t program,
+ const char *uniform_block_name,
+ struct WebGLState *state);
+
+struct U32Buffer *canvas_native_webgl2_get_uniform_indices(uint32_t program,
+ const struct StringRefBuffer *uniform_names,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_invalidate_framebuffer(uint32_t target,
+ const struct U32Buffer *attachments,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_invalidate_sub_framebuffer(uint32_t target,
+ const struct U32Buffer *attachments,
+ int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ struct WebGLState *state);
+
+bool canvas_native_webgl2_is_query(uint32_t query, struct WebGLState *state);
+
+bool canvas_native_webgl2_is_sampler(uint32_t sampler, struct WebGLState *state);
+
+bool canvas_native_webgl2_is_sync(const struct WebGLSync *sync, struct WebGLState *state);
+
+bool canvas_native_webgl2_is_transform_feedback(uint32_t transform_feedback,
+ struct WebGLState *state);
+
+bool canvas_native_webgl2_is_vertex_array(uint32_t vertex_array, struct WebGLState *state);
+
+void canvas_native_webgl2_pause_transform_feedback(struct WebGLState *state);
+
+void canvas_native_webgl2_read_buffer(uint32_t src, struct WebGLState *state);
+
+void canvas_native_webgl2_renderbuffer_storage_multisample(uint32_t target,
+ int32_t samples,
+ uint32_t internal_format,
+ int32_t width,
+ int32_t height,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_resume_transform_feedback(struct WebGLState *state);
+
+void canvas_native_webgl2_sampler_parameterf(uint32_t sampler,
+ uint32_t pname,
+ float param,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_sampler_parameteri(uint32_t sampler,
+ uint32_t pname,
+ int32_t param,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_image3d_none(uint32_t target,
+ int32_t level,
+ int32_t internalformat,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ int32_t border,
+ uint32_t format,
+ uint32_t type_,
+ uintptr_t offset,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_image3d_asset(uint32_t target,
+ int32_t level,
+ int32_t internalformat,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ int32_t border,
+ uint32_t format,
+ uint32_t type_,
+ const struct ImageAsset *asset,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_image3d(uint32_t target,
+ int32_t level,
+ int32_t internalformat,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ int32_t border,
+ uint32_t format,
+ uint32_t type_,
+ const struct U8Buffer *buf,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_image3d_offset(uint32_t target,
+ int32_t level,
+ int32_t internalformat,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ int32_t border,
+ uint32_t format,
+ uint32_t type_,
+ const struct U8Buffer *buf,
+ uintptr_t offset,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_storage2d(uint32_t target,
+ int32_t levels,
+ uint32_t internalformat,
+ int32_t width,
+ int32_t height,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_storage3d(uint32_t target,
+ int32_t levels,
+ uint32_t internalformat,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_sub_image3d_none(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t zoffset,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ uint32_t format,
+ uint32_t type_,
+ uintptr_t offset,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_sub_image3d(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t zoffset,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ uint32_t format,
+ uint32_t type_,
+ const struct U8Buffer *buf,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_sub_image3d_asset(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t zoffset,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ uint32_t format,
+ uint32_t type_,
+ const struct ImageAsset *asset,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_sub_image3d_offset(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t zoffset,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ uint32_t format,
+ uint32_t type_,
+ const struct U8Buffer *buf,
+ uintptr_t offset,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_transform_feedback_varyings(uint32_t program,
+ const struct StringRefBuffer *varyings,
+ uint32_t buffer_mode,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform1ui(int32_t location, uint32_t v0, struct WebGLState *state);
+
+void canvas_native_webgl2_uniform1uiv(int32_t location,
+ const struct U32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform2ui(int32_t location,
+ uint32_t v0,
+ uint32_t v1,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform2uiv(int32_t location,
+ const struct U32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform3ui(int32_t location,
+ uint32_t v0,
+ uint32_t v1,
+ uint32_t v2,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform3uiv(int32_t location,
+ const struct U32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform4ui(int32_t location,
+ uint32_t v0,
+ uint32_t v1,
+ uint32_t v2,
+ uint32_t v3,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform4uiv(int32_t location,
+ const struct U32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform_block_binding(uint32_t program,
+ uint32_t uniform_block_index,
+ uint32_t uniform_block_binding,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform_matrix2x3fv(int32_t location,
+ bool transpose,
+ const struct F32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform_matrix2x4fv(int32_t location,
+ bool transpose,
+ const struct F32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform_matrix3x2fv(int32_t location,
+ bool transpose,
+ const struct F32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform_matrix3x4fv(int32_t location,
+ bool transpose,
+ const struct F32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform_matrix4x2fv(int32_t location,
+ bool transpose,
+ const struct F32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform_matrix4x3fv(int32_t location,
+ bool transpose,
+ const struct F32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_vertex_attrib_divisor(uint32_t index,
+ uint32_t divisor,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_vertex_attrib_i4i(uint32_t index,
+ int32_t x,
+ int32_t y,
+ int32_t z,
+ int32_t w,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_vertex_attrib_i4iv(uint32_t index,
+ const struct I32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_vertex_attrib_i4ui(uint32_t index,
+ uint32_t x,
+ uint32_t y,
+ uint32_t z,
+ uint32_t w,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_vertex_attrib_i4uiv(uint32_t index,
+ const struct U32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_image_asset_destroy(struct ImageAsset *asset);
+
+struct U8BufferMut *canvas_native_u8_buffer_mut_create_with_reference(uint8_t *value,
+ uintptr_t size);
+
+void canvas_native_u8_buffer_mut_destroy(struct U8BufferMut *value);
+
+struct U8Buffer *canvas_native_u8_buffer_create_with_reference(const uint8_t *value,
+ uintptr_t size);
+
+void canvas_native_u8_buffer_destroy(struct U8Buffer *value);
+
+struct U16Buffer *canvas_native_u16_buffer_create_with_reference(const uint16_t *value,
+ uintptr_t size);
+
+void canvas_native_u16_buffer_destroy(struct U16Buffer *value);
+
+struct F32Buffer *canvas_native_f32_buffer_create_with_reference(const float *value,
+ uintptr_t size);
+
+void canvas_native_f32_buffer_destroy(struct F32Buffer *value);
+
+struct U32Buffer *canvas_native_u32_buffer_create_with_reference(const uint32_t *value,
+ uintptr_t size);
+
+void canvas_native_u32_buffer_destroy(struct U32Buffer *value);
+
+struct I32Buffer *canvas_native_i32_buffer_create_with_reference(const int32_t *value,
+ uintptr_t size);
+
+void canvas_native_i32_buffer_destroy(struct I32Buffer *value);
+
+void canvas_native_string_destroy(char *value);
+
+void canvas_native_image_data_destroy(struct ImageData *value);
+
+void canvas_native_matrix_destroy(struct Matrix *value);
+
+void canvas_native_path_destroy(struct Path *value);
+
+#if defined(TARGET_OS_ANDROID)
+/**
+ * Get the AChoreographer instance for the current thread. This must be called
+ * on an ALooper thread.
+ */
+extern struct AChoreographer *AChoreographer_getInstance(void);
+#endif
+
+#if defined(TARGET_OS_ANDROID)
+/**
+ * Deprecated: Use AChoreographer_postFrameCallback64 instead.
+ */
+extern void AChoreographer_postFrameCallback(struct AChoreographer *choreographer,
+ AChoreographer_frameCallback callback,
+ void *data);
+#endif
+
+#if defined(TARGET_OS_ANDROID)
+/**
+ * Deprecated: Use AChoreographer_postFrameCallbackDelayed64 instead.
+ */
+extern void AChoreographer_postFrameCallbackDelayed(struct AChoreographer *choreographer,
+ AChoreographer_frameCallback callback,
+ void *data,
+ long delayMillis);
+#endif
+
+#if defined(TARGET_OS_ANDROID)
+/**
+ * Power a callback to be run on the next frame. The data pointer provided will
+ * be passed to the callback function when it's called.
+ */
+extern void AChoreographer_postFrameCallback64(struct AChoreographer *chroreographer,
+ AChoreographer_frameCallback64 callback,
+ void *data);
+#endif
+
+#if defined(TARGET_OS_ANDROID)
+/**
+ * Post a callback to be run on the frame following the specified delay. The
+ * data pointer provided will be passed to the callback function when it's
+ * called.
+ */
+extern void AChoreographer_postFrameCallbackDelayed64(struct AChoreographer *choreographer,
+ AChoreographer_frameCallback64 callback,
+ void *data,
+ uint32_t delayMillis);
+#endif
+
+uint8_t *canvas_u8_buffer_mut_get_bytes(struct U8BufferMut *buffer);
+
+void canvas_u8_buffer_mut_destroy(struct U8BufferMut *buffer);
+
+uintptr_t canvas_u8_buffer_mut_get_length(const struct U8BufferMut *buffer);
+
+const uint8_t *canvas_u8_buffer_get_bytes(const struct U8Buffer *buffer);
+
+void canvas_u8_buffer_destroy(struct U8Buffer *buffer);
+
+uintptr_t canvas_u8_buffer_get_length(const struct U8Buffer *buffer);
+
+#endif /* CANVAS_C_H */
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist
new file mode 100644
index 000000000..d32b2e086
Binary files /dev/null and b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist differ
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo
new file mode 100644
index 000000000..e33c78d36
Binary files /dev/null and b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo differ
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json
new file mode 100644
index 000000000..72f2fbcf2
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json
@@ -0,0 +1,6571 @@
+{
+ "ABIRoot": {
+ "kind": "Root",
+ "name": "TopLevel",
+ "printedName": "TopLevel",
+ "children": [
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCCanvasListener",
+ "printedName": "NSCCanvasListener",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "contextReady",
+ "printedName": "contextReady()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(pl)NSCCanvasListener(im)contextReady",
+ "mangledName": "$s12CanvasNative17NSCCanvasListenerP12contextReadyyyF",
+ "moduleName": "CanvasNative",
+ "genericSig": "<Ï„_0_0 where Ï„_0_0 : CanvasNative.NSCCanvasListener>",
+ "sugared_genericSig": "",
+ "protocolReq": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "reqNewWitnessTableEntry": true,
+ "funcSelfKind": "NonMutating"
+ }
+ ],
+ "declKind": "Protocol",
+ "usr": "c:@M@CanvasNative@objc(pl)NSCCanvasListener",
+ "mangledName": "$s12CanvasNative17NSCCanvasListenerP",
+ "moduleName": "CanvasNative",
+ "genericSig": "<Ï„_0_0 : AnyObject>",
+ "sugared_genericSig": "",
+ "objc_name": "NSCCanvasListener",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "CanvasHelpers",
+ "printedName": "CanvasHelpers",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "getBytesFromUIImage",
+ "printedName": "getBytesFromUIImage(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSMutableData",
+ "printedName": "Foundation.NSMutableData",
+ "usr": "c:objc(cs)NSMutableData"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)getBytesFromUIImage:",
+ "mangledName": "$s12CanvasNative0A7HelpersC19getBytesFromUIImageySo13NSMutableDataCSo0G0CFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "createPattern",
+ "printedName": "createPattern(_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)createPattern:::",
+ "mangledName": "$s12CanvasNative0A7HelpersC13createPatternys5Int64VAF_So7UIImageCSStFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "loadImageAssetWithContext",
+ "printedName": "loadImageAssetWithContext(_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)loadImageAssetWithContext::",
+ "mangledName": "$s12CanvasNative0A7HelpersC25loadImageAssetWithContextySbs5Int64V_So7UIImageCtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawImage",
+ "printedName": "drawImage(context:image:dx:dy:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)drawImageWithContext:image:dx:dy:",
+ "mangledName": "$s12CanvasNative0A7HelpersC9drawImage7context5image2dx2dyys5Int64V_So7UIImageCS2ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawImage",
+ "printedName": "drawImage(context:image:dx:dy:dw:dh:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)drawImageWithContext:image:dx:dy:dw:dh:",
+ "mangledName": "$s12CanvasNative0A7HelpersC9drawImage7context5image2dx2dy2dw2dhys5Int64V_So7UIImageCS4ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawImage",
+ "printedName": "drawImage(context:image:sx:sy:sw:sh:dx:dy:dw:dh:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)drawImageWithContext:image:sx:sy:sw:sh:dx:dy:dw:dh:",
+ "mangledName": "$s12CanvasNative0A7HelpersC9drawImage7context5image2sx2sy2sw2sh2dx2dy2dw2dhys5Int64V_So7UIImageCS8ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "initGLWithView",
+ "printedName": "initGLWithView(_:_:_:_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)initGLWithView:::::::::::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC14initGLWithViewys5Int64VAF_S4bSSS5bs5Int32VSbtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "initSharedGLWithView",
+ "printedName": "initSharedGLWithView(_:_:_:_:_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)initSharedGLWithView::::::::::::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC20initSharedGLWithViewys5Int64VAF_S4bSSS5bs5Int32VSbAFtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "initGLWithWidthAndHeight",
+ "printedName": "initGLWithWidthAndHeight(_:_:_:_:_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)initGLWithWidthAndHeight::::::::::::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC24initGLWithWidthAndHeightys5Int64Vs5Int32V_AHS4bSSS5bAHSbtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "initSharedGLWidthAndHeight",
+ "printedName": "initSharedGLWidthAndHeight(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)initSharedGLWidthAndHeight:::::::::::::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC26initSharedGLWidthAndHeightys5Int64Vs5Int32V_AHS4bSSS5bAHSbAFtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "resize2DContext",
+ "printedName": "resize2DContext(_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)resize2DContext:::",
+ "mangledName": "$s12CanvasNative0A7HelpersC15resize2DContextyys5Int64V_S2ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "flush2DContext",
+ "printedName": "flush2DContext(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)flush2DContext:",
+ "mangledName": "$s12CanvasNative0A7HelpersC14flush2DContextyys5Int64VFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "flushGL",
+ "printedName": "flushGL(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)flushGL:",
+ "mangledName": "$s12CanvasNative0A7HelpersC7flushGLySbs5Int64VFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "releaseGL",
+ "printedName": "releaseGL(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)releaseGL:",
+ "mangledName": "$s12CanvasNative0A7HelpersC9releaseGLyys5Int64VFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "getGLPointer",
+ "printedName": "getGLPointer(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)getGLPointer:",
+ "mangledName": "$s12CanvasNative0A7HelpersC12getGLPointerys5Int64VAFFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "releaseGLPointer",
+ "printedName": "releaseGLPointer(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)releaseGLPointer:",
+ "mangledName": "$s12CanvasNative0A7HelpersC16releaseGLPointeryys5Int64VFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "create2DContext",
+ "printedName": "create2DContext(_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)create2DContext:::::::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC15create2DContextys5Int64VAF_s5Int32VAHSbSfA2HSfAHtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "updateGLSurfaceWithView",
+ "printedName": "updateGLSurfaceWithView(_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)updateGLSurfaceWithView::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC23updateGLSurfaceWithViewyys5Int64V_s5Int32VAhFtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "test2D",
+ "printedName": "test2D(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)test2D:",
+ "mangledName": "$s12CanvasNative0A7HelpersC6test2Dyys5Int64VFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "testToDataURL",
+ "printedName": "testToDataURL(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)testToDataURL:",
+ "mangledName": "$s12CanvasNative0A7HelpersC13testToDataURLySSs5Int64VFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "writeFile",
+ "printedName": "writeFile(_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "NSData",
+ "printedName": "Foundation.NSData",
+ "usr": "c:objc(cs)NSData"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeFunc",
+ "name": "Function",
+ "printedName": "(Swift.String?, Swift.String?) -> ()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Tuple",
+ "printedName": "(Swift.String?, Swift.String?)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)writeFile:::",
+ "mangledName": "$s12CanvasNative0A7HelpersC9writeFileyySo6NSDataC_SSySSSg_AGtctFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "readFile",
+ "printedName": "readFile(_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeFunc",
+ "name": "Function",
+ "printedName": "(Swift.String?, Foundation.NSData?) -> ()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Tuple",
+ "printedName": "(Swift.String?, Foundation.NSData?)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Foundation.NSData?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSData",
+ "printedName": "Foundation.NSData",
+ "usr": "c:objc(cs)NSData"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)readFile::",
+ "mangledName": "$s12CanvasNative0A7HelpersC8readFileyySS_ySSSg_So6NSDataCSgtctFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "deleteFile",
+ "printedName": "deleteFile(_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeFunc",
+ "name": "Function",
+ "printedName": "(Foundation.NSError?, Swift.Bool) -> ()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Tuple",
+ "printedName": "(Foundation.NSError?, Swift.Bool)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Foundation.NSError?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSError",
+ "printedName": "Foundation.NSError",
+ "usr": "c:objc(cs)NSError"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)deleteFile::",
+ "mangledName": "$s12CanvasNative0A7HelpersC10deleteFileyySS_ySo7NSErrorCSg_SbtctFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "handleBase64Image",
+ "printedName": "handleBase64Image(_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeFunc",
+ "name": "Function",
+ "printedName": "(Swift.String?, Swift.String?) -> ()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Tuple",
+ "printedName": "(Swift.String?, Swift.String?)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)handleBase64Image::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC17handleBase64ImageyySS_S2SySSSg_AEtctFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CanvasHelpers",
+ "printedName": "CanvasNative.CanvasHelpers",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(im)init",
+ "mangledName": "$s12CanvasNative0A7HelpersCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers",
+ "mangledName": "$s12CanvasNative0A7HelpersC",
+ "moduleName": "CanvasNative",
+ "objc_name": "NSSCanvasHelpers",
+ "declAttributes": [
+ "AccessControl",
+ "ObjCMembers",
+ "ObjC"
+ ],
+ "superclassUsr": "c:objc(cs)NSObject",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "Import",
+ "name": "GLKit",
+ "printedName": "GLKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCCanvas",
+ "printedName": "NSCCanvas",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "glkView",
+ "printedName": "glkView(_:drawIn:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "GLKView",
+ "printedName": "GLKit.GLKView",
+ "usr": "c:objc(cs)GLKView"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)glkView:drawInRect:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC7glkView_6drawInySo7GLKViewC_So6CGRectVtF",
+ "moduleName": "CanvasNative",
+ "objc_name": "glkView:drawInRect:",
+ "declAttributes": [
+ "ObjC",
+ "Custom",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Var",
+ "name": "store",
+ "printedName": "store",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSMutableDictionary",
+ "printedName": "Foundation.NSMutableDictionary",
+ "usr": "c:objc(cs)NSMutableDictionary"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(cpy)store",
+ "mangledName": "$s12CanvasNative9NSCCanvasC5storeSo19NSMutableDictionaryCvpZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "HasInitialValue",
+ "Final",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "isLet": true,
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSMutableDictionary",
+ "printedName": "Foundation.NSMutableDictionary",
+ "usr": "c:objc(cs)NSMutableDictionary"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(cm)store",
+ "mangledName": "$s12CanvasNative9NSCCanvasC5storeSo19NSMutableDictionaryCvgZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "implicit": true,
+ "declAttributes": [
+ "Final",
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Function",
+ "name": "getViews",
+ "printedName": "getViews()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSMapTable",
+ "printedName": "Foundation.NSMapTable",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSString",
+ "printedName": "Foundation.NSString",
+ "usr": "c:objc(cs)NSString"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "NSCCanvas",
+ "printedName": "CanvasNative.NSCCanvas",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas"
+ }
+ ],
+ "usr": "c:objc(cs)NSMapTable"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(cm)getViews",
+ "mangledName": "$s12CanvasNative9NSCCanvasC8getViewsSo10NSMapTableCySo8NSStringCACGyFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "getViewPtr",
+ "printedName": "getViewPtr()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "UnsafeMutableRawPointer",
+ "printedName": "Swift.UnsafeMutableRawPointer",
+ "usr": "s:Sv"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)getViewPtr",
+ "mangledName": "$s12CanvasNative9NSCCanvasC10getViewPtrSvyF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Var",
+ "name": "ignorePixelScaling",
+ "printedName": "ignorePixelScaling",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)ignorePixelScaling",
+ "mangledName": "$s12CanvasNative9NSCCanvasC18ignorePixelScalingSbvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)ignorePixelScaling",
+ "mangledName": "$s12CanvasNative9NSCCanvasC18ignorePixelScalingSbvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Set",
+ "printedName": "Set()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)setIgnorePixelScaling:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC18ignorePixelScalingSbvs",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "set"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Modify",
+ "printedName": "Modify()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "s:12CanvasNative9NSCCanvasC18ignorePixelScalingSbvM",
+ "mangledName": "$s12CanvasNative9NSCCanvasC18ignorePixelScalingSbvM",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "accessorKind": "_modify"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "nativeGL",
+ "printedName": "nativeGL",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)nativeGL",
+ "mangledName": "$s12CanvasNative9NSCCanvasC8nativeGLs5Int64Vvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "SetterAccess",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)nativeGL",
+ "mangledName": "$s12CanvasNative9NSCCanvasC8nativeGLs5Int64Vvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "nativeContext",
+ "printedName": "nativeContext",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)nativeContext",
+ "mangledName": "$s12CanvasNative9NSCCanvasC13nativeContexts5Int64Vvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "SetterAccess",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)nativeContext",
+ "mangledName": "$s12CanvasNative9NSCCanvasC13nativeContexts5Int64Vvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "drawingBufferWidth",
+ "printedName": "drawingBufferWidth",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int",
+ "printedName": "Swift.Int",
+ "usr": "s:Si"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)drawingBufferWidth",
+ "mangledName": "$s12CanvasNative9NSCCanvasC18drawingBufferWidthSivp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int",
+ "printedName": "Swift.Int",
+ "usr": "s:Si"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)drawingBufferWidth",
+ "mangledName": "$s12CanvasNative9NSCCanvasC18drawingBufferWidthSivg",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "drawingBufferHeight",
+ "printedName": "drawingBufferHeight",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int",
+ "printedName": "Swift.Int",
+ "usr": "s:Si"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)drawingBufferHeight",
+ "mangledName": "$s12CanvasNative9NSCCanvasC19drawingBufferHeightSivp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int",
+ "printedName": "Swift.Int",
+ "usr": "s:Si"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)drawingBufferHeight",
+ "mangledName": "$s12CanvasNative9NSCCanvasC19drawingBufferHeightSivg",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "width",
+ "printedName": "width",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)width",
+ "mangledName": "$s12CanvasNative9NSCCanvasC5widthSfvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)width",
+ "mangledName": "$s12CanvasNative9NSCCanvasC5widthSfvg",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "height",
+ "printedName": "height",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)height",
+ "mangledName": "$s12CanvasNative9NSCCanvasC6heightSfvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)height",
+ "mangledName": "$s12CanvasNative9NSCCanvasC6heightSfvg",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Function",
+ "name": "initContext",
+ "printedName": "initContext(_:_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "hasDefaultArg": true,
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)initContext:::::::::::",
+ "mangledName": "$s12CanvasNative9NSCCanvasC11initContextyySS_S4bSSS5btF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "create2DContext",
+ "printedName": "create2DContext(_:_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)create2DContext:::::::::::",
+ "mangledName": "$s12CanvasNative9NSCCanvasC15create2DContextys5Int64VSb_S3bSSS5bs5Int32VtF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "forceLayout",
+ "printedName": "forceLayout(_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGFloat",
+ "printedName": "CoreGraphics.CGFloat",
+ "usr": "s:14CoreFoundation7CGFloatV"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGFloat",
+ "printedName": "CoreGraphics.CGFloat",
+ "usr": "s:14CoreFoundation7CGFloatV"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)forceLayout::",
+ "mangledName": "$s12CanvasNative9NSCCanvasC11forceLayoutyy12CoreGraphics7CGFloatV_AGtF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "snapshot",
+ "printedName": "snapshot(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "UIKit.UIImage?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)snapshot:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC8snapshotySo7UIImageCSgSbF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "render",
+ "printedName": "render()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)render",
+ "mangledName": "$s12CanvasNative9NSCCanvasC6renderSbyF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "DiscardableResult",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "context2DTest",
+ "printedName": "context2DTest(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)context2DTest:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC13context2DTestyys5Int64VF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "context2DTestToDataURL",
+ "printedName": "context2DTestToDataURL(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)context2DTestToDataURL:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC22context2DTestToDataURLySSs5Int64VF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init(frame:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCCanvas",
+ "printedName": "CanvasNative.NSCCanvas",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)initWithFrame:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC5frameACSo6CGRectV_tcfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "initWithFrame:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Function",
+ "name": "setListener",
+ "printedName": "setListener(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "CanvasNative.NSCCanvasListener?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCCanvasListener",
+ "printedName": "CanvasNative.NSCCanvasListener",
+ "usr": "c:@M@CanvasNative@objc(pl)NSCCanvasListener"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)setListener:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC11setListeneryyAA0cE0_pSgF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "layoutSubviews",
+ "printedName": "layoutSubviews()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)layoutSubviews",
+ "mangledName": "$s12CanvasNative9NSCCanvasC14layoutSubviewsyyF",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "layoutSubviews",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas",
+ "mangledName": "$s12CanvasNative9NSCCanvasC",
+ "moduleName": "CanvasNative",
+ "objc_name": "NSCCanvas",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)UIView",
+ "hasMissingDesignatedInitializers": true,
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "UIKit.UIView",
+ "UIKit.UIResponder",
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "__DefaultCustomPlaygroundQuickLookable",
+ "printedName": "__DefaultCustomPlaygroundQuickLookable",
+ "usr": "s:s38__DefaultCustomPlaygroundQuickLookableP",
+ "mangledName": "$ss38__DefaultCustomPlaygroundQuickLookableP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "OpenGLES",
+ "printedName": "OpenGLES",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "Import",
+ "name": "CoreVideo",
+ "printedName": "CoreVideo",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCRender",
+ "printedName": "NSCRender",
+ "children": [
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCRender",
+ "printedName": "CanvasNative.NSCRender",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSRender"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSRender(im)init",
+ "mangledName": "$s12CanvasNative9NSCRenderCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Function",
+ "name": "createSurface",
+ "printedName": "createSurface()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSRender(im)createSurface",
+ "mangledName": "$s12CanvasNative9NSCRenderC13createSurfaceyyF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSRender",
+ "mangledName": "$s12CanvasNative9NSCRenderC",
+ "moduleName": "CanvasNative",
+ "objc_name": "TNSRender",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)NSObject",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCSVG",
+ "printedName": "NSCSVG",
+ "children": [
+ {
+ "kind": "Var",
+ "name": "ignorePixelScaling",
+ "printedName": "ignorePixelScaling",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(py)ignorePixelScaling",
+ "mangledName": "$s12CanvasNative6NSCSVGC18ignorePixelScalingSbvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)ignorePixelScaling",
+ "mangledName": "$s12CanvasNative6NSCSVGC18ignorePixelScalingSbvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Set",
+ "printedName": "Set()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)setIgnorePixelScaling:",
+ "mangledName": "$s12CanvasNative6NSCSVGC18ignorePixelScalingSbvs",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "set"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Modify",
+ "printedName": "Modify()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "s:12CanvasNative6NSCSVGC18ignorePixelScalingSbvM",
+ "mangledName": "$s12CanvasNative6NSCSVGC18ignorePixelScalingSbvM",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "accessorKind": "_modify"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "src",
+ "printedName": "src",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(py)src",
+ "mangledName": "$s12CanvasNative6NSCSVGC3srcSSSgvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)src",
+ "mangledName": "$s12CanvasNative6NSCSVGC3srcSSSgvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Set",
+ "printedName": "Set()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)setSrc:",
+ "mangledName": "$s12CanvasNative6NSCSVGC3srcSSSgvs",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "set"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Modify",
+ "printedName": "Modify()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "s:12CanvasNative6NSCSVGC3srcSSSgvM",
+ "mangledName": "$s12CanvasNative6NSCSVGC3srcSSSgvM",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "accessorKind": "_modify"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "srcPath",
+ "printedName": "srcPath",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(py)srcPath",
+ "mangledName": "$s12CanvasNative6NSCSVGC7srcPathSSSgvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)srcPath",
+ "mangledName": "$s12CanvasNative6NSCSVGC7srcPathSSSgvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Set",
+ "printedName": "Set()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)setSrcPath:",
+ "mangledName": "$s12CanvasNative6NSCSVGC7srcPathSSSgvs",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "set"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Modify",
+ "printedName": "Modify()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "s:12CanvasNative6NSCSVGC7srcPathSSSgvM",
+ "mangledName": "$s12CanvasNative6NSCSVGC7srcPathSSSgvM",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "accessorKind": "_modify"
+ }
+ ]
+ },
+ {
+ "kind": "Function",
+ "name": "layoutSubviews",
+ "printedName": "layoutSubviews()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)layoutSubviews",
+ "mangledName": "$s12CanvasNative6NSCSVGC14layoutSubviewsyyF",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "layoutSubviews",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init(frame:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCSVG",
+ "printedName": "CanvasNative.NSCSVG",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)initWithFrame:",
+ "mangledName": "$s12CanvasNative6NSCSVGC5frameACSo6CGRectV_tcfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "initWithFrame:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Function",
+ "name": "draw",
+ "printedName": "draw(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)drawRect:",
+ "mangledName": "$s12CanvasNative6NSCSVGC4drawyySo6CGRectVF",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "drawRect:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG",
+ "mangledName": "$s12CanvasNative6NSCSVGC",
+ "moduleName": "CanvasNative",
+ "objc_name": "TNSSVG",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)UIView",
+ "hasMissingDesignatedInitializers": true,
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "UIKit.UIView",
+ "UIKit.UIResponder",
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "__DefaultCustomPlaygroundQuickLookable",
+ "printedName": "__DefaultCustomPlaygroundQuickLookable",
+ "usr": "s:s38__DefaultCustomPlaygroundQuickLookableP",
+ "mangledName": "$ss38__DefaultCustomPlaygroundQuickLookableP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Sendable",
+ "printedName": "Sendable",
+ "usr": "s:s8SendableP",
+ "mangledName": "$ss8SendableP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCImageBitmap",
+ "printedName": "NSCImageBitmap",
+ "children": [
+ {
+ "kind": "Var",
+ "name": "queue",
+ "printedName": "queue",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "DispatchQueue",
+ "printedName": "Dispatch.DispatchQueue",
+ "usr": "c:objc(cs)OS_dispatch_queue"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageBitmap(cpy)queue",
+ "mangledName": "$s12CanvasNative14NSCImageBitmapC5queueSo012OS_dispatch_E0CvpZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "HasInitialValue",
+ "Final",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "isLet": true,
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "DispatchQueue",
+ "printedName": "Dispatch.DispatchQueue",
+ "usr": "c:objc(cs)OS_dispatch_queue"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageBitmap(cm)queue",
+ "mangledName": "$s12CanvasNative14NSCImageBitmapC5queueSo012OS_dispatch_E0CvgZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "implicit": true,
+ "declAttributes": [
+ "Final",
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCImageBitmap",
+ "printedName": "CanvasNative.NSCImageBitmap",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageBitmap"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageBitmap(im)init",
+ "mangledName": "$s12CanvasNative14NSCImageBitmapCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageBitmap",
+ "mangledName": "$s12CanvasNative14NSCImageBitmapC",
+ "moduleName": "CanvasNative",
+ "objc_name": "NSCImageBitmap",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)NSObject",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "OpenGLES",
+ "printedName": "OpenGLES",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "Import",
+ "name": "CoreVideo",
+ "printedName": "CoreVideo",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "Import",
+ "name": "AVFoundation",
+ "printedName": "AVFoundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "Utils",
+ "printedName": "Utils",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "createTextureCache",
+ "printedName": "createTextureCache()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "CoreVideo.CVOpenGLESTextureCache?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CVOpenGLESTextureCache",
+ "printedName": "CoreVideo.CVOpenGLESTextureCache",
+ "usr": "c:@T@CVOpenGLESTextureCacheRef"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils(cm)createTextureCache",
+ "mangledName": "$s12CanvasNative5UtilsC18createTextureCacheSo017CVOpenGLESTextureF3RefaSgyFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "createImage",
+ "printedName": "createImage(_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "CoreVideo.CVBuffer?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CVBuffer",
+ "printedName": "CoreVideo.CVBuffer",
+ "usr": "c:@T@CVBufferRef"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CVOpenGLESTextureCache",
+ "printedName": "CoreVideo.CVOpenGLESTextureCache",
+ "usr": "c:@T@CVOpenGLESTextureCacheRef"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CVBuffer",
+ "printedName": "CoreVideo.CVBuffer",
+ "usr": "c:@T@CVBufferRef"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "CoreFoundation.CFDictionary?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CFDictionary",
+ "printedName": "CoreFoundation.CFDictionary",
+ "usr": "c:@T@CFDictionaryRef"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UInt32",
+ "printedName": "Swift.UInt32",
+ "usr": "s:s6UInt32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UInt32",
+ "printedName": "Swift.UInt32",
+ "usr": "s:s6UInt32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UInt32",
+ "printedName": "Swift.UInt32",
+ "usr": "s:s6UInt32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int",
+ "printedName": "Swift.Int",
+ "usr": "s:Si"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils(cm)createImage::::::::::",
+ "mangledName": "$s12CanvasNative5UtilsC11createImageySo11CVBufferRefaSgSo022CVOpenGLESTextureCacheG0a_AFSo012CFDictionaryG0aSgs6UInt32Vs5Int32VA2p2NSitFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "setupRender",
+ "printedName": "setupRender()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCRender",
+ "printedName": "CanvasNative.NSCRender",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSRender"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils(cm)setupRender",
+ "mangledName": "$s12CanvasNative5UtilsC11setupRenderAA9NSCRenderCyFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawFrame",
+ "printedName": "drawFrame(_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "AVPlayer",
+ "printedName": "AVFoundation.AVPlayer",
+ "usr": "c:objc(cs)AVPlayer"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "AVPlayerItemVideoOutput",
+ "printedName": "AVFoundation.AVPlayerItemVideoOutput",
+ "usr": "c:objc(cs)AVPlayerItemVideoOutput"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGSize",
+ "printedName": "CoreFoundation.CGSize",
+ "usr": "c:@S@CGSize"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "NSCRender",
+ "printedName": "CanvasNative.NSCRender",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSRender"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils(cm)drawFrame:::::::",
+ "mangledName": "$s12CanvasNative5UtilsC9drawFrameyySo8AVPlayerC_So0F15ItemVideoOutputCSo6CGSizeVAA9NSCRenderCs5Int32VANSbtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Utils",
+ "printedName": "CanvasNative.Utils",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils(im)init",
+ "mangledName": "$s12CanvasNative5UtilsCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils",
+ "mangledName": "$s12CanvasNative5UtilsC",
+ "moduleName": "CanvasNative",
+ "objc_name": "Utils",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC"
+ ],
+ "superclassUsr": "c:objc(cs)NSObject",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCCanvasRenderingContext2D",
+ "printedName": "NSCCanvasRenderingContext2D",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "createPattern",
+ "printedName": "createPattern(_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D(cm)createPattern:::",
+ "mangledName": "$s12CanvasNative27NSCCanvasRenderingContext2DC13createPatternys5Int64VAF_So7UIImageCSStFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawImage",
+ "printedName": "drawImage(_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D(cm)drawImage::::",
+ "mangledName": "$s12CanvasNative27NSCCanvasRenderingContext2DC9drawImageyys5Int64V_So7UIImageCS2ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawImage",
+ "printedName": "drawImage(_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D(cm)drawImage::::::",
+ "mangledName": "$s12CanvasNative27NSCCanvasRenderingContext2DC9drawImageyys5Int64V_So7UIImageCS4ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawImage",
+ "printedName": "drawImage(_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D(cm)drawImage::::::::::",
+ "mangledName": "$s12CanvasNative27NSCCanvasRenderingContext2DC9drawImageyys5Int64V_So7UIImageCS8ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCCanvasRenderingContext2D",
+ "printedName": "CanvasNative.NSCCanvasRenderingContext2D",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D(im)init",
+ "mangledName": "$s12CanvasNative27NSCCanvasRenderingContext2DCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D",
+ "mangledName": "$s12CanvasNative27NSCCanvasRenderingContext2DC",
+ "moduleName": "CanvasNative",
+ "objc_name": "NSCCanvasRenderingContext2D",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "CanvasNative.NSCCanvasRenderingContext",
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "GLKit",
+ "printedName": "GLKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "CanvasGLKView",
+ "printedName": "CanvasGLKView",
+ "children": [
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CanvasGLKView",
+ "printedName": "CanvasNative.CanvasGLKView",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView(im)init",
+ "mangledName": "$s12CanvasNative0A7GLKViewCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init(frame:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CanvasGLKView",
+ "printedName": "CanvasNative.CanvasGLKView",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView(im)initWithFrame:",
+ "mangledName": "$s12CanvasNative0A7GLKViewC5frameACSo6CGRectV_tcfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "initWithFrame:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Function",
+ "name": "setNeedsDisplay",
+ "printedName": "setNeedsDisplay()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView(im)setNeedsDisplay",
+ "mangledName": "$s12CanvasNative0A7GLKViewC15setNeedsDisplayyyF",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "setNeedsDisplay",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "setNeedsDisplay",
+ "printedName": "setNeedsDisplay(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView(im)setNeedsDisplayInRect:",
+ "mangledName": "$s12CanvasNative0A7GLKViewC15setNeedsDisplayyySo6CGRectVF",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "setNeedsDisplayInRect:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init(frame:context:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CanvasGLKView",
+ "printedName": "CanvasNative.CanvasGLKView",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "EAGLContext",
+ "printedName": "OpenGLES.EAGLContext",
+ "usr": "c:objc(cs)EAGLContext"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView(im)initWithFrame:context:",
+ "mangledName": "$s12CanvasNative0A7GLKViewC5frame7contextACSo6CGRectV_So11EAGLContextCtcfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "initWithFrame:context:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView",
+ "mangledName": "$s12CanvasNative0A7GLKViewC",
+ "moduleName": "CanvasNative",
+ "objc_name": "CanvasGLKView",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)GLKView",
+ "hasMissingDesignatedInitializers": true,
+ "superclassNames": [
+ "GLKit.GLKView",
+ "UIKit.UIView",
+ "UIKit.UIResponder",
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "__DefaultCustomPlaygroundQuickLookable",
+ "printedName": "__DefaultCustomPlaygroundQuickLookable",
+ "usr": "s:s38__DefaultCustomPlaygroundQuickLookableP",
+ "mangledName": "$ss38__DefaultCustomPlaygroundQuickLookableP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Sendable",
+ "printedName": "Sendable",
+ "usr": "s:s8SendableP",
+ "mangledName": "$ss8SendableP"
+ }
+ ]
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "CanvasCPUView",
+ "printedName": "CanvasCPUView",
+ "children": [
+ {
+ "kind": "Var",
+ "name": "ignorePixelScaling",
+ "printedName": "ignorePixelScaling",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView(py)ignorePixelScaling",
+ "mangledName": "$s12CanvasNative0A7CPUViewC18ignorePixelScalingSbvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView(im)ignorePixelScaling",
+ "mangledName": "$s12CanvasNative0A7CPUViewC18ignorePixelScalingSbvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Set",
+ "printedName": "Set()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView(im)setIgnorePixelScaling:",
+ "mangledName": "$s12CanvasNative0A7CPUViewC18ignorePixelScalingSbvs",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "set"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Modify",
+ "printedName": "Modify()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "s:12CanvasNative0A7CPUViewC18ignorePixelScalingSbvM",
+ "mangledName": "$s12CanvasNative0A7CPUViewC18ignorePixelScalingSbvM",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "accessorKind": "_modify"
+ }
+ ]
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CanvasCPUView",
+ "printedName": "CanvasNative.CanvasCPUView",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView(im)init",
+ "mangledName": "$s12CanvasNative0A7CPUViewCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init(frame:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CanvasCPUView",
+ "printedName": "CanvasNative.CanvasCPUView",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView(im)initWithFrame:",
+ "mangledName": "$s12CanvasNative0A7CPUViewC5frameACSo6CGRectV_tcfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "initWithFrame:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Function",
+ "name": "draw",
+ "printedName": "draw(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView(im)drawRect:",
+ "mangledName": "$s12CanvasNative0A7CPUViewC4drawyySo6CGRectVF",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "drawRect:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView",
+ "mangledName": "$s12CanvasNative0A7CPUViewC",
+ "moduleName": "CanvasNative",
+ "objc_name": "CanvasCPUView",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)UIView",
+ "hasMissingDesignatedInitializers": true,
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "UIKit.UIView",
+ "UIKit.UIResponder",
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "__DefaultCustomPlaygroundQuickLookable",
+ "printedName": "__DefaultCustomPlaygroundQuickLookable",
+ "usr": "s:s38__DefaultCustomPlaygroundQuickLookableP",
+ "mangledName": "$ss38__DefaultCustomPlaygroundQuickLookableP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Sendable",
+ "printedName": "Sendable",
+ "usr": "s:s8SendableP",
+ "mangledName": "$ss8SendableP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCImageAsset",
+ "printedName": "NSCImageAsset",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "loadImageFromImageSync",
+ "printedName": "loadImageFromImageSync(_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageAsset(cm)loadImageFromImageSync::",
+ "mangledName": "$s12CanvasNative13NSCImageAssetC013loadImageFromF4SyncySbs5Int64V_So7UIImageCtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "loadImageFromImage",
+ "printedName": "loadImageFromImage(_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeFunc",
+ "name": "Function",
+ "printedName": "(Swift.Bool) -> ()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ]
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageAsset(cm)loadImageFromImage:::",
+ "mangledName": "$s12CanvasNative13NSCImageAssetC013loadImageFromF0yys5Int64V_So7UIImageCySbctFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCImageAsset",
+ "printedName": "CanvasNative.NSCImageAsset",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageAsset"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageAsset(im)init",
+ "mangledName": "$s12CanvasNative13NSCImageAssetCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageAsset",
+ "mangledName": "$s12CanvasNative13NSCImageAssetC",
+ "moduleName": "CanvasNative",
+ "objc_name": "NSCImageAsset",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)NSObject",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCCanvasRenderingContext",
+ "printedName": "NSCCanvasRenderingContext",
+ "children": [
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCCanvasRenderingContext",
+ "printedName": "CanvasNative.NSCCanvasRenderingContext",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext(im)init",
+ "mangledName": "$s12CanvasNative25NSCCanvasRenderingContextCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext",
+ "mangledName": "$s12CanvasNative25NSCCanvasRenderingContextC",
+ "moduleName": "CanvasNative",
+ "objc_name": "NSCCanvasRenderingContext",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC"
+ ],
+ "superclassUsr": "c:objc(cs)NSObject",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "GLKView",
+ "printedName": "GLKView",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "snapshotWithData",
+ "printedName": "snapshotWithData(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Data",
+ "printedName": "Foundation.Data",
+ "usr": "s:10Foundation4DataV"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@CM@CanvasNative@@objc(cs)GLKView(im)snapshotWithData:",
+ "mangledName": "$sSo7GLKViewC12CanvasNativeE16snapshotWithDatayy10Foundation0F0VF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Dynamic",
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "isFromExtension": true,
+ "funcSelfKind": "NonMutating"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:objc(cs)GLKView",
+ "moduleName": "GLKit",
+ "isOpen": true,
+ "objc_name": "GLKView",
+ "declAttributes": [
+ "Custom",
+ "ObjC",
+ "Dynamic"
+ ],
+ "superclassUsr": "c:objc(cs)UIView",
+ "isExternal": true,
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "UIKit.UIView",
+ "UIKit.UIResponder",
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "__DefaultCustomPlaygroundQuickLookable",
+ "printedName": "__DefaultCustomPlaygroundQuickLookable",
+ "usr": "s:s38__DefaultCustomPlaygroundQuickLookableP",
+ "mangledName": "$ss38__DefaultCustomPlaygroundQuickLookableP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Sendable",
+ "printedName": "Sendable",
+ "usr": "s:s8SendableP",
+ "mangledName": "$ss8SendableP"
+ }
+ ]
+ }
+ ],
+ "json_format_version": 8
+ },
+ "ConstValues": [
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1000,
+ "length": 1,
+ "value": "8"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1240,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9678,
+ "length": 1,
+ "value": "5"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9993,
+ "length": 1,
+ "value": "5"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "BooleanLiteral",
+ "offset": 10349,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 10444,
+ "length": 23,
+ "value": "\"Failed to write file.\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 11003,
+ "length": 22,
+ "value": "\"Failed to read file.\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "BooleanLiteral",
+ "offset": 11555,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "BooleanLiteral",
+ "offset": 11684,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 12073,
+ "length": 31,
+ "value": "\"\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 12080,
+ "length": 1,
+ "value": "\"\/\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 12086,
+ "length": 1,
+ "value": "\"-b64image.\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 12103,
+ "length": 1,
+ "value": "\"\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 12300,
+ "length": 18,
+ "value": "\"Failed to decode\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "BooleanLiteral",
+ "offset": 12460,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 12568,
+ "length": 18,
+ "value": "\"Failed to decode\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 359,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 445,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 451,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 461,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 472,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 529,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 639,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "Dictionary",
+ "offset": 753,
+ "length": 3,
+ "value": "[]"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 894,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 967,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1438,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1444,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1450,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1456,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 1463,
+ "length": 9,
+ "value": "\"default\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1474,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1480,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1487,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1494,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1501,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1508,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1511,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 2168,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2225,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2278,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2321,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 2391,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 2889,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 2923,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 2953,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3006,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 3049,
+ "length": 9,
+ "value": "\"default\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3097,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3143,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3176,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3216,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3254,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4054,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4110,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 4136,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 4179,
+ "length": 4,
+ "value": "\"2d\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4207,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 4232,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 4296,
+ "length": 20,
+ "value": "\"experimental-webgl\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 4318,
+ "length": 7,
+ "value": "\"webgl\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4349,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 4382,
+ "length": 8,
+ "value": "\"webgl2\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4414,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4511,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "Dictionary",
+ "offset": 4604,
+ "length": 3,
+ "value": "[]"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 4932,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 4993,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 5119,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 5179,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 6958,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 7053,
+ "length": 4,
+ "value": "\"2d\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7461,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7465,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7494,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7497,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7818,
+ "length": 3,
+ "value": "160"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7823,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 8486,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 9941,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 10062,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 10278,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 10399,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 10647,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 10708,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 10885,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 10888,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11271,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11298,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 11330,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11434,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11462,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 11582,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11693,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11826,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11916,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11951,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 12024,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 12592,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLUtils.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1051,
+ "length": 1,
+ "value": "8"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLUtils.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1243,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLUtils.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1249,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 333,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 366,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 427,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 544,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "StringLiteral",
+ "offset": 585,
+ "length": 274,
+ "value": "\"precision highp float;\nattribute vec4 aPosition;\nuniform mat4 uTextureMatrix;\nvarying vec2 TexCoord;\nvoid main(){\nvec2 clipSpace = (1.0 - 2.0 * aPosition.xy);\nTexCoord = aPosition.xy;\ngl_Position = vec4(clipSpace, 0.0, 1.0);\n}\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "StringLiteral",
+ "offset": 906,
+ "length": 170,
+ "value": "\"precision highp float;\nvarying vec2 TexCoord;\nuniform sampler2D uSampler;\nvoid main(){\ngl_FragColor = texture2D(uSampler, TexCoord);\n}\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "Array",
+ "offset": 1251,
+ "length": 83,
+ "value": "[0, 0, 1, 0, 0, 1, 1, 1]"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1425,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1463,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1496,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1517,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1538,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1554,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1570,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1588,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1608,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1625,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1989,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2068,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2078,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3686,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3802,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4822,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "StringLiteral",
+ "offset": 5000,
+ "length": 52,
+ "value": "\"TextureRender Error: Could not setup frame buffer.\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5198,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5201,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5204,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5207,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5457,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5502,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5525,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5689,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5692,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5814,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 6176,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 6492,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 6529,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 6566,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 6603,
+ "length": 1,
+ "value": "3"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7627,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7672,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7687,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7813,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7816,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 8077,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 8110,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 8143,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 8176,
+ "length": 1,
+ "value": "3"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 8856,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9085,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9321,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9356,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9391,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9440,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "StringLiteral",
+ "offset": 11140,
+ "length": 10,
+ "value": "\"uSampler\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "StringLiteral",
+ "offset": 11196,
+ "length": 11,
+ "value": "\"aPosition\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11261,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11292,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11304,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "IntegerLiteral",
+ "offset": 278,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "IntegerLiteral",
+ "offset": 305,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "BooleanLiteral",
+ "offset": 332,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "BooleanLiteral",
+ "offset": 360,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "BooleanLiteral",
+ "offset": 453,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "BooleanLiteral",
+ "offset": 402,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "IntegerLiteral",
+ "offset": 817,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "StringLiteral",
+ "offset": 4311,
+ "length": 8,
+ "value": "\"NSCSVG\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "StringLiteral",
+ "offset": 4472,
+ "length": 8,
+ "value": "\"NSCSVG\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4595,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4817,
+ "length": 1,
+ "value": "8"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4841,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCImageBitmap.swift",
+ "kind": "StringLiteral",
+ "offset": 233,
+ "length": 22,
+ "value": "\"Failed to load image\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCImageBitmap.swift",
+ "kind": "StringLiteral",
+ "offset": 313,
+ "length": 21,
+ "value": "\"NSCImageBitmapQueue\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/Utils.swift",
+ "kind": "IntegerLiteral",
+ "offset": 242,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "BooleanLiteral",
+ "offset": 229,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "StringLiteral",
+ "offset": 180,
+ "length": 13,
+ "value": "\"CanvasNative.CanvasGLKView\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1382,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1609,
+ "length": 1,
+ "value": "8"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1802,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1808,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1965,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "BooleanLiteral",
+ "offset": 2041,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2483,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2627,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2823,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3068,
+ "length": 1,
+ "value": "8"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3092,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3550,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3623,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3629,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3789,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCImageAsset.swift",
+ "kind": "StringLiteral",
+ "offset": 246,
+ "length": 20,
+ "value": "\"NSCImageAssetQueue\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCImageAsset.swift",
+ "kind": "BooleanLiteral",
+ "offset": 860,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCImageAsset.swift",
+ "kind": "BooleanLiteral",
+ "offset": 977,
+ "length": 5,
+ "value": "false"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface
new file mode 100644
index 000000000..cf61de106
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface
@@ -0,0 +1,153 @@
+// swift-interface-format-version: 1.0
+// swift-compiler-version: Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
+// swift-module-flags: -target arm64-apple-ios11.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name CanvasNative
+// swift-module-flags-ignorable: -enable-bare-slash-regex
+import AVFoundation
+@_exported import CanvasNative
+import CoreVideo
+import Foundation
+import GLKit
+import OpenGLES
+import Swift
+import UIKit
+import _Concurrency
+import _StringProcessing
+@objc(NSCCanvasListener) public protocol NSCCanvasListener {
+ @objc func contextReady()
+}
+@_inheritsConvenienceInitializers @objc(NSSCanvasHelpers) @objcMembers public class CanvasHelpers : ObjectiveC.NSObject {
+ @objc public static func getBytesFromUIImage(_ image: UIKit.UIImage) -> Foundation.NSMutableData
+ @objc public static func createPattern(_ context: Swift.Int64, _ image: UIKit.UIImage, _ repetition: Swift.String) -> Swift.Int64
+ @objc public static func loadImageAssetWithContext(_ asset: Swift.Int64, _ image: UIKit.UIImage) -> Swift.Bool
+ @objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, dx: Swift.Float, dy: Swift.Float)
+ @objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, dx: Swift.Float, dy: Swift.Float, dw: Swift.Float, dh: Swift.Float)
+ @objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, sx: Swift.Float, sy: Swift.Float, sw: Swift.Float, sh: Swift.Float, dx: Swift.Float, dy: Swift.Float, dw: Swift.Float, dh: Swift.Float)
+ @objc public static func initGLWithView(_ view: Swift.Int64, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool) -> Swift.Int64
+ @objc public static func initSharedGLWithView(_ view: Swift.Int64, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool, _ shared_context: Swift.Int64) -> Swift.Int64
+ @objc public static func initGLWithWidthAndHeight(_ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool) -> Swift.Int64
+ @objc public static func initSharedGLWidthAndHeight(_ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool, _ shared_context: Swift.Int64) -> Swift.Int64
+ @objc public static func resize2DContext(_ context: Swift.Int64, _ width: Swift.Float, _ height: Swift.Float)
+ @objc public static func flush2DContext(_ context: Swift.Int64)
+ @objc public static func flushGL(_ context: Swift.Int64) -> Swift.Bool
+ @objc public static func releaseGL(_ context: Swift.Int64)
+ @objc public static func getGLPointer(_ context: Swift.Int64) -> Swift.Int64
+ @objc public static func releaseGLPointer(_ context: Swift.Int64)
+ @objc public static func create2DContext(_ context: Swift.Int64, _ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ density: Swift.Float, _ samples: Swift.Int32, _ font_color: Swift.Int32, _ ppi: Swift.Float, _ direction: Swift.Int32) -> Swift.Int64
+ @objc public static func updateGLSurfaceWithView(_ view: Swift.Int64, _ width: Swift.Int32, _ height: Swift.Int32, _ context: Swift.Int64)
+ @objc public static func test2D(_ context: Swift.Int64)
+ @objc public static func testToDataURL(_ context: Swift.Int64) -> Swift.String
+ @objc public static func writeFile(_ data: Foundation.NSData, _ path: Swift.String, _ callback: @escaping (Swift.String?, Swift.String?) -> Swift.Void)
+ @objc public static func readFile(_ path: Swift.String, _ callback: @escaping (Swift.String?, Foundation.NSData?) -> Swift.Void)
+ @objc public static func deleteFile(_ path: Swift.String, _ callback: @escaping (Foundation.NSError?, Swift.Bool) -> Swift.Void)
+ @objc public static func handleBase64Image(_ mime: Swift.String, _ dir: Swift.String, _ base64: Swift.String, _ callback: @escaping (Swift.String?, Swift.String?) -> Swift.Void)
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(NSCCanvas) @_Concurrency.MainActor(unsafe) public class NSCCanvas : UIKit.UIView, GLKit.GLKViewDelegate {
+ @_Concurrency.MainActor(unsafe) @objc public func glkView(_ view: GLKit.GLKView, drawIn rect: CoreFoundation.CGRect)
+ @objc @_Concurrency.MainActor(unsafe) public static let store: Foundation.NSMutableDictionary
+ @objc @_Concurrency.MainActor(unsafe) public static func getViews() -> Foundation.NSMapTable
+ @objc @_Concurrency.MainActor(unsafe) public func getViewPtr() -> Swift.UnsafeMutableRawPointer
+ @objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool
+ @objc @_Concurrency.MainActor(unsafe) public var nativeGL: Swift.Int64 {
+ get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var nativeContext: Swift.Int64 {
+ get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var drawingBufferWidth: Swift.Int {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var drawingBufferHeight: Swift.Int {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var width: Swift.Float {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var height: Swift.Float {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public func initContext(_ type: Swift.String, _ alpha: Swift.Bool = true, _ antialias: Swift.Bool = true, _ depth: Swift.Bool = true, _ failIfMajorPerformanceCaveat: Swift.Bool = false, _ powerPreference: Swift.String = "default", _ premultipliedAlpha: Swift.Bool = true, _ preserveDrawingBuffer: Swift.Bool = false, _ stencil: Swift.Bool = false, _ desynchronized: Swift.Bool = false, _ xrCompatible: Swift.Bool = false)
+ @objc @_Concurrency.MainActor(unsafe) public func create2DContext(_ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ failIfMajorPerformanceCaveat: Swift.Bool, _ powerPreference: Swift.String, _ premultipliedAlpha: Swift.Bool, _ preserveDrawingBuffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xrCompatible: Swift.Bool, _ fontColor: Swift.Int32) -> Swift.Int64
+ @objc @_Concurrency.MainActor(unsafe) public func forceLayout(_ width: CoreFoundation.CGFloat, _ height: CoreFoundation.CGFloat)
+ @objc @_Concurrency.MainActor(unsafe) public func snapshot(_ flip: Swift.Bool) -> UIKit.UIImage?
+ @objc @discardableResult
+ @_Concurrency.MainActor(unsafe) public func render() -> Swift.Bool
+ @objc @_Concurrency.MainActor(unsafe) public func context2DTest(_ context: Swift.Int64)
+ @objc @_Concurrency.MainActor(unsafe) public func context2DTestToDataURL(_ context: Swift.Int64) -> Swift.String
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @objc @_Concurrency.MainActor(unsafe) public func setListener(_ listener: (any CanvasNative.NSCCanvasListener)?)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(TNSRender) public class NSCRender : ObjectiveC.NSObject {
+ @objc override dynamic public init()
+ @objc public func createSurface()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(TNSSVG) @_Concurrency.MainActor(unsafe) public class NSCSVG : UIKit.UIView {
+ @objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool {
+ @objc get
+ @objc set
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var src: Swift.String? {
+ @objc get
+ @objc set
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var srcPath: Swift.String? {
+ @objc get
+ @objc set
+ }
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(NSCImageBitmap) public class NSCImageBitmap : ObjectiveC.NSObject {
+ @objc public static let queue: Dispatch.DispatchQueue
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objc(Utils) public class Utils : ObjectiveC.NSObject {
+ @objc public static func createTextureCache() -> CoreVideo.CVOpenGLESTextureCache?
+ @objc public static func createImage(_ texturecache: CoreVideo.CVOpenGLESTextureCache, _ buffer: CoreVideo.CVImageBuffer, _ textureAttributes: CoreFoundation.CFDictionary?, _ target: OpenGLES.GLenum, _ internalFormat: OpenGLES.GLint, _ width: OpenGLES.GLsizei, _ height: OpenGLES.GLsizei, _ format: OpenGLES.GLenum, _ type: OpenGLES.GLenum, _ planeIndex: Swift.Int) -> CoreVideo.CVOpenGLESTexture?
+ @objc public static func setupRender() -> CanvasNative.NSCRender
+ @objc public static func drawFrame(_ player: AVFoundation.AVPlayer, _ output: AVFoundation.AVPlayerItemVideoOutput, _ videoSize: CoreFoundation.CGSize, _ render: CanvasNative.NSCRender, _ internalFormat: Swift.Int32, _ format: Swift.Int32, _ flipYWebGL: Swift.Bool)
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(NSCCanvasRenderingContext2D) public class NSCCanvasRenderingContext2D : CanvasNative.NSCCanvasRenderingContext {
+ @objc public static func createPattern(_ context: Swift.Int64, _ src: UIKit.UIImage, _ repetition: Swift.String) -> Swift.Int64
+ @objc public static func drawImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ dx: Swift.Float, _ dy: Swift.Float)
+ @objc public static func drawImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ dx: Swift.Float, _ dy: Swift.Float, _ dWidth: Swift.Float, _ dHeight: Swift.Float)
+ @objc public static func drawImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ sx: Swift.Float, _ sy: Swift.Float, _ sWidth: Swift.Float, _ sHeight: Swift.Float, _ dx: Swift.Float, _ dy: Swift.Float, _ dWidth: Swift.Float, _ dHeight: Swift.Float)
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_hasMissingDesignatedInitializers @objcMembers @objc(CanvasGLKView) @_Concurrency.MainActor(unsafe) public class CanvasGLKView : GLKit.GLKView {
+ @_Concurrency.MainActor(unsafe) @objc dynamic public init()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func setNeedsDisplay()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func setNeedsDisplay(_ rect: CoreFoundation.CGRect)
+ @objc deinit
+}
+extension GLKit.GLKView {
+ @objc @_Concurrency.MainActor(unsafe) dynamic public func snapshotWithData(_ data: Foundation.Data)
+}
+@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(CanvasCPUView) @_Concurrency.MainActor(unsafe) public class CanvasCPUView : UIKit.UIView {
+ @objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool
+ @_Concurrency.MainActor(unsafe) @objc dynamic public init()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(NSCImageAsset) public class NSCImageAsset : ObjectiveC.NSObject {
+ @objc public static func loadImageFromImageSync(_ context: Swift.Int64, _ image: UIKit.UIImage) -> Swift.Bool
+ @objc public static func loadImageFromImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ callback: @escaping (Swift.Bool) -> ())
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objc(NSCCanvasRenderingContext) public class NSCCanvasRenderingContext : ObjectiveC.NSObject {
+ @objc override dynamic public init()
+ @objc deinit
+}
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc
new file mode 100644
index 000000000..f88080d08
Binary files /dev/null and b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc differ
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface
new file mode 100644
index 000000000..cf61de106
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface
@@ -0,0 +1,153 @@
+// swift-interface-format-version: 1.0
+// swift-compiler-version: Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
+// swift-module-flags: -target arm64-apple-ios11.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name CanvasNative
+// swift-module-flags-ignorable: -enable-bare-slash-regex
+import AVFoundation
+@_exported import CanvasNative
+import CoreVideo
+import Foundation
+import GLKit
+import OpenGLES
+import Swift
+import UIKit
+import _Concurrency
+import _StringProcessing
+@objc(NSCCanvasListener) public protocol NSCCanvasListener {
+ @objc func contextReady()
+}
+@_inheritsConvenienceInitializers @objc(NSSCanvasHelpers) @objcMembers public class CanvasHelpers : ObjectiveC.NSObject {
+ @objc public static func getBytesFromUIImage(_ image: UIKit.UIImage) -> Foundation.NSMutableData
+ @objc public static func createPattern(_ context: Swift.Int64, _ image: UIKit.UIImage, _ repetition: Swift.String) -> Swift.Int64
+ @objc public static func loadImageAssetWithContext(_ asset: Swift.Int64, _ image: UIKit.UIImage) -> Swift.Bool
+ @objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, dx: Swift.Float, dy: Swift.Float)
+ @objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, dx: Swift.Float, dy: Swift.Float, dw: Swift.Float, dh: Swift.Float)
+ @objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, sx: Swift.Float, sy: Swift.Float, sw: Swift.Float, sh: Swift.Float, dx: Swift.Float, dy: Swift.Float, dw: Swift.Float, dh: Swift.Float)
+ @objc public static func initGLWithView(_ view: Swift.Int64, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool) -> Swift.Int64
+ @objc public static func initSharedGLWithView(_ view: Swift.Int64, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool, _ shared_context: Swift.Int64) -> Swift.Int64
+ @objc public static func initGLWithWidthAndHeight(_ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool) -> Swift.Int64
+ @objc public static func initSharedGLWidthAndHeight(_ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool, _ shared_context: Swift.Int64) -> Swift.Int64
+ @objc public static func resize2DContext(_ context: Swift.Int64, _ width: Swift.Float, _ height: Swift.Float)
+ @objc public static func flush2DContext(_ context: Swift.Int64)
+ @objc public static func flushGL(_ context: Swift.Int64) -> Swift.Bool
+ @objc public static func releaseGL(_ context: Swift.Int64)
+ @objc public static func getGLPointer(_ context: Swift.Int64) -> Swift.Int64
+ @objc public static func releaseGLPointer(_ context: Swift.Int64)
+ @objc public static func create2DContext(_ context: Swift.Int64, _ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ density: Swift.Float, _ samples: Swift.Int32, _ font_color: Swift.Int32, _ ppi: Swift.Float, _ direction: Swift.Int32) -> Swift.Int64
+ @objc public static func updateGLSurfaceWithView(_ view: Swift.Int64, _ width: Swift.Int32, _ height: Swift.Int32, _ context: Swift.Int64)
+ @objc public static func test2D(_ context: Swift.Int64)
+ @objc public static func testToDataURL(_ context: Swift.Int64) -> Swift.String
+ @objc public static func writeFile(_ data: Foundation.NSData, _ path: Swift.String, _ callback: @escaping (Swift.String?, Swift.String?) -> Swift.Void)
+ @objc public static func readFile(_ path: Swift.String, _ callback: @escaping (Swift.String?, Foundation.NSData?) -> Swift.Void)
+ @objc public static func deleteFile(_ path: Swift.String, _ callback: @escaping (Foundation.NSError?, Swift.Bool) -> Swift.Void)
+ @objc public static func handleBase64Image(_ mime: Swift.String, _ dir: Swift.String, _ base64: Swift.String, _ callback: @escaping (Swift.String?, Swift.String?) -> Swift.Void)
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(NSCCanvas) @_Concurrency.MainActor(unsafe) public class NSCCanvas : UIKit.UIView, GLKit.GLKViewDelegate {
+ @_Concurrency.MainActor(unsafe) @objc public func glkView(_ view: GLKit.GLKView, drawIn rect: CoreFoundation.CGRect)
+ @objc @_Concurrency.MainActor(unsafe) public static let store: Foundation.NSMutableDictionary
+ @objc @_Concurrency.MainActor(unsafe) public static func getViews() -> Foundation.NSMapTable
+ @objc @_Concurrency.MainActor(unsafe) public func getViewPtr() -> Swift.UnsafeMutableRawPointer
+ @objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool
+ @objc @_Concurrency.MainActor(unsafe) public var nativeGL: Swift.Int64 {
+ get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var nativeContext: Swift.Int64 {
+ get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var drawingBufferWidth: Swift.Int {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var drawingBufferHeight: Swift.Int {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var width: Swift.Float {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var height: Swift.Float {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public func initContext(_ type: Swift.String, _ alpha: Swift.Bool = true, _ antialias: Swift.Bool = true, _ depth: Swift.Bool = true, _ failIfMajorPerformanceCaveat: Swift.Bool = false, _ powerPreference: Swift.String = "default", _ premultipliedAlpha: Swift.Bool = true, _ preserveDrawingBuffer: Swift.Bool = false, _ stencil: Swift.Bool = false, _ desynchronized: Swift.Bool = false, _ xrCompatible: Swift.Bool = false)
+ @objc @_Concurrency.MainActor(unsafe) public func create2DContext(_ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ failIfMajorPerformanceCaveat: Swift.Bool, _ powerPreference: Swift.String, _ premultipliedAlpha: Swift.Bool, _ preserveDrawingBuffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xrCompatible: Swift.Bool, _ fontColor: Swift.Int32) -> Swift.Int64
+ @objc @_Concurrency.MainActor(unsafe) public func forceLayout(_ width: CoreFoundation.CGFloat, _ height: CoreFoundation.CGFloat)
+ @objc @_Concurrency.MainActor(unsafe) public func snapshot(_ flip: Swift.Bool) -> UIKit.UIImage?
+ @objc @discardableResult
+ @_Concurrency.MainActor(unsafe) public func render() -> Swift.Bool
+ @objc @_Concurrency.MainActor(unsafe) public func context2DTest(_ context: Swift.Int64)
+ @objc @_Concurrency.MainActor(unsafe) public func context2DTestToDataURL(_ context: Swift.Int64) -> Swift.String
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @objc @_Concurrency.MainActor(unsafe) public func setListener(_ listener: (any CanvasNative.NSCCanvasListener)?)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(TNSRender) public class NSCRender : ObjectiveC.NSObject {
+ @objc override dynamic public init()
+ @objc public func createSurface()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(TNSSVG) @_Concurrency.MainActor(unsafe) public class NSCSVG : UIKit.UIView {
+ @objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool {
+ @objc get
+ @objc set
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var src: Swift.String? {
+ @objc get
+ @objc set
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var srcPath: Swift.String? {
+ @objc get
+ @objc set
+ }
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(NSCImageBitmap) public class NSCImageBitmap : ObjectiveC.NSObject {
+ @objc public static let queue: Dispatch.DispatchQueue
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objc(Utils) public class Utils : ObjectiveC.NSObject {
+ @objc public static func createTextureCache() -> CoreVideo.CVOpenGLESTextureCache?
+ @objc public static func createImage(_ texturecache: CoreVideo.CVOpenGLESTextureCache, _ buffer: CoreVideo.CVImageBuffer, _ textureAttributes: CoreFoundation.CFDictionary?, _ target: OpenGLES.GLenum, _ internalFormat: OpenGLES.GLint, _ width: OpenGLES.GLsizei, _ height: OpenGLES.GLsizei, _ format: OpenGLES.GLenum, _ type: OpenGLES.GLenum, _ planeIndex: Swift.Int) -> CoreVideo.CVOpenGLESTexture?
+ @objc public static func setupRender() -> CanvasNative.NSCRender
+ @objc public static func drawFrame(_ player: AVFoundation.AVPlayer, _ output: AVFoundation.AVPlayerItemVideoOutput, _ videoSize: CoreFoundation.CGSize, _ render: CanvasNative.NSCRender, _ internalFormat: Swift.Int32, _ format: Swift.Int32, _ flipYWebGL: Swift.Bool)
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(NSCCanvasRenderingContext2D) public class NSCCanvasRenderingContext2D : CanvasNative.NSCCanvasRenderingContext {
+ @objc public static func createPattern(_ context: Swift.Int64, _ src: UIKit.UIImage, _ repetition: Swift.String) -> Swift.Int64
+ @objc public static func drawImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ dx: Swift.Float, _ dy: Swift.Float)
+ @objc public static func drawImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ dx: Swift.Float, _ dy: Swift.Float, _ dWidth: Swift.Float, _ dHeight: Swift.Float)
+ @objc public static func drawImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ sx: Swift.Float, _ sy: Swift.Float, _ sWidth: Swift.Float, _ sHeight: Swift.Float, _ dx: Swift.Float, _ dy: Swift.Float, _ dWidth: Swift.Float, _ dHeight: Swift.Float)
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_hasMissingDesignatedInitializers @objcMembers @objc(CanvasGLKView) @_Concurrency.MainActor(unsafe) public class CanvasGLKView : GLKit.GLKView {
+ @_Concurrency.MainActor(unsafe) @objc dynamic public init()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func setNeedsDisplay()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func setNeedsDisplay(_ rect: CoreFoundation.CGRect)
+ @objc deinit
+}
+extension GLKit.GLKView {
+ @objc @_Concurrency.MainActor(unsafe) dynamic public func snapshotWithData(_ data: Foundation.Data)
+}
+@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(CanvasCPUView) @_Concurrency.MainActor(unsafe) public class CanvasCPUView : UIKit.UIView {
+ @objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool
+ @_Concurrency.MainActor(unsafe) @objc dynamic public init()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(NSCImageAsset) public class NSCImageAsset : ObjectiveC.NSObject {
+ @objc public static func loadImageFromImageSync(_ context: Swift.Int64, _ image: UIKit.UIImage) -> Swift.Bool
+ @objc public static func loadImageFromImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ callback: @escaping (Swift.Bool) -> ())
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objc(NSCCanvasRenderingContext) public class NSCCanvasRenderingContext : ObjectiveC.NSObject {
+ @objc override dynamic public init()
+ @objc deinit
+}
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/module.modulemap b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/module.modulemap
new file mode 100644
index 000000000..0d2a8ed0a
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/module.modulemap
@@ -0,0 +1,11 @@
+framework module CanvasNative {
+ umbrella header "CanvasNative.h"
+
+ export *
+ module * { export * }
+}
+
+module CanvasNative.Swift {
+ header "CanvasNative-Swift.h"
+ requires objc
+}
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/NSCCanvas.nib b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/NSCCanvas.nib
new file mode 100644
index 000000000..1cb86796b
Binary files /dev/null and b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/NSCCanvas.nib differ
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Info.plist b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Info.plist
new file mode 100644
index 000000000..509a66359
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Info.plist
@@ -0,0 +1,20 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ English
+ CFBundleIdentifier
+ com.apple.xcode.dsym.com.github.triniwiz.CanvasNative
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundlePackageType
+ dSYM
+ CFBundleSignature
+ ????
+ CFBundleShortVersionString
+ 1.0
+ CFBundleVersion
+ 1
+
+
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative
new file mode 100644
index 000000000..1aad20b2c
Binary files /dev/null and b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative differ
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative
new file mode 100755
index 000000000..202c8dd33
Binary files /dev/null and b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative differ
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h
new file mode 100644
index 000000000..d19975f17
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h
@@ -0,0 +1,924 @@
+#if 0
+#elif defined(__arm64__) && __arm64__
+// Generated by Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
+#ifndef CANVASNATIVE_SWIFT_H
+#define CANVASNATIVE_SWIFT_H
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wgcc-compat"
+
+#if !defined(__has_include)
+# define __has_include(x) 0
+#endif
+#if !defined(__has_attribute)
+# define __has_attribute(x) 0
+#endif
+#if !defined(__has_feature)
+# define __has_feature(x) 0
+#endif
+#if !defined(__has_warning)
+# define __has_warning(x) 0
+#endif
+
+#if __has_include()
+# include
+#endif
+
+#pragma clang diagnostic ignored "-Wauto-import"
+#if defined(__OBJC__)
+#include
+#endif
+#if defined(__cplusplus)
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#else
+#include
+#include
+#include
+#include
+#endif
+#if defined(__cplusplus)
+#if __has_include()
+# include
+#else
+# ifndef __ptrauth_swift_value_witness_function_pointer
+# define __ptrauth_swift_value_witness_function_pointer(x)
+# endif
+#endif
+#endif
+
+#if !defined(SWIFT_TYPEDEFS)
+# define SWIFT_TYPEDEFS 1
+# if __has_include()
+# include
+# elif !defined(__cplusplus)
+typedef uint_least16_t char16_t;
+typedef uint_least32_t char32_t;
+# endif
+typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
+typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
+typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
+typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
+typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
+typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
+typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
+typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
+typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
+typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
+typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
+typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
+#endif
+
+#if !defined(SWIFT_PASTE)
+# define SWIFT_PASTE_HELPER(x, y) x##y
+# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
+#endif
+#if !defined(SWIFT_METATYPE)
+# define SWIFT_METATYPE(X) Class
+#endif
+#if !defined(SWIFT_CLASS_PROPERTY)
+# if __has_feature(objc_class_property)
+# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
+# else
+# define SWIFT_CLASS_PROPERTY(...)
+# endif
+#endif
+#if !defined(SWIFT_RUNTIME_NAME)
+# if __has_attribute(objc_runtime_name)
+# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
+# else
+# define SWIFT_RUNTIME_NAME(X)
+# endif
+#endif
+#if !defined(SWIFT_COMPILE_NAME)
+# if __has_attribute(swift_name)
+# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
+# else
+# define SWIFT_COMPILE_NAME(X)
+# endif
+#endif
+#if !defined(SWIFT_METHOD_FAMILY)
+# if __has_attribute(objc_method_family)
+# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
+# else
+# define SWIFT_METHOD_FAMILY(X)
+# endif
+#endif
+#if !defined(SWIFT_NOESCAPE)
+# if __has_attribute(noescape)
+# define SWIFT_NOESCAPE __attribute__((noescape))
+# else
+# define SWIFT_NOESCAPE
+# endif
+#endif
+#if !defined(SWIFT_RELEASES_ARGUMENT)
+# if __has_attribute(ns_consumed)
+# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
+# else
+# define SWIFT_RELEASES_ARGUMENT
+# endif
+#endif
+#if !defined(SWIFT_WARN_UNUSED_RESULT)
+# if __has_attribute(warn_unused_result)
+# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
+# else
+# define SWIFT_WARN_UNUSED_RESULT
+# endif
+#endif
+#if !defined(SWIFT_NORETURN)
+# if __has_attribute(noreturn)
+# define SWIFT_NORETURN __attribute__((noreturn))
+# else
+# define SWIFT_NORETURN
+# endif
+#endif
+#if !defined(SWIFT_CLASS_EXTRA)
+# define SWIFT_CLASS_EXTRA
+#endif
+#if !defined(SWIFT_PROTOCOL_EXTRA)
+# define SWIFT_PROTOCOL_EXTRA
+#endif
+#if !defined(SWIFT_ENUM_EXTRA)
+# define SWIFT_ENUM_EXTRA
+#endif
+#if !defined(SWIFT_CLASS)
+# if __has_attribute(objc_subclassing_restricted)
+# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
+# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
+# else
+# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
+# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
+# endif
+#endif
+#if !defined(SWIFT_RESILIENT_CLASS)
+# if __has_attribute(objc_class_stub)
+# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
+# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
+# else
+# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
+# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
+# endif
+#endif
+#if !defined(SWIFT_PROTOCOL)
+# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
+# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
+#endif
+#if !defined(SWIFT_EXTENSION)
+# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
+#endif
+#if !defined(OBJC_DESIGNATED_INITIALIZER)
+# if __has_attribute(objc_designated_initializer)
+# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
+# else
+# define OBJC_DESIGNATED_INITIALIZER
+# endif
+#endif
+#if !defined(SWIFT_ENUM_ATTR)
+# if __has_attribute(enum_extensibility)
+# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
+# else
+# define SWIFT_ENUM_ATTR(_extensibility)
+# endif
+#endif
+#if !defined(SWIFT_ENUM)
+# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
+# if __has_feature(generalized_swift_name)
+# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
+# else
+# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
+# endif
+#endif
+#if !defined(SWIFT_UNAVAILABLE)
+# define SWIFT_UNAVAILABLE __attribute__((unavailable))
+#endif
+#if !defined(SWIFT_UNAVAILABLE_MSG)
+# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
+#endif
+#if !defined(SWIFT_AVAILABILITY)
+# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
+#endif
+#if !defined(SWIFT_WEAK_IMPORT)
+# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
+#endif
+#if !defined(SWIFT_DEPRECATED)
+# define SWIFT_DEPRECATED __attribute__((deprecated))
+#endif
+#if !defined(SWIFT_DEPRECATED_MSG)
+# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
+#endif
+#if !defined(SWIFT_DEPRECATED_OBJC)
+# if __has_feature(attribute_diagnose_if_objc)
+# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
+# else
+# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
+# endif
+#endif
+#if defined(__OBJC__)
+#if !defined(IBSegueAction)
+# define IBSegueAction
+#endif
+#endif
+#if !defined(SWIFT_EXTERN)
+# if defined(__cplusplus)
+# define SWIFT_EXTERN extern "C"
+# else
+# define SWIFT_EXTERN extern
+# endif
+#endif
+#if !defined(SWIFT_CALL)
+# define SWIFT_CALL __attribute__((swiftcall))
+#endif
+#if !defined(SWIFT_INDIRECT_RESULT)
+# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
+#endif
+#if !defined(SWIFT_CONTEXT)
+# define SWIFT_CONTEXT __attribute__((swift_context))
+#endif
+#if !defined(SWIFT_ERROR_RESULT)
+# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
+#endif
+#if defined(__cplusplus)
+# define SWIFT_NOEXCEPT noexcept
+#else
+# define SWIFT_NOEXCEPT
+#endif
+#if defined(_WIN32)
+#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
+# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
+#endif
+#else
+#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
+# define SWIFT_IMPORT_STDLIB_SYMBOL
+#endif
+#endif
+#if defined(__OBJC__)
+#if __has_feature(objc_modules)
+#if __has_warning("-Watimport-in-framework-header")
+#pragma clang diagnostic ignored "-Watimport-in-framework-header"
+#endif
+@import CoreFoundation;
+@import CoreVideo;
+@import Dispatch;
+@import Foundation;
+@import GLKit;
+@import ObjectiveC;
+@import OpenGLES;
+@import UIKit;
+#endif
+
+#endif
+#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
+#pragma clang diagnostic ignored "-Wduplicate-method-arg"
+#if __has_warning("-Wpragma-clang-attribute")
+# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
+#endif
+#pragma clang diagnostic ignored "-Wunknown-pragmas"
+#pragma clang diagnostic ignored "-Wnullability"
+#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
+
+#if __has_attribute(external_source_symbol)
+# pragma push_macro("any")
+# undef any
+# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CanvasNative",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
+# pragma pop_macro("any")
+#endif
+
+#if defined(__OBJC__)
+@class NSCoder;
+
+SWIFT_CLASS_NAMED("CanvasCPUView")
+@interface CanvasCPUView : UIView
+@property (nonatomic) BOOL ignorePixelScaling;
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
+- (void)drawRect:(CGRect)rect;
+@end
+
+@class EAGLContext;
+
+SWIFT_CLASS_NAMED("CanvasGLKView")
+@interface CanvasGLKView : GLKView
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
+- (void)setNeedsDisplay;
+- (void)setNeedsDisplayInRect:(CGRect)rect;
+- (nonnull instancetype)initWithFrame:(CGRect)frame context:(EAGLContext * _Nonnull)context SWIFT_UNAVAILABLE;
+@end
+
+@class UIImage;
+@class NSMutableData;
+@class NSString;
+@class NSData;
+@class NSError;
+
+SWIFT_CLASS_NAMED("CanvasHelpers")
+@interface NSSCanvasHelpers : NSObject
++ (NSMutableData * _Nonnull)getBytesFromUIImage:(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
++ (int64_t)createPattern:(int64_t)context :(UIImage * _Nonnull)image :(NSString * _Nonnull)repetition SWIFT_WARN_UNUSED_RESULT;
++ (BOOL)loadImageAssetWithContext:(int64_t)asset :(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
++ (void)drawImageWithContext:(int64_t)context image:(UIImage * _Nonnull)image dx:(float)dx dy:(float)dy;
++ (void)drawImageWithContext:(int64_t)context image:(UIImage * _Nonnull)image dx:(float)dx dy:(float)dy dw:(float)dw dh:(float)dh;
++ (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;
++ (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;
++ (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;
++ (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;
++ (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;
++ (void)resize2DContext:(int64_t)context :(float)width :(float)height;
++ (void)flush2DContext:(int64_t)context;
++ (BOOL)flushGL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
++ (void)releaseGL:(int64_t)context;
++ (int64_t)getGLPointer:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
++ (void)releaseGLPointer:(int64_t)context;
++ (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;
++ (void)updateGLSurfaceWithView:(int64_t)view :(int32_t)width :(int32_t)height :(int64_t)context;
++ (void)test2D:(int64_t)context;
++ (NSString * _Nonnull)testToDataURL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
++ (void)writeFile:(NSData * _Nonnull)data :(NSString * _Nonnull)path :(void (^ _Nonnull)(NSString * _Nullable, NSString * _Nullable))callback;
++ (void)readFile:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSString * _Nullable, NSData * _Nullable))callback;
++ (void)deleteFile:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSError * _Nullable, BOOL))callback;
++ (void)handleBase64Image:(NSString * _Nonnull)mime :(NSString * _Nonnull)dir :(NSString * _Nonnull)base64 :(void (^ _Nonnull)(NSString * _Nullable, NSString * _Nullable))callback;
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+@end
+
+
+@interface GLKView (SWIFT_EXTENSION(CanvasNative))
+- (void)snapshotWithData:(NSData * _Nonnull)data;
+@end
+
+@class NSMutableDictionary;
+@protocol NSCCanvasListener;
+
+SWIFT_CLASS_NAMED("NSCCanvas")
+@interface NSCCanvas : UIView
+- (void)glkView:(GLKView * _Nonnull)view drawInRect:(CGRect)rect;
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSMutableDictionary * _Nonnull store;)
++ (NSMutableDictionary * _Nonnull)store SWIFT_WARN_UNUSED_RESULT;
++ (NSMapTable * _Nonnull)getViews SWIFT_WARN_UNUSED_RESULT;
+- (void * _Nonnull)getViewPtr SWIFT_WARN_UNUSED_RESULT;
+@property (nonatomic) BOOL ignorePixelScaling;
+@property (nonatomic, readonly) int64_t nativeGL;
+@property (nonatomic, readonly) int64_t nativeContext;
+@property (nonatomic, readonly) NSInteger drawingBufferWidth;
+@property (nonatomic, readonly) NSInteger drawingBufferHeight;
+@property (nonatomic, readonly) float width;
+@property (nonatomic, readonly) float height;
+- (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);
+- (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;
+- (void)forceLayout:(CGFloat)width :(CGFloat)height;
+- (UIImage * _Nullable)snapshot:(BOOL)flip SWIFT_WARN_UNUSED_RESULT;
+- (BOOL)render;
+- (void)context2DTest:(int64_t)context;
+- (NSString * _Nonnull)context2DTestToDataURL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
+- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
+- (void)setListener:(id _Nullable)listener;
+- (void)layoutSubviews;
+@end
+
+
+SWIFT_PROTOCOL_NAMED("NSCCanvasListener")
+@protocol NSCCanvasListener
+- (void)contextReady;
+@end
+
+
+SWIFT_CLASS_NAMED("NSCCanvasRenderingContext")
+@interface NSCCanvasRenderingContext : NSObject
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+@end
+
+
+SWIFT_CLASS_NAMED("NSCCanvasRenderingContext2D")
+@interface NSCCanvasRenderingContext2D : NSCCanvasRenderingContext
++ (int64_t)createPattern:(int64_t)context :(UIImage * _Nonnull)src :(NSString * _Nonnull)repetition SWIFT_WARN_UNUSED_RESULT;
++ (void)drawImage:(int64_t)context :(UIImage * _Nonnull)image :(float)dx :(float)dy;
++ (void)drawImage:(int64_t)context :(UIImage * _Nonnull)image :(float)dx :(float)dy :(float)dWidth :(float)dHeight;
++ (void)drawImage:(int64_t)context :(UIImage * _Nonnull)image :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(float)dx :(float)dy :(float)dWidth :(float)dHeight;
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+@end
+
+
+SWIFT_CLASS_NAMED("NSCImageAsset")
+@interface NSCImageAsset : NSObject
++ (BOOL)loadImageFromImageSync:(int64_t)context :(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
++ (void)loadImageFromImage:(int64_t)context :(UIImage * _Nonnull)image :(void (^ _Nonnull)(BOOL))callback;
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+@end
+
+
+SWIFT_CLASS_NAMED("NSCImageBitmap")
+@interface NSCImageBitmap : NSObject
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) dispatch_queue_t _Nonnull queue;)
++ (dispatch_queue_t _Nonnull)queue SWIFT_WARN_UNUSED_RESULT;
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+@end
+
+
+SWIFT_CLASS_NAMED("NSCRender")
+@interface TNSRender : NSObject
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+- (void)createSurface;
+@end
+
+
+SWIFT_CLASS_NAMED("NSCSVG")
+@interface TNSSVG : UIView
+@property (nonatomic) BOOL ignorePixelScaling;
+@property (nonatomic, copy) NSString * _Nullable src;
+@property (nonatomic, copy) NSString * _Nullable srcPath;
+- (void)layoutSubviews;
+- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
+- (void)drawRect:(CGRect)rect;
+@end
+
+@class AVPlayer;
+@class AVPlayerItemVideoOutput;
+
+SWIFT_CLASS_NAMED("Utils")
+@interface Utils : NSObject
++ (CVOpenGLESTextureCacheRef _Nullable)createTextureCache SWIFT_WARN_UNUSED_RESULT;
++ (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;
++ (TNSRender * _Nonnull)setupRender SWIFT_WARN_UNUSED_RESULT;
++ (void)drawFrame:(AVPlayer * _Nonnull)player :(AVPlayerItemVideoOutput * _Nonnull)output :(CGSize)videoSize :(TNSRender * _Nonnull)render :(int32_t)internalFormat :(int32_t)format :(BOOL)flipYWebGL;
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+@end
+
+#endif
+#if defined(__cplusplus)
+#endif
+#if __has_attribute(external_source_symbol)
+# pragma clang attribute pop
+#endif
+#pragma clang diagnostic pop
+#endif
+
+#elif defined(__x86_64__) && __x86_64__
+// Generated by Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
+#ifndef CANVASNATIVE_SWIFT_H
+#define CANVASNATIVE_SWIFT_H
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wgcc-compat"
+
+#if !defined(__has_include)
+# define __has_include(x) 0
+#endif
+#if !defined(__has_attribute)
+# define __has_attribute(x) 0
+#endif
+#if !defined(__has_feature)
+# define __has_feature(x) 0
+#endif
+#if !defined(__has_warning)
+# define __has_warning(x) 0
+#endif
+
+#if __has_include()
+# include
+#endif
+
+#pragma clang diagnostic ignored "-Wauto-import"
+#if defined(__OBJC__)
+#include
+#endif
+#if defined(__cplusplus)
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#else
+#include
+#include
+#include
+#include
+#endif
+#if defined(__cplusplus)
+#if __has_include()
+# include
+#else
+# ifndef __ptrauth_swift_value_witness_function_pointer
+# define __ptrauth_swift_value_witness_function_pointer(x)
+# endif
+#endif
+#endif
+
+#if !defined(SWIFT_TYPEDEFS)
+# define SWIFT_TYPEDEFS 1
+# if __has_include()
+# include
+# elif !defined(__cplusplus)
+typedef uint_least16_t char16_t;
+typedef uint_least32_t char32_t;
+# endif
+typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
+typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
+typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
+typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
+typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
+typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
+typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
+typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
+typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
+typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
+typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
+typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
+#endif
+
+#if !defined(SWIFT_PASTE)
+# define SWIFT_PASTE_HELPER(x, y) x##y
+# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
+#endif
+#if !defined(SWIFT_METATYPE)
+# define SWIFT_METATYPE(X) Class
+#endif
+#if !defined(SWIFT_CLASS_PROPERTY)
+# if __has_feature(objc_class_property)
+# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
+# else
+# define SWIFT_CLASS_PROPERTY(...)
+# endif
+#endif
+#if !defined(SWIFT_RUNTIME_NAME)
+# if __has_attribute(objc_runtime_name)
+# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
+# else
+# define SWIFT_RUNTIME_NAME(X)
+# endif
+#endif
+#if !defined(SWIFT_COMPILE_NAME)
+# if __has_attribute(swift_name)
+# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
+# else
+# define SWIFT_COMPILE_NAME(X)
+# endif
+#endif
+#if !defined(SWIFT_METHOD_FAMILY)
+# if __has_attribute(objc_method_family)
+# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
+# else
+# define SWIFT_METHOD_FAMILY(X)
+# endif
+#endif
+#if !defined(SWIFT_NOESCAPE)
+# if __has_attribute(noescape)
+# define SWIFT_NOESCAPE __attribute__((noescape))
+# else
+# define SWIFT_NOESCAPE
+# endif
+#endif
+#if !defined(SWIFT_RELEASES_ARGUMENT)
+# if __has_attribute(ns_consumed)
+# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
+# else
+# define SWIFT_RELEASES_ARGUMENT
+# endif
+#endif
+#if !defined(SWIFT_WARN_UNUSED_RESULT)
+# if __has_attribute(warn_unused_result)
+# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
+# else
+# define SWIFT_WARN_UNUSED_RESULT
+# endif
+#endif
+#if !defined(SWIFT_NORETURN)
+# if __has_attribute(noreturn)
+# define SWIFT_NORETURN __attribute__((noreturn))
+# else
+# define SWIFT_NORETURN
+# endif
+#endif
+#if !defined(SWIFT_CLASS_EXTRA)
+# define SWIFT_CLASS_EXTRA
+#endif
+#if !defined(SWIFT_PROTOCOL_EXTRA)
+# define SWIFT_PROTOCOL_EXTRA
+#endif
+#if !defined(SWIFT_ENUM_EXTRA)
+# define SWIFT_ENUM_EXTRA
+#endif
+#if !defined(SWIFT_CLASS)
+# if __has_attribute(objc_subclassing_restricted)
+# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
+# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
+# else
+# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
+# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
+# endif
+#endif
+#if !defined(SWIFT_RESILIENT_CLASS)
+# if __has_attribute(objc_class_stub)
+# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
+# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
+# else
+# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
+# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
+# endif
+#endif
+#if !defined(SWIFT_PROTOCOL)
+# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
+# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
+#endif
+#if !defined(SWIFT_EXTENSION)
+# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
+#endif
+#if !defined(OBJC_DESIGNATED_INITIALIZER)
+# if __has_attribute(objc_designated_initializer)
+# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
+# else
+# define OBJC_DESIGNATED_INITIALIZER
+# endif
+#endif
+#if !defined(SWIFT_ENUM_ATTR)
+# if __has_attribute(enum_extensibility)
+# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
+# else
+# define SWIFT_ENUM_ATTR(_extensibility)
+# endif
+#endif
+#if !defined(SWIFT_ENUM)
+# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
+# if __has_feature(generalized_swift_name)
+# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
+# else
+# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
+# endif
+#endif
+#if !defined(SWIFT_UNAVAILABLE)
+# define SWIFT_UNAVAILABLE __attribute__((unavailable))
+#endif
+#if !defined(SWIFT_UNAVAILABLE_MSG)
+# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
+#endif
+#if !defined(SWIFT_AVAILABILITY)
+# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
+#endif
+#if !defined(SWIFT_WEAK_IMPORT)
+# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
+#endif
+#if !defined(SWIFT_DEPRECATED)
+# define SWIFT_DEPRECATED __attribute__((deprecated))
+#endif
+#if !defined(SWIFT_DEPRECATED_MSG)
+# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
+#endif
+#if !defined(SWIFT_DEPRECATED_OBJC)
+# if __has_feature(attribute_diagnose_if_objc)
+# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
+# else
+# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
+# endif
+#endif
+#if defined(__OBJC__)
+#if !defined(IBSegueAction)
+# define IBSegueAction
+#endif
+#endif
+#if !defined(SWIFT_EXTERN)
+# if defined(__cplusplus)
+# define SWIFT_EXTERN extern "C"
+# else
+# define SWIFT_EXTERN extern
+# endif
+#endif
+#if !defined(SWIFT_CALL)
+# define SWIFT_CALL __attribute__((swiftcall))
+#endif
+#if !defined(SWIFT_INDIRECT_RESULT)
+# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
+#endif
+#if !defined(SWIFT_CONTEXT)
+# define SWIFT_CONTEXT __attribute__((swift_context))
+#endif
+#if !defined(SWIFT_ERROR_RESULT)
+# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
+#endif
+#if defined(__cplusplus)
+# define SWIFT_NOEXCEPT noexcept
+#else
+# define SWIFT_NOEXCEPT
+#endif
+#if defined(_WIN32)
+#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
+# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
+#endif
+#else
+#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
+# define SWIFT_IMPORT_STDLIB_SYMBOL
+#endif
+#endif
+#if defined(__OBJC__)
+#if __has_feature(objc_modules)
+#if __has_warning("-Watimport-in-framework-header")
+#pragma clang diagnostic ignored "-Watimport-in-framework-header"
+#endif
+@import CoreFoundation;
+@import CoreVideo;
+@import Dispatch;
+@import Foundation;
+@import GLKit;
+@import ObjectiveC;
+@import OpenGLES;
+@import UIKit;
+#endif
+
+#endif
+#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
+#pragma clang diagnostic ignored "-Wduplicate-method-arg"
+#if __has_warning("-Wpragma-clang-attribute")
+# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
+#endif
+#pragma clang diagnostic ignored "-Wunknown-pragmas"
+#pragma clang diagnostic ignored "-Wnullability"
+#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
+
+#if __has_attribute(external_source_symbol)
+# pragma push_macro("any")
+# undef any
+# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CanvasNative",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
+# pragma pop_macro("any")
+#endif
+
+#if defined(__OBJC__)
+@class NSCoder;
+
+SWIFT_CLASS_NAMED("CanvasCPUView")
+@interface CanvasCPUView : UIView
+@property (nonatomic) BOOL ignorePixelScaling;
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
+- (void)drawRect:(CGRect)rect;
+@end
+
+@class EAGLContext;
+
+SWIFT_CLASS_NAMED("CanvasGLKView")
+@interface CanvasGLKView : GLKView
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
+- (void)setNeedsDisplay;
+- (void)setNeedsDisplayInRect:(CGRect)rect;
+- (nonnull instancetype)initWithFrame:(CGRect)frame context:(EAGLContext * _Nonnull)context SWIFT_UNAVAILABLE;
+@end
+
+@class UIImage;
+@class NSMutableData;
+@class NSString;
+@class NSData;
+@class NSError;
+
+SWIFT_CLASS_NAMED("CanvasHelpers")
+@interface NSSCanvasHelpers : NSObject
++ (NSMutableData * _Nonnull)getBytesFromUIImage:(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
++ (int64_t)createPattern:(int64_t)context :(UIImage * _Nonnull)image :(NSString * _Nonnull)repetition SWIFT_WARN_UNUSED_RESULT;
++ (BOOL)loadImageAssetWithContext:(int64_t)asset :(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
++ (void)drawImageWithContext:(int64_t)context image:(UIImage * _Nonnull)image dx:(float)dx dy:(float)dy;
++ (void)drawImageWithContext:(int64_t)context image:(UIImage * _Nonnull)image dx:(float)dx dy:(float)dy dw:(float)dw dh:(float)dh;
++ (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;
++ (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;
++ (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;
++ (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;
++ (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;
++ (void)resize2DContext:(int64_t)context :(float)width :(float)height;
++ (void)flush2DContext:(int64_t)context;
++ (BOOL)flushGL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
++ (void)releaseGL:(int64_t)context;
++ (int64_t)getGLPointer:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
++ (void)releaseGLPointer:(int64_t)context;
++ (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;
++ (void)updateGLSurfaceWithView:(int64_t)view :(int32_t)width :(int32_t)height :(int64_t)context;
++ (void)test2D:(int64_t)context;
++ (NSString * _Nonnull)testToDataURL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
++ (void)writeFile:(NSData * _Nonnull)data :(NSString * _Nonnull)path :(void (^ _Nonnull)(NSString * _Nullable, NSString * _Nullable))callback;
++ (void)readFile:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSString * _Nullable, NSData * _Nullable))callback;
++ (void)deleteFile:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSError * _Nullable, BOOL))callback;
++ (void)handleBase64Image:(NSString * _Nonnull)mime :(NSString * _Nonnull)dir :(NSString * _Nonnull)base64 :(void (^ _Nonnull)(NSString * _Nullable, NSString * _Nullable))callback;
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+@end
+
+
+@interface GLKView (SWIFT_EXTENSION(CanvasNative))
+- (void)snapshotWithData:(NSData * _Nonnull)data;
+@end
+
+@class NSMutableDictionary;
+@protocol NSCCanvasListener;
+
+SWIFT_CLASS_NAMED("NSCCanvas")
+@interface NSCCanvas : UIView
+- (void)glkView:(GLKView * _Nonnull)view drawInRect:(CGRect)rect;
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSMutableDictionary * _Nonnull store;)
++ (NSMutableDictionary * _Nonnull)store SWIFT_WARN_UNUSED_RESULT;
++ (NSMapTable * _Nonnull)getViews SWIFT_WARN_UNUSED_RESULT;
+- (void * _Nonnull)getViewPtr SWIFT_WARN_UNUSED_RESULT;
+@property (nonatomic) BOOL ignorePixelScaling;
+@property (nonatomic, readonly) int64_t nativeGL;
+@property (nonatomic, readonly) int64_t nativeContext;
+@property (nonatomic, readonly) NSInteger drawingBufferWidth;
+@property (nonatomic, readonly) NSInteger drawingBufferHeight;
+@property (nonatomic, readonly) float width;
+@property (nonatomic, readonly) float height;
+- (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);
+- (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;
+- (void)forceLayout:(CGFloat)width :(CGFloat)height;
+- (UIImage * _Nullable)snapshot:(BOOL)flip SWIFT_WARN_UNUSED_RESULT;
+- (BOOL)render;
+- (void)context2DTest:(int64_t)context;
+- (NSString * _Nonnull)context2DTestToDataURL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
+- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
+- (void)setListener:(id _Nullable)listener;
+- (void)layoutSubviews;
+@end
+
+
+SWIFT_PROTOCOL_NAMED("NSCCanvasListener")
+@protocol NSCCanvasListener
+- (void)contextReady;
+@end
+
+
+SWIFT_CLASS_NAMED("NSCCanvasRenderingContext")
+@interface NSCCanvasRenderingContext : NSObject
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+@end
+
+
+SWIFT_CLASS_NAMED("NSCCanvasRenderingContext2D")
+@interface NSCCanvasRenderingContext2D : NSCCanvasRenderingContext
++ (int64_t)createPattern:(int64_t)context :(UIImage * _Nonnull)src :(NSString * _Nonnull)repetition SWIFT_WARN_UNUSED_RESULT;
++ (void)drawImage:(int64_t)context :(UIImage * _Nonnull)image :(float)dx :(float)dy;
++ (void)drawImage:(int64_t)context :(UIImage * _Nonnull)image :(float)dx :(float)dy :(float)dWidth :(float)dHeight;
++ (void)drawImage:(int64_t)context :(UIImage * _Nonnull)image :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(float)dx :(float)dy :(float)dWidth :(float)dHeight;
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+@end
+
+
+SWIFT_CLASS_NAMED("NSCImageAsset")
+@interface NSCImageAsset : NSObject
++ (BOOL)loadImageFromImageSync:(int64_t)context :(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
++ (void)loadImageFromImage:(int64_t)context :(UIImage * _Nonnull)image :(void (^ _Nonnull)(BOOL))callback;
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+@end
+
+
+SWIFT_CLASS_NAMED("NSCImageBitmap")
+@interface NSCImageBitmap : NSObject
+SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) dispatch_queue_t _Nonnull queue;)
++ (dispatch_queue_t _Nonnull)queue SWIFT_WARN_UNUSED_RESULT;
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+@end
+
+
+SWIFT_CLASS_NAMED("NSCRender")
+@interface TNSRender : NSObject
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+- (void)createSurface;
+@end
+
+
+SWIFT_CLASS_NAMED("NSCSVG")
+@interface TNSSVG : UIView
+@property (nonatomic) BOOL ignorePixelScaling;
+@property (nonatomic, copy) NSString * _Nullable src;
+@property (nonatomic, copy) NSString * _Nullable srcPath;
+- (void)layoutSubviews;
+- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
+- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
+- (void)drawRect:(CGRect)rect;
+@end
+
+@class AVPlayer;
+@class AVPlayerItemVideoOutput;
+
+SWIFT_CLASS_NAMED("Utils")
+@interface Utils : NSObject
++ (CVOpenGLESTextureCacheRef _Nullable)createTextureCache SWIFT_WARN_UNUSED_RESULT;
++ (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;
++ (TNSRender * _Nonnull)setupRender SWIFT_WARN_UNUSED_RESULT;
++ (void)drawFrame:(AVPlayer * _Nonnull)player :(AVPlayerItemVideoOutput * _Nonnull)output :(CGSize)videoSize :(TNSRender * _Nonnull)render :(int32_t)internalFormat :(int32_t)format :(BOOL)flipYWebGL;
+- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+@end
+
+#endif
+#if defined(__cplusplus)
+#endif
+#if __has_attribute(external_source_symbol)
+# pragma clang attribute pop
+#endif
+#pragma clang diagnostic pop
+#endif
+
+#else
+#error unsupported Swift architecture
+#endif
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h
new file mode 100644
index 000000000..b414de9c6
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h
@@ -0,0 +1,20 @@
+//
+// CanvasNative.h
+// CanvasNative
+//
+// Created by Osei Fortune on 30/09/2020.
+//
+
+#import
+#import "canvas_native.h"
+#import "canvas_ios.h"
+
+//! Project version number for CanvasNative.
+FOUNDATION_EXPORT double CanvasNativeVersionNumber;
+
+//! Project version string for CanvasNative.
+FOUNDATION_EXPORT const unsigned char CanvasNativeVersionString[];
+
+// In this header, you should import all the public headers of your framework using statements like #import
+
+
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h
new file mode 100644
index 000000000..5cafc1060
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h
@@ -0,0 +1,142 @@
+#ifndef CANVAS_IOS_H
+#define CANVAS_IOS_H
+
+/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */
+
+#include
+#include
+#include
+#include
+
+long long canvas_native_init_ios_gl(int64_t view,
+ bool alpha,
+ bool antialias,
+ bool depth,
+ bool fail_if_major_performance_caveat,
+ const char *power_preference,
+ bool premultiplied_alpha,
+ bool preserve_drawing_buffer,
+ bool stencil,
+ bool desynchronized,
+ bool xr_compatible,
+ int32_t version,
+ bool is_canvas);
+
+long long canvas_native_init_ios_gl_with_shared_gl(int64_t view,
+ bool alpha,
+ bool antialias,
+ bool depth,
+ bool fail_if_major_performance_caveat,
+ const char *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);
+
+long long canvas_native_init_offscreen_ios_gl(int32_t width,
+ int32_t height,
+ bool alpha,
+ bool antialias,
+ bool depth,
+ bool fail_if_major_performance_caveat,
+ const char *power_preference,
+ bool premultiplied_alpha,
+ bool preserve_drawing_buffer,
+ bool stencil,
+ bool desynchronized,
+ bool xr_compatible,
+ int32_t version,
+ bool is_canvas);
+
+long long canvas_native_init_offscreen_ios_gl_with_shared_gl(int32_t width,
+ int32_t height,
+ bool alpha,
+ bool antialias,
+ bool depth,
+ bool fail_if_major_performance_caveat,
+ const char *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);
+
+bool canvas_native_ios_flush_gl(int64_t context);
+
+void canvas_native_ios_flush_2d_context(int64_t context);
+
+void canvas_native_resize_context_2d(int64_t context, float width, float height);
+
+int64_t canvas_native_create_2d_context(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);
+
+void canvas_native_update_gl_surface(int64_t view, int32_t width, int32_t height, int64_t context);
+
+void canvas_native_release_ios_gl(int64_t context);
+
+int64_t canvas_native_get_gl_pointer(int64_t gl_context);
+
+void canvas_native_release_gl_pointer(int64_t gl_context);
+
+void canvas_native_context_2d_test(int64_t context);
+
+char *canvas_native_context_2d_test_to_data_url(int64_t context);
+
+void canvas_native_context_2d_destroy_string(char *string);
+
+bool canvas_native_imageasset_load_from_bytes(int64_t asset, uint8_t *bytes, uintptr_t size);
+
+int64_t canvas_native_context_create_pattern_raw(int64_t context,
+ int32_t width,
+ int32_t height,
+ uint8_t *bytes,
+ uintptr_t size,
+ const char *repetition);
+
+bool canvas_native_context_draw_image_dx_dy_with_bytes(int64_t context,
+ uint8_t *bytes,
+ uintptr_t size,
+ float width,
+ float height,
+ float dx,
+ float dy);
+
+bool canvas_native_context_draw_image_dx_dy_dw_dh_with_bytes(int64_t context,
+ uint8_t *bytes,
+ uintptr_t size,
+ float width,
+ float height,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+bool canvas_native_context_draw_image_with_bytes(int64_t context,
+ uint8_t *bytes,
+ uintptr_t size,
+ float width,
+ float height,
+ float sx,
+ float sy,
+ float s_width,
+ float s_height,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+#endif /* CANVAS_IOS_H */
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h
new file mode 100644
index 000000000..3fc2610ac
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h
@@ -0,0 +1,2517 @@
+#ifndef CANVAS_C_H
+#define CANVAS_C_H
+
+/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */
+
+#include
+#include
+#include
+#include
+
+typedef enum GLConstants {
+ UNPACK_FLIP_Y_WEBGL = 37440,
+ UNPACK_PREMULTIPLY_ALPHA_WEBGL = 37441,
+ UNPACK_COLORSPACE_CONVERSION_WEBGL = 37443,
+} GLConstants;
+
+typedef enum ImageBitmapColorSpaceConversion {
+ ImageBitmapColorSpaceConversionDefault,
+ ImageBitmapColorSpaceConversionNone,
+} ImageBitmapColorSpaceConversion;
+
+typedef enum ImageBitmapPremultiplyAlpha {
+ ImageBitmapPremultiplyAlphaDefault,
+ ImageBitmapPremultiplyAlphaPremultiply,
+ ImageBitmapPremultiplyAlphaNone,
+} ImageBitmapPremultiplyAlpha;
+
+typedef enum ImageBitmapResizeQuality {
+ ImageBitmapResizeQualityLow,
+ ImageBitmapResizeQualityMedium,
+ ImageBitmapResizeQualityHigh,
+ ImageBitmapResizeQualityPixelated,
+} ImageBitmapResizeQuality;
+
+typedef enum InvalidateState {
+ InvalidateStateNone,
+ InvalidateStatePending,
+ InvalidateStateInvalidating,
+} InvalidateState;
+
+typedef enum PaintStyleType {
+ PaintStyleTypeNone,
+ PaintStyleTypeColor,
+ PaintStyleTypeGradient,
+ PaintStyleTypePattern,
+} PaintStyleType;
+
+typedef enum WebGLExtensionType {
+ WebGLExtensionTypeEXT_blend_minmax,
+ WebGLExtensionTypeEXT_color_buffer_half_float,
+ WebGLExtensionTypeEXT_disjoint_timer_query,
+ WebGLExtensionTypeEXT_sRGB,
+ WebGLExtensionTypeEXT_shader_texture_lod,
+ WebGLExtensionTypeEXT_texture_filter_anisotropic,
+ WebGLExtensionTypeOES_element_index_uint,
+ WebGLExtensionTypeOES_standard_derivatives,
+ WebGLExtensionTypeOES_texture_float,
+ WebGLExtensionTypeOES_texture_float_linear,
+ WebGLExtensionTypeOES_texture_half_float,
+ WebGLExtensionTypeOES_texture_half_float_linear,
+ WebGLExtensionTypeOES_vertex_array_object,
+ WebGLExtensionTypeWEBGL_color_buffer_float,
+ WebGLExtensionTypeWEBGL_compressed_texture_atc,
+ WebGLExtensionTypeWEBGL_compressed_texture_etc1,
+ WebGLExtensionTypeWEBGL_compressed_texture_s3tc,
+ WebGLExtensionTypeWEBGL_compressed_texture_s3tc_srgb,
+ WebGLExtensionTypeWEBGL_compressed_texture_etc,
+ WebGLExtensionTypeWEBGL_compressed_texture_pvrtc,
+ WebGLExtensionTypeWEBGL_lose_context,
+ WebGLExtensionTypeANGLE_instanced_arrays,
+ WebGLExtensionTypeWEBGL_depth_texture,
+ WebGLExtensionTypeWEBGL_draw_buffers,
+ WebGLExtensionTypeOES_fbo_render_mipmap,
+ WebGLExtensionTypeNone,
+} WebGLExtensionType;
+
+typedef struct ANGLE_instanced_arrays ANGLE_instanced_arrays;
+
+typedef struct CanvasRenderingContext2D CanvasRenderingContext2D;
+
+typedef struct ContextAttributes ContextAttributes;
+
+typedef struct EXT_blend_minmax EXT_blend_minmax;
+
+typedef struct EXT_color_buffer_half_float EXT_color_buffer_half_float;
+
+typedef struct EXT_disjoint_timer_query EXT_disjoint_timer_query;
+
+typedef struct EXT_shader_texture_lod EXT_shader_texture_lod;
+
+typedef struct EXT_texture_filter_anisotropic EXT_texture_filter_anisotropic;
+
+typedef struct F32Buffer F32Buffer;
+
+typedef struct F32BufferMut F32BufferMut;
+
+typedef struct FileHelper FileHelper;
+
+typedef struct I32Buffer I32Buffer;
+
+typedef struct ImageAsset ImageAsset;
+
+typedef struct ImageData ImageData;
+
+typedef struct ImageFilter ImageFilter;
+
+typedef struct Matrix Matrix;
+
+typedef struct OES_element_index_uint OES_element_index_uint;
+
+typedef struct OES_standard_derivatives OES_standard_derivatives;
+
+typedef struct OES_texture_float OES_texture_float;
+
+typedef struct OES_texture_float_linear OES_texture_float_linear;
+
+typedef struct OES_texture_half_float OES_texture_half_float;
+
+typedef struct OES_texture_half_float_linear OES_texture_half_float_linear;
+
+typedef struct OES_vertex_array_object OES_vertex_array_object;
+
+typedef struct PaintStyle PaintStyle;
+
+typedef struct Path Path;
+
+#if (defined(TARGET_OS_ANDROID) || defined(TARGET_OS_IOS))
+typedef struct Raf Raf;
+#endif
+
+#if ((defined(TARGET_OS_ANDROID) || defined(TARGET_OS_IOS)) && defined(TARGET_OS_ANDROID))
+typedef struct Raf Raf;
+#endif
+
+#if ((defined(TARGET_OS_ANDROID) || defined(TARGET_OS_IOS)) && defined(TARGET_OS_IOS))
+typedef struct Raf Raf;
+#endif
+
+typedef struct StringBuffer StringBuffer;
+
+typedef struct StringRefBuffer StringRefBuffer;
+
+typedef struct TextDecoder TextDecoder;
+
+typedef struct TextEncoder TextEncoder;
+
+typedef struct TextMetrics TextMetrics;
+
+typedef struct U16Buffer U16Buffer;
+
+typedef struct U16BufferMut U16BufferMut;
+
+typedef struct U32Buffer U32Buffer;
+
+typedef struct U8Buffer U8Buffer;
+
+typedef struct U8BufferMut U8BufferMut;
+
+typedef struct WEBGL_color_buffer_float WEBGL_color_buffer_float;
+
+typedef struct WEBGL_compressed_texture_atc WEBGL_compressed_texture_atc;
+
+typedef struct WEBGL_compressed_texture_etc WEBGL_compressed_texture_etc;
+
+typedef struct WEBGL_compressed_texture_etc1 WEBGL_compressed_texture_etc1;
+
+typedef struct WEBGL_compressed_texture_pvrtc WEBGL_compressed_texture_pvrtc;
+
+typedef struct WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc;
+
+typedef struct WEBGL_compressed_texture_s3tc_srgb WEBGL_compressed_texture_s3tc_srgb;
+
+typedef struct WEBGL_depth_texture WEBGL_depth_texture;
+
+typedef struct WEBGL_draw_buffers WEBGL_draw_buffers;
+
+typedef struct WEBGL_lose_context WEBGL_lose_context;
+
+typedef struct WebGLActiveInfo WebGLActiveInfo;
+
+typedef struct WebGLExtension WebGLExtension;
+
+typedef struct WebGLFramebufferAttachmentParameter WebGLFramebufferAttachmentParameter;
+
+typedef struct WebGLIndexedParameter WebGLIndexedParameter;
+
+typedef struct WebGLResult WebGLResult;
+
+typedef struct WebGLShaderPrecisionFormat WebGLShaderPrecisionFormat;
+
+typedef struct WebGLState WebGLState;
+
+typedef struct WebGLSync WebGLSync;
+
+#if defined(TARGET_OS_ANDROID)
+typedef struct AChoreographer {
+ uint8_t _unused[0];
+} AChoreographer;
+#endif
+
+#if defined(TARGET_OS_ANDROID)
+/**
+ * Prototype of the function that is called when a new frame is being rendered.
+ * It's passed the time that the frame is being rendered as nanoseconds in the
+ * CLOCK_MONOTONIC time base, as well as the data pointer provided by the
+ * application that registered a callback. All callbacks that run as part of
+ * rendering a frame will observe the same frame time, so it should be used
+ * whenever events need to be synchronized (e.g. animations).
+ */
+typedef void (*AChoreographer_frameCallback)(long frameTimeNanos, void *data);
+#endif
+
+#if defined(TARGET_OS_ANDROID)
+/**
+ * Prototype of the function that is called when a new frame is being rendered.
+ * It's passed the time that the frame is being rendered as nanoseconds in the
+ * CLOCK_MONOTONIC time base, as well as the data pointer provided by the
+ * application that registered a callback. All callbacks that run as part of
+ * rendering a frame will observe the same frame time, so it should be used
+ * whenever events need to be synchronized (e.g. animations).
+ */
+typedef void (*AChoreographer_frameCallback64)(int64_t frameTimeNanos, void *data);
+#endif
+
+void canvas_native_image_filter_destroy(struct ImageFilter *value);
+
+void canvas_native_helper_destroy(struct FileHelper *value);
+
+struct FileHelper *canvas_native_helper_read_file(const char *path);
+
+bool canvas_native_helper_read_file_has_error(const struct FileHelper *file);
+
+struct U8Buffer *canvas_native_helper_read_file_get_data(struct FileHelper *file);
+
+const char *canvas_native_helper_read_file_get_error(const struct FileHelper *file);
+
+void canvas_native_text_encoder_destroy(struct TextEncoder *value);
+
+void canvas_native_text_decoder_destroy(struct TextDecoder *value);
+
+void canvas_native_context_destroy(struct CanvasRenderingContext2D *value);
+
+void canvas_native_paint_style_destroy(struct PaintStyle *value);
+
+void canvas_native_text_metrics_destroy(struct TextMetrics *value);
+
+#if (defined(TARGET_OS_ANDROID) || defined(TARGET_OS_IOS))
+struct Raf *canvas_native_raf_create(intptr_t callback, void (*on_frame_callback)(intptr_t callback,
+ int64_t ts));
+#endif
+
+#if (defined(TARGET_OS_ANDROID) || defined(TARGET_OS_IOS))
+void canvas_native_raf_destroy(struct Raf *value);
+#endif
+
+#if (defined(TARGET_OS_ANDROID) || defined(TARGET_OS_IOS))
+void canvas_native_raf_start(struct Raf *raf);
+#endif
+
+#if (defined(TARGET_OS_ANDROID) || defined(TARGET_OS_IOS))
+void canvas_native_raf_stop(struct Raf *raf);
+#endif
+
+#if (defined(TARGET_OS_ANDROID) || defined(TARGET_OS_IOS))
+bool canvas_native_raf_get_started(const struct Raf *raf);
+#endif
+
+struct CanvasRenderingContext2D *canvas_native_context_create_with_wrapper(int64_t context,
+ int64_t gl_context);
+
+void canvas_native_context_resize(struct CanvasRenderingContext2D *context,
+ float width,
+ float height);
+
+struct CanvasRenderingContext2D *canvas_native_context_create(float width,
+ float height,
+ float density,
+ bool alpha,
+ int32_t font_color,
+ float ppi,
+ uint32_t direction);
+
+struct CanvasRenderingContext2D *canvas_native_context_create_gl(float width,
+ float height,
+ float density,
+ int64_t gl_context,
+ int32_t samples,
+ bool alpha,
+ int32_t font_color,
+ float ppi,
+ uint32_t direction);
+
+struct CanvasRenderingContext2D *canvas_native_context_create_with_pointer(int64_t pointer);
+
+struct CanvasRenderingContext2D *canvas_native_context_create_gl_no_window(float width,
+ float height,
+ float density,
+ int32_t font_color,
+ float ppi,
+ uint32_t direction,
+ bool alpha);
+
+const char *canvas_native_context_get_filter(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_filter(struct CanvasRenderingContext2D *context, const char *filter);
+
+const char *canvas_native_context_get_font(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_font(struct CanvasRenderingContext2D *context, const char *font);
+
+float canvas_native_context_get_global_alpha(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_global_alpha(struct CanvasRenderingContext2D *context, float alpha);
+
+bool canvas_native_context_get_image_smoothing_enabled(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_image_smoothing_enabled(struct CanvasRenderingContext2D *context,
+ bool enabled);
+
+const char *canvas_native_context_get_image_smoothing_quality(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_image_smoothing_quality(struct CanvasRenderingContext2D *context,
+ const char *quality);
+
+const char *canvas_native_context_get_line_join(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_line_join(struct CanvasRenderingContext2D *context,
+ const char *join);
+
+const char *canvas_native_context_get_line_cap(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_line_cap(struct CanvasRenderingContext2D *context, const char *cap);
+
+float canvas_native_context_get_miter_limit(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_miter_limit(struct CanvasRenderingContext2D *context, float limit);
+
+const char *canvas_native_context_get_shadow_color(const struct CanvasRenderingContext2D *context);
+
+struct U8Buffer *canvas_native_context_get_shadow_color_buf(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_get_shadow_color_rgba(const struct CanvasRenderingContext2D *context,
+ uint8_t *r,
+ uint8_t *g,
+ uint8_t *b,
+ uint8_t *a);
+
+void canvas_native_context_set_shadow_color(struct CanvasRenderingContext2D *context,
+ const char *color);
+
+void canvas_native_context_set_shadow_color_rgba(struct CanvasRenderingContext2D *context,
+ uint8_t r,
+ uint8_t g,
+ uint8_t b,
+ uint8_t a);
+
+float canvas_native_context_get_shadow_blur(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_shadow_blur(struct CanvasRenderingContext2D *context, float blur);
+
+float canvas_native_context_get_shadow_offset_x(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_shadow_offset_x(struct CanvasRenderingContext2D *context, float x);
+
+float canvas_native_context_get_shadow_offset_y(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_shadow_offset_y(struct CanvasRenderingContext2D *context, float y);
+
+const char *canvas_native_context_get_text_align(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_text_align(struct CanvasRenderingContext2D *context,
+ const char *alignment);
+
+const char *canvas_native_context_get_global_composition(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_global_composition(struct CanvasRenderingContext2D *context,
+ const char *composition);
+
+void canvas_native_paint_style_set_fill_color_with_c_string(struct CanvasRenderingContext2D *context,
+ const char *color);
+
+void canvas_native_paint_style_set_stroke_color_with_c_string(struct CanvasRenderingContext2D *context,
+ const char *color);
+
+void canvas_native_paint_style_set_stroke_color_with_rgba(struct CanvasRenderingContext2D *context,
+ uint8_t r,
+ uint8_t g,
+ uint8_t b,
+ uint8_t a);
+
+void canvas_native_paint_style_set_fill_color_with_rgba(struct CanvasRenderingContext2D *context,
+ uint8_t r,
+ uint8_t g,
+ uint8_t b,
+ uint8_t a);
+
+bool canvas_native_parse_css_color_rgba(const char *value,
+ uint8_t *r,
+ uint8_t *g,
+ uint8_t *b,
+ uint8_t *a);
+
+const char *canvas_native_paint_style_get_color_string(const struct PaintStyle *color);
+
+const char *canvas_native_paint_style_get_current_stroke_color_string(const struct CanvasRenderingContext2D *context);
+
+struct U8Buffer *canvas_native_paint_style_get_current_stroke_color_buf(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_paint_style_get_current_stroke_color_r_g_b_a(const struct CanvasRenderingContext2D *context,
+ uint8_t *r,
+ uint8_t *g,
+ uint8_t *b,
+ uint8_t *a);
+
+void canvas_native_paint_style_get_current_fill_color_r_g_b_a(const struct CanvasRenderingContext2D *context,
+ uint8_t *r,
+ uint8_t *g,
+ uint8_t *b,
+ uint8_t *a);
+
+const char *canvas_native_paint_style_get_current_fill_color_string(const struct CanvasRenderingContext2D *context);
+
+struct U8Buffer *canvas_native_paint_style_get_current_fill_color_buf(struct CanvasRenderingContext2D *context);
+
+enum PaintStyleType canvas_native_context_get_style_type(const struct PaintStyle *style);
+
+enum PaintStyleType canvas_native_context_get_current_fill_style_type(struct CanvasRenderingContext2D *context);
+
+enum PaintStyleType canvas_native_context_get_current_stroke_style_type(struct CanvasRenderingContext2D *context);
+
+struct PaintStyle *canvas_native_context_get_fill_style(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_fill_style(struct CanvasRenderingContext2D *context,
+ const struct PaintStyle *style);
+
+struct PaintStyle *canvas_native_context_get_stroke_style(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_stroke_style(struct CanvasRenderingContext2D *context,
+ const struct PaintStyle *style);
+
+float canvas_native_context_get_line_width(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_line_width(struct CanvasRenderingContext2D *context, float width);
+
+float canvas_native_context_get_line_dash_offset(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_line_dash_offset(struct CanvasRenderingContext2D *context,
+ float offset);
+
+struct F32Buffer *canvas_native_context_get_line_dash(const struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_set_line_dash(struct CanvasRenderingContext2D *context,
+ const struct F32Buffer *dash);
+
+void canvas_native_context_arc(struct CanvasRenderingContext2D *context,
+ float x,
+ float y,
+ float radius,
+ float start_angle,
+ float end_angle,
+ bool anticlockwise);
+
+void canvas_native_context_arc_to(struct CanvasRenderingContext2D *context,
+ float x1,
+ float y1,
+ float x2,
+ float y2,
+ float radius);
+
+void canvas_native_context_begin_path(struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_bezier_curve_to(struct CanvasRenderingContext2D *context,
+ float cp1x,
+ float cp1y,
+ float cp2x,
+ float cp2y,
+ float x,
+ float y);
+
+void canvas_native_context_clear_rect(struct CanvasRenderingContext2D *context,
+ float x,
+ float y,
+ float width,
+ float height);
+
+void canvas_native_context_clip(struct CanvasRenderingContext2D *context,
+ struct Path *path,
+ const char *rule);
+
+void canvas_native_context_clip_rule(struct CanvasRenderingContext2D *context, const char *rule);
+
+void canvas_native_context_close_path(struct CanvasRenderingContext2D *context);
+
+struct ImageData *canvas_native_context_create_image_data(int32_t width, int32_t height);
+
+struct ImageData *canvas_native_context_create_image_data_with_data(int32_t width,
+ int32_t height,
+ const struct U8Buffer *data);
+
+struct PaintStyle *canvas_native_context_create_linear_gradient(struct CanvasRenderingContext2D *context,
+ float x0,
+ float y0,
+ float x1,
+ float y1);
+
+struct PaintStyle *canvas_native_context_create_pattern(struct CanvasRenderingContext2D *context,
+ const struct U8Buffer *data,
+ int32_t width,
+ int32_t height,
+ const char *repetition);
+
+struct PaintStyle *canvas_native_context_create_pattern_asset(struct CanvasRenderingContext2D *context,
+ struct ImageAsset *asset,
+ const char *repetition);
+
+struct PaintStyle *canvas_native_context_create_pattern_encoded(struct CanvasRenderingContext2D *context,
+ const struct U8Buffer *data,
+ const char *repetition);
+
+struct PaintStyle *canvas_native_context_create_pattern_canvas2d(struct CanvasRenderingContext2D *source,
+ struct CanvasRenderingContext2D *context,
+ const char *repetition);
+
+struct PaintStyle *canvas_native_context_create_radial_gradient(struct CanvasRenderingContext2D *context,
+ float x0,
+ float y0,
+ float r0,
+ float x1,
+ float y1,
+ float r1);
+
+void canvas_native_context_draw_point(struct CanvasRenderingContext2D *context, float x, float y);
+
+void canvas_native_context_draw_points(struct CanvasRenderingContext2D *context,
+ int32_t mode,
+ const struct F32Buffer *points);
+
+void canvas_native_context_draw_image_dx_dy(struct CanvasRenderingContext2D *context,
+ const struct U8Buffer *data,
+ float width,
+ float height,
+ float dx,
+ float dy);
+
+void canvas_native_context_draw_image_dx_dy_dw_dh(struct CanvasRenderingContext2D *context,
+ const struct U8Buffer *data,
+ float width,
+ float height,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+void canvas_native_context_draw_image(struct CanvasRenderingContext2D *context,
+ const struct U8Buffer *data,
+ float width,
+ float height,
+ float sx,
+ float sy,
+ float s_width,
+ float s_height,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+void canvas_native_context_draw_image_encoded_dx_dy(struct CanvasRenderingContext2D *context,
+ const struct U8Buffer *data,
+ float dx,
+ float dy);
+
+void canvas_native_context_draw_image_encoded_dx_dy_dw_dh(struct CanvasRenderingContext2D *context,
+ const struct U8Buffer *data,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+void canvas_native_context_draw_image_encoded(struct CanvasRenderingContext2D *context,
+ const struct U8Buffer *data,
+ float sx,
+ float sy,
+ float s_width,
+ float s_height,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+void canvas_native_context_draw_image_dx_dy_asset(struct CanvasRenderingContext2D *context,
+ struct ImageAsset *asset,
+ float dx,
+ float dy);
+
+void canvas_native_context_draw_image_dx_dy_dw_dh_asset(struct CanvasRenderingContext2D *context,
+ struct ImageAsset *asset,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+void canvas_native_context_draw_image_asset(struct CanvasRenderingContext2D *context,
+ struct ImageAsset *asset,
+ float sx,
+ float sy,
+ float s_width,
+ float s_height,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+void canvas_native_context_draw_image_dx_dy_context(struct CanvasRenderingContext2D *context,
+ struct CanvasRenderingContext2D *source,
+ float dx,
+ float dy);
+
+void canvas_native_context_draw_image_dx_dy_dw_dh_context(struct CanvasRenderingContext2D *context,
+ struct CanvasRenderingContext2D *source,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+void canvas_native_context_draw_image_context(struct CanvasRenderingContext2D *context,
+ struct CanvasRenderingContext2D *source,
+ float sx,
+ float sy,
+ float s_width,
+ float s_height,
+ float dx,
+ float dy,
+ float d_width,
+ float d_height);
+
+void canvas_native_context_ellipse(struct CanvasRenderingContext2D *context,
+ float x,
+ float y,
+ float radius_x,
+ float radius_y,
+ float rotation,
+ float start_angle,
+ float end_angle,
+ bool anticlockwise);
+
+void canvas_native_context_fill(struct CanvasRenderingContext2D *context, const char *rule);
+
+void canvas_native_context_fill_with_path(struct CanvasRenderingContext2D *context,
+ struct Path *path,
+ const char *rule);
+
+void canvas_native_context_fill_rect(struct CanvasRenderingContext2D *context,
+ float x,
+ float y,
+ float width,
+ float height);
+
+void canvas_native_context_fill_text(struct CanvasRenderingContext2D *context,
+ const char *text,
+ float x,
+ float y,
+ float width);
+
+struct ImageData *canvas_native_context_get_image_data(struct CanvasRenderingContext2D *context,
+ float sx,
+ float sy,
+ float sw,
+ float sh);
+
+struct Matrix *canvas_native_context_get_transform(struct CanvasRenderingContext2D *context);
+
+bool canvas_native_context_is_point_in_path(struct CanvasRenderingContext2D *context,
+ float x,
+ float y,
+ const char *rule);
+
+bool canvas_native_context_is_point_in_path_with_path(struct CanvasRenderingContext2D *context,
+ struct Path *path,
+ float x,
+ float y,
+ const char *rule);
+
+bool canvas_native_context_is_point_in_stroke(struct CanvasRenderingContext2D *context,
+ float x,
+ float y);
+
+bool canvas_native_context_is_point_in_stroke_with_path(struct CanvasRenderingContext2D *context,
+ struct Path *path,
+ float x,
+ float y);
+
+void canvas_native_context_line_to(struct CanvasRenderingContext2D *context, float x, float y);
+
+struct TextMetrics *canvas_native_context_measure_text(struct CanvasRenderingContext2D *context,
+ const char *text);
+
+void canvas_native_context_move_to(struct CanvasRenderingContext2D *context, float x, float y);
+
+void canvas_native_context_put_image_data(struct CanvasRenderingContext2D *context,
+ struct ImageData *image_data,
+ float dx,
+ float dy,
+ float dirty_x,
+ float dirty_y,
+ float dirty_width,
+ float dirty_height);
+
+void canvas_native_context_quadratic_curve_to(struct CanvasRenderingContext2D *context,
+ float cpx,
+ float cpy,
+ float x,
+ float y);
+
+void canvas_native_context_rect(struct CanvasRenderingContext2D *context,
+ float x,
+ float y,
+ float width,
+ float height);
+
+void canvas_native_context_round_rect(struct CanvasRenderingContext2D *context,
+ float x,
+ float y,
+ float width,
+ float height,
+ const struct F32Buffer *radii);
+
+void canvas_native_context_round_rect_tl_tr_br_bl(struct CanvasRenderingContext2D *context,
+ float x,
+ float y,
+ float width,
+ float height,
+ float top_left,
+ float top_right,
+ float bottom_right,
+ float bottom_left);
+
+void canvas_native_context_reset_transform(struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_restore(struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_rotate(struct CanvasRenderingContext2D *context, float angle);
+
+void canvas_native_context_save(struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_scale(struct CanvasRenderingContext2D *context, float x, float y);
+
+void canvas_native_context_set_transform(struct CanvasRenderingContext2D *context,
+ float a,
+ float b,
+ float c,
+ float d,
+ float e,
+ float f);
+
+void canvas_native_context_set_transform_matrix(struct CanvasRenderingContext2D *context,
+ struct Matrix *matrix);
+
+void canvas_native_context_stroke(struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_stroke_with_path(struct CanvasRenderingContext2D *context,
+ struct Path *path);
+
+void canvas_native_context_stroke_rect(struct CanvasRenderingContext2D *context,
+ float x,
+ float y,
+ float width,
+ float height);
+
+void canvas_native_context_stroke_text(struct CanvasRenderingContext2D *context,
+ const char *text,
+ float x,
+ float y,
+ float width);
+
+void canvas_native_context_transform(struct CanvasRenderingContext2D *context,
+ float a,
+ float b,
+ float c,
+ float d,
+ float e,
+ float f);
+
+void canvas_native_context_translate(struct CanvasRenderingContext2D *context, float x, float y);
+
+void canvas_native_context_flush(struct CanvasRenderingContext2D *context);
+
+void canvas_native_context_render(const struct CanvasRenderingContext2D *context);
+
+const char *canvas_native_to_data_url(struct CanvasRenderingContext2D *context,
+ const char *format,
+ uint32_t quality);
+
+struct ImageAsset *canvas_native_image_bitmap_create_from_asset(struct ImageAsset *asset,
+ bool flip_y,
+ enum ImageBitmapPremultiplyAlpha premultiply_alpha,
+ enum ImageBitmapColorSpaceConversion color_space_conversion,
+ enum ImageBitmapResizeQuality resize_quality,
+ float resize_width,
+ float resize_height);
+
+struct ImageAsset *canvas_native_image_bitmap_create_from_asset_src_rect(struct ImageAsset *asset,
+ float sx,
+ float sy,
+ float s_width,
+ float s_height,
+ bool flip_y,
+ enum ImageBitmapPremultiplyAlpha premultiply_alpha,
+ enum ImageBitmapColorSpaceConversion color_space_conversion,
+ enum ImageBitmapResizeQuality resize_quality,
+ float resize_width,
+ float resize_height);
+
+struct ImageAsset *canvas_native_image_bitmap_create_from_encoded_bytes(const struct U8Buffer *bytes,
+ bool flip_y,
+ enum ImageBitmapPremultiplyAlpha premultiply_alpha,
+ enum ImageBitmapColorSpaceConversion color_space_conversion,
+ enum ImageBitmapResizeQuality resize_quality,
+ float resize_width,
+ float resize_height);
+
+bool canvas_native_image_bitmap_create_from_encoded_bytes_with_output(const struct U8Buffer *bytes,
+ bool flip_y,
+ enum ImageBitmapPremultiplyAlpha premultiply_alpha,
+ enum ImageBitmapColorSpaceConversion color_space_conversion,
+ enum ImageBitmapResizeQuality resize_quality,
+ float resize_width,
+ float resize_height,
+ struct ImageAsset *output);
+
+struct ImageAsset *canvas_native_image_bitmap_create_from_encoded_bytes_src_rect(const struct U8Buffer *bytes,
+ float sx,
+ float sy,
+ float s_width,
+ float s_height,
+ bool flip_y,
+ enum ImageBitmapPremultiplyAlpha premultiply_alpha,
+ enum ImageBitmapColorSpaceConversion color_space_conversion,
+ enum ImageBitmapResizeQuality resize_quality,
+ float resize_width,
+ float resize_height);
+
+bool canvas_native_image_bitmap_create_from_encoded_bytes_src_rect_with_output(const struct U8Buffer *bytes,
+ float sx,
+ float sy,
+ float s_width,
+ float s_height,
+ bool flip_y,
+ enum ImageBitmapPremultiplyAlpha premultiply_alpha,
+ enum ImageBitmapColorSpaceConversion color_space_conversion,
+ enum ImageBitmapResizeQuality resize_quality,
+ float resize_width,
+ float resize_height,
+ struct ImageAsset *output);
+
+void canvas_native_path_add_path(struct Path *path, const struct Path *path_to_add);
+
+struct Path *canvas_native_path_create(void);
+
+struct Path *canvas_native_path_create_with_path(const struct Path *path);
+
+struct Path *canvas_native_path_create_with_string(const char *string);
+
+void canvas_native_path_close_path(struct Path *path);
+
+void canvas_native_path_move_to(struct Path *path, float x, float y);
+
+void canvas_native_path_line_to(struct Path *path, float x, float y);
+
+void canvas_native_path_bezier_curve_to(struct Path *path,
+ float cp1x,
+ float cp1y,
+ float cp2x,
+ float cp2y,
+ float x,
+ float y);
+
+void canvas_native_path_quadratic_curve_to(struct Path *path,
+ float cpx,
+ float cpy,
+ float x,
+ float y);
+
+void canvas_native_path_arc(struct Path *path,
+ float x,
+ float y,
+ float radius,
+ float start_angle,
+ float end_angle,
+ bool anti_clockwise);
+
+void canvas_native_path_arc_to(struct Path *path,
+ float x1,
+ float y1,
+ float x2,
+ float y2,
+ float radius);
+
+void canvas_native_path_ellipse(struct Path *path,
+ float x,
+ float y,
+ float radius_x,
+ float radius_y,
+ float rotation,
+ float start_angle,
+ float end_angle,
+ bool anticlockwise);
+
+void canvas_native_path_rect(struct Path *path, float x, float y, float width, float height);
+
+void canvas_native_path_round_rect(struct Path *path,
+ float x,
+ float y,
+ float width,
+ float height,
+ const struct F32Buffer *radii);
+
+void canvas_native_path_round_rect_tl_tr_br_bl(struct Path *path,
+ float x,
+ float y,
+ float width,
+ float height,
+ float top_left,
+ float top_right,
+ float bottom_right,
+ float bottom_left);
+
+const char *canvas_native_path_to_string(const struct Path *path);
+
+struct Matrix *canvas_native_matrix_create(void);
+
+void canvas_native_matrix_update(struct Matrix *matrix, const struct F32Buffer *slice);
+
+void canvas_native_matrix_update_3d(struct Matrix *matrix, const struct F32Buffer *slice);
+
+float canvas_native_matrix_get_a(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_a(struct Matrix *matrix, float a);
+
+float canvas_native_matrix_get_b(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_b(struct Matrix *matrix, float b);
+
+float canvas_native_matrix_get_c(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_c(struct Matrix *matrix, float c);
+
+float canvas_native_matrix_get_d(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_d(struct Matrix *matrix, float d);
+
+float canvas_native_matrix_get_e(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_e(struct Matrix *matrix, float e);
+
+float canvas_native_matrix_get_f(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_f(struct Matrix *matrix, float f);
+
+float canvas_native_matrix_get_m11(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m11(struct Matrix *matrix, float m11);
+
+float canvas_native_matrix_get_m12(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m12(struct Matrix *matrix, float m12);
+
+float canvas_native_matrix_get_m13(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m13(struct Matrix *matrix, float m13);
+
+float canvas_native_matrix_get_m14(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m14(struct Matrix *matrix, float m14);
+
+float canvas_native_matrix_get_m21(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m21(struct Matrix *matrix, float m21);
+
+float canvas_native_matrix_get_m22(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m22(struct Matrix *matrix, float m22);
+
+float canvas_native_matrix_get_m23(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m23(struct Matrix *matrix, float m23);
+
+float canvas_native_matrix_get_m24(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m24(struct Matrix *matrix, float m24);
+
+float canvas_native_matrix_get_m31(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m31(struct Matrix *matrix, float m31);
+
+float canvas_native_matrix_get_m32(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m32(struct Matrix *matrix, float m32);
+
+float canvas_native_matrix_get_m33(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m33(struct Matrix *matrix, float m33);
+
+float canvas_native_matrix_get_m34(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m34(struct Matrix *matrix, float m34);
+
+float canvas_native_matrix_get_m41(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m41(struct Matrix *matrix, float m41);
+
+float canvas_native_matrix_get_m42(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m42(struct Matrix *matrix, float m42);
+
+float canvas_native_matrix_get_m43(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m43(struct Matrix *matrix, float m43);
+
+float canvas_native_matrix_get_m44(const struct Matrix *matrix);
+
+void canvas_native_matrix_set_m44(struct Matrix *matrix, float m44);
+
+struct ImageData *canvas_native_image_data_create(int32_t width, int32_t height);
+
+int32_t canvas_native_image_data_get_width(const struct ImageData *image_data);
+
+int32_t canvas_native_image_data_get_height(const struct ImageData *image_data);
+
+struct U8BufferMut *canvas_native_image_data_get_data(struct ImageData *image_data);
+
+struct ImageData *canvas_native_image_data_get_shared_instance(struct ImageData *image_data);
+
+struct ImageAsset *canvas_native_image_asset_create(void);
+
+struct ImageAsset *canvas_native_image_asset_shared_clone(const struct ImageAsset *asset);
+
+bool canvas_native_image_asset_load_from_fd(struct ImageAsset *asset, int fd);
+
+bool canvas_native_image_asset_load_from_path(struct ImageAsset *asset, const char *path);
+
+bool canvas_native_image_asset_load_from_raw(struct ImageAsset *asset,
+ const struct U8Buffer *array);
+
+bool canvas_native_image_asset_load_from_url(struct ImageAsset *asset, const char *url);
+
+int64_t canvas_native_image_asset_addr(struct ImageAsset *asset);
+
+uint32_t canvas_native_image_asset_width(struct ImageAsset *asset);
+
+uint32_t canvas_native_image_asset_height(struct ImageAsset *asset);
+
+const char *canvas_native_image_asset_get_error(struct ImageAsset *asset);
+
+bool canvas_native_image_asset_has_error(struct ImageAsset *asset);
+
+bool canvas_native_image_asset_scale(struct ImageAsset *asset, uint32_t x, uint32_t y);
+
+bool canvas_native_image_asset_save_path(struct ImageAsset *asset,
+ const char *path,
+ uint32_t format);
+
+float canvas_native_text_metrics_get_width(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_actual_bounding_box_left(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_actual_bounding_box_right(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_actual_bounding_box_ascent(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_actual_bounding_box_descent(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_font_bounding_box_ascent(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_font_bounding_box_descent(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_em_height_ascent(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_em_height_descent(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_hanging_baseline(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_alphabetic_baseline(const struct TextMetrics *metrics);
+
+float canvas_native_text_metrics_get_ideographic_baseline(const struct TextMetrics *metrics);
+
+struct PaintStyle *canvas_native_paint_style_from_bytes(const struct CanvasRenderingContext2D *context,
+ int32_t repetition,
+ int32_t width,
+ int32_t height,
+ const struct U8Buffer *bytes);
+
+struct PaintStyle *canvas_native_pattern_from_ptr(int64_t ptr);
+
+struct PaintStyle *canvas_native_paint_style_empty(void);
+
+void canvas_native_gradient_add_color_stop(struct PaintStyle *style, float stop, const char *color);
+
+void canvas_native_pattern_set_transform(struct PaintStyle *pattern, const struct Matrix *matrix);
+
+struct TextDecoder *canvas_native_text_decoder_create(const char *decoding);
+
+const char *canvas_native_text_decoder_decode(const struct TextDecoder *decoder,
+ const struct U8Buffer *data);
+
+const char *canvas_native_text_decoder_get_encoding(const struct TextDecoder *decoder);
+
+struct TextEncoder *canvas_native_text_encoder_create(const char *encoding);
+
+struct U8Buffer *canvas_native_text_encoder_encode(const struct TextEncoder *encoder,
+ const char *text);
+
+const char *canvas_native_text_encoder_get_encoding(const struct TextEncoder *encoder);
+
+bool canvas_native_context_gl_make_current(const struct CanvasRenderingContext2D *context);
+
+bool canvas_native_context_gl_swap_buffers(const struct CanvasRenderingContext2D *context);
+
+struct PaintStyle *canvas_native_context_create_pattern_webgl(struct WebGLState *source,
+ struct CanvasRenderingContext2D *context,
+ const char *repetition);
+
+bool canvas_native_webgl_make_current(struct WebGLState *state);
+
+bool canvas_native_webgl_swap_buffers(struct WebGLState *state);
+
+void canvas_native_webgl_state_destroy(struct WebGLState *state);
+
+void canvas_native_webgl_active_info_destroy(struct WebGLActiveInfo *info);
+
+void canvas_native_context_attributes_destroy(struct ContextAttributes *attr);
+
+void canvas_native_webgl_framebuffer_attachment_parameter_destroy(struct WebGLFramebufferAttachmentParameter *parameter);
+
+void canvas_native_webgl_shader_precision_format_destroy(struct WebGLFramebufferAttachmentParameter *value);
+
+void canvas_native_webgl_extension_destroy(struct WebGLExtension *value);
+
+void canvas_native_webgl_EXT_blend_minmax_destroy(struct EXT_blend_minmax *value);
+
+void canvas_native_webgl_EXT_color_buffer_half_float_destroy(struct EXT_color_buffer_half_float *value);
+
+void canvas_native_webgl_EXT_disjoint_timer_query_destroy(struct EXT_disjoint_timer_query *value);
+
+void canvas_native_webgl_EXT_sRGB_destroy(struct EXT_disjoint_timer_query *value);
+
+void canvas_native_webgl_EXT_shader_texture_lod_destroy(struct EXT_shader_texture_lod *value);
+
+void canvas_native_webgl_EXT_texture_filter_anisotropic_destroy(struct EXT_texture_filter_anisotropic *value);
+
+void canvas_native_webgl_OES_element_index_uint_destroy(struct OES_element_index_uint *value);
+
+void canvas_native_webgl_OES_standard_derivatives_destroy(struct OES_standard_derivatives *value);
+
+void canvas_native_webgl_OES_texture_float_destroy(struct OES_texture_float *value);
+
+void canvas_native_webgl_OES_texture_float_linear_destroy(struct OES_texture_float_linear *value);
+
+void canvas_native_webgl_OES_texture_half_float_destroy(struct OES_texture_half_float *value);
+
+void canvas_native_webgl_OES_texture_half_float_linear_destroy(struct OES_texture_half_float_linear *value);
+
+void canvas_native_webgl_OES_vertex_array_object_destroy(struct OES_vertex_array_object *value);
+
+void canvas_native_webgl_WEBGL_color_buffer_float_destroy(struct WEBGL_color_buffer_float *value);
+
+void canvas_native_webgl_WEBGL_compressed_texture_atc_destroy(struct WEBGL_compressed_texture_atc *value);
+
+void canvas_native_webgl_WEBGL_compressed_texture_etc1_destroy(struct WEBGL_compressed_texture_etc1 *value);
+
+void canvas_native_webgl_WEBGL_compressed_texture_s3tc_destroy(struct WEBGL_compressed_texture_s3tc *value);
+
+void canvas_native_webgl_WEBGL_compressed_texture_s3tc_srgb_destroy(struct WEBGL_compressed_texture_s3tc_srgb *value);
+
+void canvas_native_webgl_WEBGL_compressed_texture_etc_destroy(struct WEBGL_compressed_texture_etc *value);
+
+void canvas_native_webgl_WEBGL_compressed_texture_pvrtc_destroy(struct WEBGL_compressed_texture_pvrtc *value);
+
+void canvas_native_webgl_WEBGL_lose_context_destroy(struct WEBGL_lose_context *value);
+
+void canvas_native_webgl_ANGLE_instanced_arrays_destroy(struct ANGLE_instanced_arrays *value);
+
+void canvas_native_webgl_WEBGL_depth_texture_destroy(struct WEBGL_depth_texture *value);
+
+void canvas_native_webgl_WEBGL_draw_buffers_destroy(struct WEBGL_draw_buffers *value);
+
+void canvas_native_webgl_WebGLResult_destroy(struct WebGLResult *value);
+
+const char *canvas_native_webgl_active_info_get_name(const struct WebGLActiveInfo *info);
+
+int32_t canvas_native_webgl_active_info_get_size(const struct WebGLActiveInfo *info);
+
+uint32_t canvas_native_webgl_active_info_get_type(const struct WebGLActiveInfo *info);
+
+bool canvas_native_webgl_active_info_get_is_empty(const struct WebGLActiveInfo *info);
+
+int32_t canvas_native_webgl_shader_precision_format_get_range_min(const struct WebGLShaderPrecisionFormat *shader);
+
+int32_t canvas_native_webgl_shader_precision_format_get_range_max(const struct WebGLShaderPrecisionFormat *shader);
+
+int32_t canvas_native_webgl_shader_precision_format_get_precision(const struct WebGLShaderPrecisionFormat *shader);
+
+bool canvas_native_webgl_context_attribute_get_get_alpha(const struct ContextAttributes *attr);
+
+bool canvas_native_webgl_context_attribute_get_get_antialias(const struct ContextAttributes *attr);
+
+bool canvas_native_webgl_context_attribute_get_get_depth(const struct ContextAttributes *attr);
+
+bool canvas_native_webgl_context_attribute_get_get_fail_if_major_performance_caveat(const struct ContextAttributes *attr);
+
+const char *canvas_native_webgl_context_attribute_get_get_power_preference(const struct ContextAttributes *attr);
+
+bool canvas_native_webgl_context_attribute_get_get_premultiplied_alpha(const struct ContextAttributes *attr);
+
+bool canvas_native_webgl_context_attribute_get_get_preserve_drawing_buffer(const struct ContextAttributes *attr);
+
+bool canvas_native_webgl_context_attribute_get_get_stencil(const struct ContextAttributes *attr);
+
+bool canvas_native_webgl_context_attribute_get_get_desynchronized(const struct ContextAttributes *attr);
+
+bool canvas_native_webgl_context_attribute_get_get_xr_compatible(const struct ContextAttributes *attr);
+
+bool canvas_native_webgl_context_extension_is_none(const struct WebGLExtension *extension);
+
+enum WebGLExtensionType canvas_native_webgl_context_extension_get_type(const struct WebGLExtension *extension);
+
+struct EXT_disjoint_timer_query *canvas_native_webgl_context_extension_to_ext_disjoint_timer_query(struct WebGLExtension *extension);
+
+struct ANGLE_instanced_arrays *canvas_native_webgl_context_extension_to_angle_instanced_arrays(struct WebGLExtension *extension);
+
+struct WEBGL_lose_context *canvas_native_webgl_context_extension_to_lose_context(struct WebGLExtension *extension);
+
+struct WEBGL_draw_buffers *canvas_native_webgl_context_extension_to_draw_buffers(struct WebGLExtension *extension);
+
+struct OES_vertex_array_object *canvas_native_webgl_context_extension_to_oes_vertex_array_object(struct WebGLExtension *extension);
+
+int32_t canvas_native_webgl_state_get_unpack_colorspace_conversion_webgl(struct WebGLState *state);
+
+bool canvas_native_webgl_state_get_flip_y(struct WebGLState *state);
+
+bool canvas_native_webgl_state_get_premultiplied_alpha(struct WebGLState *state);
+
+int32_t canvas_native_webgl_state_get_drawing_buffer_width(struct WebGLState *state);
+
+int32_t canvas_native_webgl_state_get_drawing_buffer_height(struct WebGLState *state);
+
+uint32_t canvas_native_webgl_ext_disjoint_timer_query_create_query_ext(const struct EXT_disjoint_timer_query *query);
+
+void canvas_native_webgl_ext_disjoint_timer_query_delete_query_ext(uint32_t value,
+ const struct EXT_disjoint_timer_query *query);
+
+bool canvas_native_webgl_ext_disjoint_timer_query_is_query_ext(uint32_t value,
+ const struct EXT_disjoint_timer_query *query);
+
+void canvas_native_webgl_ext_disjoint_timer_query_begin_query_ext(uint32_t target,
+ uint32_t value,
+ const struct EXT_disjoint_timer_query *query);
+
+void canvas_native_webgl_ext_disjoint_timer_query_end_query_ext(uint32_t target,
+ const struct EXT_disjoint_timer_query *query);
+
+void canvas_native_webgl_ext_disjoint_timer_query_query_counter_ext(uint32_t value,
+ uint32_t target,
+ const struct EXT_disjoint_timer_query *query);
+
+int32_t canvas_native_webgl_ext_disjoint_timer_query_get_query_ext(uint32_t target,
+ uint32_t pname,
+ const struct EXT_disjoint_timer_query *query);
+
+struct WebGLResult *canvas_native_webgl_ext_disjoint_timer_query_get_query_object_ext(uint32_t target,
+ uint32_t pname,
+ const struct EXT_disjoint_timer_query *query);
+
+struct WebGLState *canvas_native_webgl_create(int64_t gl_context,
+ const char *version,
+ bool alpha,
+ bool antialias,
+ bool depth,
+ bool fail_if_major_performance_caveat,
+ const char *power_preference,
+ bool premultiplied_alpha,
+ bool preserve_drawing_buffer,
+ bool stencil,
+ bool desynchronized,
+ bool xr_compatible);
+
+struct WebGLState *canvas_native_webgl_create_no_window(int32_t width,
+ int32_t height,
+ const char *version,
+ bool alpha,
+ bool antialias,
+ bool depth,
+ bool fail_if_major_performance_caveat,
+ const char *power_preference,
+ bool premultiplied_alpha,
+ bool preserve_drawing_buffer,
+ bool stencil,
+ bool desynchronized,
+ bool xr_compatible,
+ bool is_canvas);
+
+void canvas_native_webgl_active_texture(uint32_t texture, struct WebGLState *state);
+
+void canvas_native_webgl_attach_shader(uint32_t program, uint32_t shader, struct WebGLState *state);
+
+void canvas_native_webgl_bind_attrib_location(uint32_t program,
+ uint32_t index,
+ const char *name,
+ struct WebGLState *state);
+
+void canvas_native_webgl_bind_buffer(uint32_t target, uint32_t buffer, struct WebGLState *state);
+
+void canvas_native_webgl_bind_frame_buffer(uint32_t target,
+ uint32_t framebuffer,
+ struct WebGLState *state);
+
+void canvas_native_webgl_bind_render_buffer(uint32_t target,
+ uint32_t renderbuffer,
+ struct WebGLState *state);
+
+void canvas_native_webgl_bind_texture(uint32_t target, uint32_t texture, struct WebGLState *state);
+
+void canvas_native_webgl_blend_color(float red,
+ float green,
+ float blue,
+ float alpha,
+ struct WebGLState *state);
+
+void canvas_native_webgl_blend_equation_separate(uint32_t mode_rgb,
+ uint32_t mode_alpha,
+ struct WebGLState *state);
+
+void canvas_native_webgl_blend_equation(uint32_t mode, struct WebGLState *state);
+
+void canvas_native_webgl_blend_func_separate(uint32_t src_rgb,
+ uint32_t dst_rgb,
+ uint32_t src_alpha,
+ uint32_t dst_alpha,
+ struct WebGLState *state);
+
+void canvas_native_webgl_blend_func(uint32_t sfactor, uint32_t dfactor, struct WebGLState *state);
+
+void canvas_native_webgl_buffer_data(uint32_t target,
+ const struct U8Buffer *src_data,
+ uint32_t usage,
+ struct WebGLState *state);
+
+void canvas_native_webgl_buffer_data_u16(uint32_t target,
+ const struct U16Buffer *src_data,
+ uint32_t usage,
+ struct WebGLState *state);
+
+void canvas_native_webgl_buffer_data_f32(uint32_t target,
+ const struct F32Buffer *src_data,
+ uint32_t usage,
+ struct WebGLState *state);
+
+void canvas_native_webgl_buffer_data_none(uint32_t target,
+ intptr_t size,
+ uint32_t usage,
+ struct WebGLState *state);
+
+void canvas_native_webgl_buffer_sub_data(uint32_t target,
+ intptr_t offset,
+ const struct U8Buffer *src_data,
+ struct WebGLState *state);
+
+void canvas_native_webgl_buffer_sub_data_none(uint32_t target,
+ intptr_t offset,
+ struct WebGLState *state);
+
+uint32_t canvas_native_webgl_check_frame_buffer_status(uint32_t target, struct WebGLState *state);
+
+void canvas_native_webgl_clear(uint32_t mask, struct WebGLState *state);
+
+void canvas_native_webgl_clear_color(float red,
+ float green,
+ float blue,
+ float alpha,
+ struct WebGLState *state);
+
+void canvas_native_webgl_clear_depth(float depth, struct WebGLState *state);
+
+void canvas_native_webgl_clear_stencil(int32_t stencil, struct WebGLState *state);
+
+void canvas_native_webgl_color_mask(bool red,
+ bool green,
+ bool blue,
+ bool alpha,
+ struct WebGLState *state);
+
+void canvas_native_webgl_commit(struct WebGLState*);
+
+void canvas_native_webgl_compile_shader(uint32_t shader, struct WebGLState *state);
+
+void canvas_native_webgl_compressed_tex_image2d(uint32_t target,
+ int32_t level,
+ uint32_t internalformat,
+ int32_t width,
+ int32_t height,
+ int32_t border,
+ const struct U8Buffer *pixels,
+ struct WebGLState *state);
+
+void canvas_native_webgl_compressed_tex_image2d_none(uint32_t target,
+ int32_t level,
+ uint32_t internalformat,
+ int32_t width,
+ int32_t height,
+ int32_t border,
+ struct WebGLState *state);
+
+void canvas_native_webgl_compressed_tex_sub_image2d(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t width,
+ int32_t height,
+ uint32_t format,
+ const struct U8Buffer *pixels,
+ struct WebGLState *state);
+
+void canvas_native_webgl_copy_tex_image2d(uint32_t target,
+ int32_t level,
+ uint32_t internalformat,
+ int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ int32_t border,
+ struct WebGLState *state);
+
+void canvas_native_webgl_copy_tex_sub_image2d(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ struct WebGLState *state);
+
+uint32_t canvas_native_webgl_create_buffer(struct WebGLState *state);
+
+uint32_t canvas_native_webgl_create_framebuffer(struct WebGLState *state);
+
+uint32_t canvas_native_webgl_create_program(struct WebGLState *state);
+
+uint32_t canvas_native_webgl_create_renderbuffer(struct WebGLState *state);
+
+uint32_t canvas_native_webgl_create_shader(uint32_t shader_type, struct WebGLState *state);
+
+uint32_t canvas_native_webgl_create_texture(struct WebGLState *state);
+
+void canvas_native_webgl_cull_face(uint32_t mode, struct WebGLState *state);
+
+void canvas_native_webgl_delete_buffer(uint32_t buffer, struct WebGLState *state);
+
+void canvas_native_webgl_delete_framebuffer(uint32_t frame_buffer, struct WebGLState *state);
+
+void canvas_native_webgl_delete_program(uint32_t program, struct WebGLState *state);
+
+void canvas_native_webgl_delete_renderbuffer(uint32_t render_buffer, struct WebGLState *state);
+
+void canvas_native_webgl_delete_shader(uint32_t shader, struct WebGLState *state);
+
+void canvas_native_webgl_delete_texture(uint32_t texture, struct WebGLState *state);
+
+void canvas_native_webgl_depth_func(uint32_t func, struct WebGLState *state);
+
+void canvas_native_webgl_depth_mask(bool flag, struct WebGLState *state);
+
+void canvas_native_webgl_depth_range(float z_near, float z_far, struct WebGLState *state);
+
+void canvas_native_webgl_detach_shader(uint32_t program, uint32_t shader, struct WebGLState *state);
+
+void canvas_native_webgl_disable(uint32_t cap, struct WebGLState *state);
+
+void canvas_native_webgl_disable_vertex_attrib_array(uint32_t index, struct WebGLState *state);
+
+void canvas_native_webgl_draw_arrays(uint32_t mode,
+ int32_t first,
+ int32_t count,
+ struct WebGLState *state);
+
+void canvas_native_webgl_draw_elements(uint32_t mode,
+ int32_t count,
+ uint32_t element_type,
+ intptr_t offset,
+ struct WebGLState *state);
+
+void canvas_native_webgl_enable(uint32_t cap, struct WebGLState *state);
+
+void canvas_native_webgl_enable_vertex_attrib_array(uint32_t index, struct WebGLState *state);
+
+void canvas_native_webgl_finish(struct WebGLState *state);
+
+void canvas_native_webgl_flush(struct WebGLState *state);
+
+void canvas_native_webgl_framebuffer_renderbuffer(uint32_t target,
+ uint32_t attachment,
+ uint32_t renderbuffertarget,
+ uint32_t renderbuffer,
+ struct WebGLState *state);
+
+void canvas_native_webgl_framebuffer_texture2d(uint32_t target,
+ uint32_t attachment,
+ uint32_t textarget,
+ uint32_t texture,
+ int32_t level,
+ struct WebGLState *state);
+
+void canvas_native_webgl_front_face(uint32_t mode, struct WebGLState *state);
+
+void canvas_native_webgl_generate_mipmap(uint32_t target, struct WebGLState *state);
+
+struct WebGLActiveInfo *canvas_native_webgl_get_active_attrib(uint32_t program,
+ uint32_t index,
+ struct WebGLState *state);
+
+struct WebGLActiveInfo *canvas_native_webgl_get_active_uniform(uint32_t program,
+ uint32_t index,
+ struct WebGLState *state);
+
+struct U32Buffer *canvas_native_webgl_get_attached_shaders(uint32_t program,
+ struct WebGLState *state);
+
+int32_t canvas_native_webgl_get_attrib_location(uint32_t program,
+ const char *name,
+ struct WebGLState *state);
+
+int32_t canvas_native_webgl_get_buffer_parameter(uint32_t target,
+ uint32_t pname,
+ struct WebGLState *state);
+
+struct ContextAttributes *canvas_native_webgl_get_context_attributes(struct WebGLState *state);
+
+uint32_t canvas_native_webgl_get_error(struct WebGLState *state);
+
+const struct WebGLExtension *canvas_native_webgl_get_extension(const char *name,
+ struct WebGLState *state);
+
+struct WebGLFramebufferAttachmentParameter *canvas_native_webgl_get_framebuffer_attachment_parameter(uint32_t target,
+ uint32_t attachment,
+ uint32_t pname,
+ struct WebGLState *state);
+
+bool canvas_native_webgl_framebuffer_attachment_parameter_get_is_texture(const struct WebGLFramebufferAttachmentParameter *param);
+
+bool canvas_native_webgl_framebuffer_attachment_parameter_get_is_renderbuffer(const struct WebGLFramebufferAttachmentParameter *param);
+
+int32_t canvas_native_webgl_framebuffer_attachment_parameter_get_value(const struct WebGLFramebufferAttachmentParameter *param);
+
+struct WebGLResult *canvas_native_webgl_get_parameter(uint32_t pname, struct WebGLState *state);
+
+const char *canvas_native_webgl_get_program_info_log(uint32_t program, struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl_get_program_parameter(uint32_t program,
+ uint32_t pname,
+ struct WebGLState *state);
+
+int32_t canvas_native_webgl_get_renderbuffer_parameter(uint32_t target,
+ uint32_t pname,
+ struct WebGLState *state);
+
+const char *canvas_native_webgl_get_shader_info_log(uint32_t shader, struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl_get_shader_parameter(uint32_t shader,
+ uint32_t pname,
+ struct WebGLState *state);
+
+struct WebGLShaderPrecisionFormat *canvas_native_webgl_get_shader_precision_format(uint32_t shader_type,
+ uint32_t precision_type,
+ struct WebGLState *state);
+
+const char *canvas_native_webgl_get_shader_source(uint32_t shader, struct WebGLState *state);
+
+struct StringBuffer *canvas_native_webgl_get_supported_extensions(struct WebGLState *state);
+
+const char *canvas_native_webgl_get_supported_extensions_to_string(struct WebGLState *state);
+
+int32_t canvas_native_webgl_get_tex_parameter(uint32_t target,
+ uint32_t pname,
+ struct WebGLState *state);
+
+int32_t canvas_native_webgl_get_uniform_location(uint32_t program,
+ const char *name,
+ struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl_get_uniform(uint32_t program,
+ int32_t location,
+ struct WebGLState *state);
+
+uintptr_t canvas_native_webgl_get_vertex_attrib_offset(uint32_t index,
+ uint32_t pname,
+ struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl_get_vertex_attrib(uint32_t index,
+ uint32_t pname,
+ struct WebGLState *state);
+
+bool canvas_native_webgl_get_is_context_lost(struct WebGLState*);
+
+void canvas_native_webgl_hint(uint32_t target, uint32_t mode, struct WebGLState *state);
+
+bool canvas_native_webgl_is_buffer(uint32_t buffer, struct WebGLState *state);
+
+bool canvas_native_webgl_is_enabled(uint32_t cap, struct WebGLState *state);
+
+bool canvas_native_webgl_is_framebuffer(uint32_t framebuffer, struct WebGLState *state);
+
+bool canvas_native_webgl_is_program(uint32_t program, struct WebGLState *state);
+
+bool canvas_native_webgl_is_renderbuffer(uint32_t renderbuffer, struct WebGLState *state);
+
+bool canvas_native_webgl_is_shader(uint32_t shader, struct WebGLState *state);
+
+bool canvas_native_webgl_is_texture(uint32_t texture, struct WebGLState *state);
+
+void canvas_native_webgl_line_width(float width, struct WebGLState *state);
+
+void canvas_native_webgl_link_program(uint32_t program, struct WebGLState *state);
+
+void canvas_native_webgl_pixel_storei(uint32_t pname, int32_t param, struct WebGLState *state);
+
+void canvas_native_webgl_polygon_offset(float factor, float units, struct WebGLState *state);
+
+void canvas_native_webgl_read_pixels_u8(int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ uint32_t format,
+ uint32_t pixel_type,
+ struct U8BufferMut *pixels,
+ struct WebGLState *state);
+
+void canvas_native_webgl_read_pixels_u16(int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ uint32_t format,
+ uint32_t pixel_type,
+ struct U16BufferMut *pixels,
+ struct WebGLState *state);
+
+void canvas_native_webgl_read_pixels_f32(int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ uint32_t format,
+ uint32_t pixel_type,
+ struct F32BufferMut *pixels,
+ struct WebGLState *state);
+
+void canvas_native_webgl_renderbuffer_storage(uint32_t target,
+ uint32_t internal_format,
+ int32_t width,
+ int32_t height,
+ struct WebGLState *state);
+
+void canvas_native_webgl_sample_coverage(float value, bool invert, struct WebGLState *state);
+
+void canvas_native_webgl_scissor(int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ struct WebGLState *state);
+
+void canvas_native_webgl_shader_source(uint32_t shader,
+ const char *source,
+ struct WebGLState *state);
+
+void canvas_native_webgl_stencil_func(uint32_t func,
+ int32_t reference,
+ uint32_t mask,
+ struct WebGLState *state);
+
+void canvas_native_webgl_stencil_func_separate(uint32_t face,
+ uint32_t func,
+ int32_t reference,
+ uint32_t mask,
+ struct WebGLState *state);
+
+void canvas_native_webgl_stencil_mask(uint32_t mask, struct WebGLState *state);
+
+void canvas_native_webgl_stencil_mask_separate(uint32_t face,
+ uint32_t mask,
+ struct WebGLState *state);
+
+void canvas_native_webgl_stencil_op(uint32_t fail,
+ uint32_t zfail,
+ uint32_t zpass,
+ struct WebGLState *state);
+
+void canvas_native_webgl_stencil_op_separate(uint32_t face,
+ uint32_t fail,
+ uint32_t zfail,
+ uint32_t zpass,
+ struct WebGLState *state);
+
+void canvas_native_webgl_tex_image2d_image_none(int32_t target,
+ int32_t level,
+ int32_t internalformat,
+ int32_t format,
+ int32_t image_type,
+ struct WebGLState *state);
+
+void canvas_native_webgl_tex_image2d(int32_t target,
+ int32_t level,
+ int32_t internalformat,
+ int32_t width,
+ int32_t height,
+ int32_t border,
+ int32_t format,
+ int32_t image_type,
+ struct U8BufferMut *buf,
+ struct WebGLState *state);
+
+void canvas_native_webgl_tex_image2d_none(int32_t target,
+ int32_t level,
+ int32_t internalformat,
+ int32_t width,
+ int32_t height,
+ int32_t border,
+ int32_t format,
+ int32_t image_type,
+ struct WebGLState *state);
+
+void canvas_native_webgl_tex_parameterf(uint32_t target,
+ uint32_t pname,
+ float param,
+ struct WebGLState *state);
+
+void canvas_native_webgl_tex_parameteri(uint32_t target,
+ uint32_t pname,
+ int32_t param,
+ struct WebGLState *state);
+
+void canvas_native_webgl_tex_sub_image2d_asset(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ uint32_t format,
+ int32_t image_type,
+ struct ImageAsset *asset,
+ struct WebGLState *state);
+
+void canvas_native_webgl_tex_sub_image2d_canvas2d(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ uint32_t format,
+ int32_t image_type,
+ struct CanvasRenderingContext2D *canvas,
+ struct WebGLState *state);
+
+void canvas_native_webgl_tex_sub_image2d_webgl(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ uint32_t _format,
+ int32_t _image_type,
+ struct WebGLState *webgl,
+ struct WebGLState *state);
+
+void canvas_native_webgl_tex_sub_image2d(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t width,
+ int32_t height,
+ uint32_t format,
+ int32_t image_type,
+ const struct U8Buffer *buf,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform1f(int32_t location, float v0, struct WebGLState *state);
+
+void canvas_native_webgl_uniform1fv(int32_t location,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform1i(int32_t location, int32_t v0, struct WebGLState *state);
+
+void canvas_native_webgl_uniform1iv(int32_t location,
+ const struct I32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform2f(int32_t location, float v0, float v1, struct WebGLState *state);
+
+void canvas_native_webgl_uniform2fv(int32_t location,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform2i(int32_t location,
+ int32_t v0,
+ int32_t v1,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform2iv(int32_t location,
+ const struct I32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform3f(int32_t location,
+ float v0,
+ float v1,
+ float v2,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform3fv(int32_t location,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform3i(int32_t location,
+ int32_t v0,
+ int32_t v1,
+ int32_t v2,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform3iv(int32_t location,
+ const struct I32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform4f(int32_t location,
+ float v0,
+ float v1,
+ float v2,
+ float v3,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform4fv(int32_t location,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform4i(int32_t location,
+ int32_t v0,
+ int32_t v1,
+ int32_t v2,
+ int32_t v3,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform4iv(int32_t location,
+ const struct I32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform_matrix2fv(int32_t location,
+ bool transpose,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform_matrix3fv(int32_t location,
+ bool transpose,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_uniform_matrix4fv(int32_t location,
+ bool transpose,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_use_program(uint32_t program, struct WebGLState *state);
+
+void canvas_native_webgl_validate_program(uint32_t program, struct WebGLState *state);
+
+void canvas_native_webgl_vertex_attrib1f(uint32_t index, float v0, struct WebGLState *state);
+
+void canvas_native_webgl_vertex_attrib1fv(uint32_t index,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_vertex_attrib2f(uint32_t index,
+ float v0,
+ float v1,
+ struct WebGLState *state);
+
+void canvas_native_webgl_vertex_attrib2fv(uint32_t index,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_vertex_attrib3f(uint32_t index,
+ float v0,
+ float v1,
+ float v2,
+ struct WebGLState *state);
+
+void canvas_native_webgl_vertex_attrib3fv(uint32_t index,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_vertex_attrib4f(uint32_t index,
+ float v0,
+ float v1,
+ float v2,
+ float v3,
+ struct WebGLState *state);
+
+void canvas_native_webgl_vertex_attrib4fv(uint32_t index,
+ const struct F32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl_vertex_attrib_pointer(uint32_t index,
+ int32_t size,
+ uint32_t d_type,
+ bool normalized,
+ int32_t stride,
+ intptr_t offset,
+ struct WebGLState *state);
+
+void canvas_native_webgl_viewport(int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ struct WebGLState *state);
+
+intptr_t canvas_native_webgl2_indexed_parameter_get_value(const struct WebGLIndexedParameter *param);
+
+intptr_t canvas_native_webgl2_indexed_parameter_get_buffer_value(const struct WebGLIndexedParameter *param);
+
+bool canvas_native_webgl2_indexed_parameter_get_is_buffer(const struct WebGLIndexedParameter *param);
+
+void canvas_native_webgl2_begin_query(uint32_t target, uint32_t id, struct WebGLState *state);
+
+void canvas_native_webgl2_begin_transform_feedback(uint32_t primitive_mode,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_bind_buffer_base(uint32_t target,
+ uint32_t index,
+ uint32_t buffer,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_bind_buffer_range(uint32_t target,
+ uint32_t index,
+ uint32_t buffer,
+ intptr_t offset,
+ intptr_t size,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_bind_sampler(uint32_t unit, uint32_t sampler, struct WebGLState *state);
+
+void canvas_native_webgl2_bind_transform_feedback(uint32_t target,
+ uint32_t transform_feedback,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_bind_vertex_array(uint32_t vertex_array, struct WebGLState *state);
+
+void canvas_native_webgl2_blit_framebuffer(int32_t src_x0,
+ int32_t src_y0,
+ int32_t src_x1,
+ int32_t src_y1,
+ int32_t dst_x0,
+ int32_t dst_y0,
+ int32_t dst_x1,
+ int32_t dst_y1,
+ uint32_t mask,
+ uint32_t filter,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_clear_bufferfi(uint32_t buffer,
+ int32_t drawbuffer,
+ float depth,
+ int32_t stencil,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_clear_bufferfv(uint32_t buffer,
+ int32_t drawbuffer,
+ const struct F32Buffer *values,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_clear_bufferiv(uint32_t buffer,
+ int32_t drawbuffer,
+ const struct I32Buffer *values,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_clear_bufferuiv(uint32_t buffer,
+ int32_t drawbuffer,
+ const struct U32Buffer *values,
+ struct WebGLState *state);
+
+uint32_t canvas_native_webgl2_client_wait_sync(const struct WebGLSync *sync,
+ uint32_t flags,
+ intptr_t timeout,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_compressed_tex_sub_image3d_none(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t zoffset,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ uint32_t format,
+ int32_t image_size,
+ int32_t offset,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_compressed_tex_sub_image3d(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t zoffset,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ uint32_t format,
+ const struct U8Buffer *src,
+ uintptr_t src_offset,
+ uintptr_t src_length_override,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_copy_buffer_sub_data(uint32_t read_target,
+ uint32_t write_target,
+ intptr_t read_offset,
+ intptr_t write_offset,
+ intptr_t size,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_copy_tex_sub_image3d(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t zoffset,
+ int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ struct WebGLState *state);
+
+uint32_t canvas_native_webgl2_create_query(struct WebGLState *state);
+
+uint32_t canvas_native_webgl2_create_sampler(struct WebGLState *state);
+
+uint32_t canvas_native_webgl2_create_transform_feedback(struct WebGLState *state);
+
+uint32_t canvas_native_webgl2_create_vertex_array(struct WebGLState *state);
+
+void canvas_native_webgl2_delete_query_with_query(uint32_t id, struct WebGLState *state);
+
+void canvas_native_webgl2_delete_sampler_with_sampler(uint32_t sampler, struct WebGLState *state);
+
+void canvas_native_webgl2_delete_sync_with_sync(const struct WebGLSync *sync,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_delete_transform_feedback(uint32_t transform_feedback,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_delete_vertex_array_with_vertex_array(uint32_t vertex_array,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_draw_arrays_instanced(uint32_t mode,
+ int32_t first,
+ int32_t count,
+ int32_t instance_count,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_draw_buffers(const struct U32Buffer *buffers, struct WebGLState *state);
+
+void canvas_native_webgl2_draw_elements_instanced(uint32_t mode,
+ int32_t count,
+ uint32_t type_,
+ intptr_t offset,
+ int32_t instance_count,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_draw_range_elements(uint32_t mode,
+ uint32_t start,
+ uint32_t end,
+ int32_t count,
+ uint32_t type_,
+ intptr_t offset,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_end_query(uint32_t target, struct WebGLState *state);
+
+void canvas_native_webgl2_end_transform_feedback(struct WebGLState *state);
+
+struct WebGLSync *canvas_native_webgl2_fence_sync(uint32_t condition,
+ uint32_t flags,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_framebuffer_texture_layer(uint32_t target,
+ uint32_t attachment,
+ uint32_t texture,
+ int32_t level,
+ int32_t layer,
+ struct WebGLState *state);
+
+const char *canvas_native_webgl2_get_active_uniform_block_name(uint32_t program,
+ uint32_t uniform_block_index,
+ struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl2_get_active_uniform_block_parameter(uint32_t program,
+ uint32_t uniform_block_index,
+ uint32_t pname,
+ struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl2_get_active_uniforms(uint32_t program,
+ const struct U32Buffer *uniform_indices,
+ uint32_t pname,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_get_buffer_sub_data(uint32_t target,
+ intptr_t src_byte_offset,
+ struct U8BufferMut *dst_data,
+ uintptr_t dst_offset,
+ uintptr_t length,
+ struct WebGLState *state);
+
+int32_t canvas_native_webgl2_get_frag_data_location(uint32_t program,
+ const char *name,
+ struct WebGLState *state);
+
+struct WebGLIndexedParameter *canvas_native_webgl2_get_indexed_parameter(uint32_t target,
+ uint32_t index,
+ struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl2_get_internalformat_parameter(uint32_t target,
+ uint32_t internalformat,
+ uint32_t pname,
+ struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl2_get_parameter(uint32_t pname, struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl2_get_query_parameter(uint32_t query,
+ uint32_t pname,
+ struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl2_get_query(uint32_t target,
+ uint32_t pname,
+ struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl2_get_sampler_parameter(uint32_t sampler,
+ uint32_t pname,
+ struct WebGLState *state);
+
+struct WebGLResult *canvas_native_webgl2_get_sync_parameter(const struct WebGLSync *sync,
+ uint32_t pname,
+ struct WebGLState *state);
+
+struct WebGLActiveInfo *canvas_native_webgl2_get_transform_feedback_varying(uint32_t program,
+ uint32_t index,
+ struct WebGLState *state);
+
+uint32_t canvas_native_webgl2_get_uniform_block_index(uint32_t program,
+ const char *uniform_block_name,
+ struct WebGLState *state);
+
+struct U32Buffer *canvas_native_webgl2_get_uniform_indices(uint32_t program,
+ const struct StringRefBuffer *uniform_names,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_invalidate_framebuffer(uint32_t target,
+ const struct U32Buffer *attachments,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_invalidate_sub_framebuffer(uint32_t target,
+ const struct U32Buffer *attachments,
+ int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ struct WebGLState *state);
+
+bool canvas_native_webgl2_is_query(uint32_t query, struct WebGLState *state);
+
+bool canvas_native_webgl2_is_sampler(uint32_t sampler, struct WebGLState *state);
+
+bool canvas_native_webgl2_is_sync(const struct WebGLSync *sync, struct WebGLState *state);
+
+bool canvas_native_webgl2_is_transform_feedback(uint32_t transform_feedback,
+ struct WebGLState *state);
+
+bool canvas_native_webgl2_is_vertex_array(uint32_t vertex_array, struct WebGLState *state);
+
+void canvas_native_webgl2_pause_transform_feedback(struct WebGLState *state);
+
+void canvas_native_webgl2_read_buffer(uint32_t src, struct WebGLState *state);
+
+void canvas_native_webgl2_renderbuffer_storage_multisample(uint32_t target,
+ int32_t samples,
+ uint32_t internal_format,
+ int32_t width,
+ int32_t height,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_resume_transform_feedback(struct WebGLState *state);
+
+void canvas_native_webgl2_sampler_parameterf(uint32_t sampler,
+ uint32_t pname,
+ float param,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_sampler_parameteri(uint32_t sampler,
+ uint32_t pname,
+ int32_t param,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_image3d_none(uint32_t target,
+ int32_t level,
+ int32_t internalformat,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ int32_t border,
+ uint32_t format,
+ uint32_t type_,
+ uintptr_t offset,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_image3d_asset(uint32_t target,
+ int32_t level,
+ int32_t internalformat,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ int32_t border,
+ uint32_t format,
+ uint32_t type_,
+ const struct ImageAsset *asset,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_image3d(uint32_t target,
+ int32_t level,
+ int32_t internalformat,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ int32_t border,
+ uint32_t format,
+ uint32_t type_,
+ const struct U8Buffer *buf,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_image3d_offset(uint32_t target,
+ int32_t level,
+ int32_t internalformat,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ int32_t border,
+ uint32_t format,
+ uint32_t type_,
+ const struct U8Buffer *buf,
+ uintptr_t offset,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_storage2d(uint32_t target,
+ int32_t levels,
+ uint32_t internalformat,
+ int32_t width,
+ int32_t height,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_storage3d(uint32_t target,
+ int32_t levels,
+ uint32_t internalformat,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_sub_image3d_none(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t zoffset,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ uint32_t format,
+ uint32_t type_,
+ uintptr_t offset,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_sub_image3d(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t zoffset,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ uint32_t format,
+ uint32_t type_,
+ const struct U8Buffer *buf,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_sub_image3d_asset(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t zoffset,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ uint32_t format,
+ uint32_t type_,
+ const struct ImageAsset *asset,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_tex_sub_image3d_offset(uint32_t target,
+ int32_t level,
+ int32_t xoffset,
+ int32_t yoffset,
+ int32_t zoffset,
+ int32_t width,
+ int32_t height,
+ int32_t depth,
+ uint32_t format,
+ uint32_t type_,
+ const struct U8Buffer *buf,
+ uintptr_t offset,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_transform_feedback_varyings(uint32_t program,
+ const struct StringRefBuffer *varyings,
+ uint32_t buffer_mode,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform1ui(int32_t location, uint32_t v0, struct WebGLState *state);
+
+void canvas_native_webgl2_uniform1uiv(int32_t location,
+ const struct U32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform2ui(int32_t location,
+ uint32_t v0,
+ uint32_t v1,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform2uiv(int32_t location,
+ const struct U32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform3ui(int32_t location,
+ uint32_t v0,
+ uint32_t v1,
+ uint32_t v2,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform3uiv(int32_t location,
+ const struct U32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform4ui(int32_t location,
+ uint32_t v0,
+ uint32_t v1,
+ uint32_t v2,
+ uint32_t v3,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform4uiv(int32_t location,
+ const struct U32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform_block_binding(uint32_t program,
+ uint32_t uniform_block_index,
+ uint32_t uniform_block_binding,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform_matrix2x3fv(int32_t location,
+ bool transpose,
+ const struct F32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform_matrix2x4fv(int32_t location,
+ bool transpose,
+ const struct F32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform_matrix3x2fv(int32_t location,
+ bool transpose,
+ const struct F32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform_matrix3x4fv(int32_t location,
+ bool transpose,
+ const struct F32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform_matrix4x2fv(int32_t location,
+ bool transpose,
+ const struct F32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_uniform_matrix4x3fv(int32_t location,
+ bool transpose,
+ const struct F32Buffer *data,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_vertex_attrib_divisor(uint32_t index,
+ uint32_t divisor,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_vertex_attrib_i4i(uint32_t index,
+ int32_t x,
+ int32_t y,
+ int32_t z,
+ int32_t w,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_vertex_attrib_i4iv(uint32_t index,
+ const struct I32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_vertex_attrib_i4ui(uint32_t index,
+ uint32_t x,
+ uint32_t y,
+ uint32_t z,
+ uint32_t w,
+ struct WebGLState *state);
+
+void canvas_native_webgl2_vertex_attrib_i4uiv(uint32_t index,
+ const struct U32Buffer *value,
+ struct WebGLState *state);
+
+void canvas_native_image_asset_destroy(struct ImageAsset *asset);
+
+struct U8BufferMut *canvas_native_u8_buffer_mut_create_with_reference(uint8_t *value,
+ uintptr_t size);
+
+void canvas_native_u8_buffer_mut_destroy(struct U8BufferMut *value);
+
+struct U8Buffer *canvas_native_u8_buffer_create_with_reference(const uint8_t *value,
+ uintptr_t size);
+
+void canvas_native_u8_buffer_destroy(struct U8Buffer *value);
+
+struct U16Buffer *canvas_native_u16_buffer_create_with_reference(const uint16_t *value,
+ uintptr_t size);
+
+void canvas_native_u16_buffer_destroy(struct U16Buffer *value);
+
+struct F32Buffer *canvas_native_f32_buffer_create_with_reference(const float *value,
+ uintptr_t size);
+
+void canvas_native_f32_buffer_destroy(struct F32Buffer *value);
+
+struct U32Buffer *canvas_native_u32_buffer_create_with_reference(const uint32_t *value,
+ uintptr_t size);
+
+void canvas_native_u32_buffer_destroy(struct U32Buffer *value);
+
+struct I32Buffer *canvas_native_i32_buffer_create_with_reference(const int32_t *value,
+ uintptr_t size);
+
+void canvas_native_i32_buffer_destroy(struct I32Buffer *value);
+
+void canvas_native_string_destroy(char *value);
+
+void canvas_native_image_data_destroy(struct ImageData *value);
+
+void canvas_native_matrix_destroy(struct Matrix *value);
+
+void canvas_native_path_destroy(struct Path *value);
+
+#if defined(TARGET_OS_ANDROID)
+/**
+ * Get the AChoreographer instance for the current thread. This must be called
+ * on an ALooper thread.
+ */
+extern struct AChoreographer *AChoreographer_getInstance(void);
+#endif
+
+#if defined(TARGET_OS_ANDROID)
+/**
+ * Deprecated: Use AChoreographer_postFrameCallback64 instead.
+ */
+extern void AChoreographer_postFrameCallback(struct AChoreographer *choreographer,
+ AChoreographer_frameCallback callback,
+ void *data);
+#endif
+
+#if defined(TARGET_OS_ANDROID)
+/**
+ * Deprecated: Use AChoreographer_postFrameCallbackDelayed64 instead.
+ */
+extern void AChoreographer_postFrameCallbackDelayed(struct AChoreographer *choreographer,
+ AChoreographer_frameCallback callback,
+ void *data,
+ long delayMillis);
+#endif
+
+#if defined(TARGET_OS_ANDROID)
+/**
+ * Power a callback to be run on the next frame. The data pointer provided will
+ * be passed to the callback function when it's called.
+ */
+extern void AChoreographer_postFrameCallback64(struct AChoreographer *chroreographer,
+ AChoreographer_frameCallback64 callback,
+ void *data);
+#endif
+
+#if defined(TARGET_OS_ANDROID)
+/**
+ * Post a callback to be run on the frame following the specified delay. The
+ * data pointer provided will be passed to the callback function when it's
+ * called.
+ */
+extern void AChoreographer_postFrameCallbackDelayed64(struct AChoreographer *choreographer,
+ AChoreographer_frameCallback64 callback,
+ void *data,
+ uint32_t delayMillis);
+#endif
+
+uint8_t *canvas_u8_buffer_mut_get_bytes(struct U8BufferMut *buffer);
+
+void canvas_u8_buffer_mut_destroy(struct U8BufferMut *buffer);
+
+uintptr_t canvas_u8_buffer_mut_get_length(const struct U8BufferMut *buffer);
+
+const uint8_t *canvas_u8_buffer_get_bytes(const struct U8Buffer *buffer);
+
+void canvas_u8_buffer_destroy(struct U8Buffer *buffer);
+
+uintptr_t canvas_u8_buffer_get_length(const struct U8Buffer *buffer);
+
+#endif /* CANVAS_C_H */
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist
new file mode 100644
index 000000000..a09f02b83
Binary files /dev/null and b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist differ
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo
new file mode 100644
index 000000000..2adf37eae
Binary files /dev/null and b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo differ
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo
new file mode 100644
index 000000000..f17cbdcfe
Binary files /dev/null and b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo differ
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json
new file mode 100644
index 000000000..72f2fbcf2
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json
@@ -0,0 +1,6571 @@
+{
+ "ABIRoot": {
+ "kind": "Root",
+ "name": "TopLevel",
+ "printedName": "TopLevel",
+ "children": [
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCCanvasListener",
+ "printedName": "NSCCanvasListener",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "contextReady",
+ "printedName": "contextReady()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(pl)NSCCanvasListener(im)contextReady",
+ "mangledName": "$s12CanvasNative17NSCCanvasListenerP12contextReadyyyF",
+ "moduleName": "CanvasNative",
+ "genericSig": "<Ï„_0_0 where Ï„_0_0 : CanvasNative.NSCCanvasListener>",
+ "sugared_genericSig": "",
+ "protocolReq": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "reqNewWitnessTableEntry": true,
+ "funcSelfKind": "NonMutating"
+ }
+ ],
+ "declKind": "Protocol",
+ "usr": "c:@M@CanvasNative@objc(pl)NSCCanvasListener",
+ "mangledName": "$s12CanvasNative17NSCCanvasListenerP",
+ "moduleName": "CanvasNative",
+ "genericSig": "<Ï„_0_0 : AnyObject>",
+ "sugared_genericSig": "",
+ "objc_name": "NSCCanvasListener",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "CanvasHelpers",
+ "printedName": "CanvasHelpers",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "getBytesFromUIImage",
+ "printedName": "getBytesFromUIImage(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSMutableData",
+ "printedName": "Foundation.NSMutableData",
+ "usr": "c:objc(cs)NSMutableData"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)getBytesFromUIImage:",
+ "mangledName": "$s12CanvasNative0A7HelpersC19getBytesFromUIImageySo13NSMutableDataCSo0G0CFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "createPattern",
+ "printedName": "createPattern(_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)createPattern:::",
+ "mangledName": "$s12CanvasNative0A7HelpersC13createPatternys5Int64VAF_So7UIImageCSStFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "loadImageAssetWithContext",
+ "printedName": "loadImageAssetWithContext(_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)loadImageAssetWithContext::",
+ "mangledName": "$s12CanvasNative0A7HelpersC25loadImageAssetWithContextySbs5Int64V_So7UIImageCtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawImage",
+ "printedName": "drawImage(context:image:dx:dy:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)drawImageWithContext:image:dx:dy:",
+ "mangledName": "$s12CanvasNative0A7HelpersC9drawImage7context5image2dx2dyys5Int64V_So7UIImageCS2ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawImage",
+ "printedName": "drawImage(context:image:dx:dy:dw:dh:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)drawImageWithContext:image:dx:dy:dw:dh:",
+ "mangledName": "$s12CanvasNative0A7HelpersC9drawImage7context5image2dx2dy2dw2dhys5Int64V_So7UIImageCS4ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawImage",
+ "printedName": "drawImage(context:image:sx:sy:sw:sh:dx:dy:dw:dh:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)drawImageWithContext:image:sx:sy:sw:sh:dx:dy:dw:dh:",
+ "mangledName": "$s12CanvasNative0A7HelpersC9drawImage7context5image2sx2sy2sw2sh2dx2dy2dw2dhys5Int64V_So7UIImageCS8ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "initGLWithView",
+ "printedName": "initGLWithView(_:_:_:_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)initGLWithView:::::::::::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC14initGLWithViewys5Int64VAF_S4bSSS5bs5Int32VSbtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "initSharedGLWithView",
+ "printedName": "initSharedGLWithView(_:_:_:_:_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)initSharedGLWithView::::::::::::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC20initSharedGLWithViewys5Int64VAF_S4bSSS5bs5Int32VSbAFtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "initGLWithWidthAndHeight",
+ "printedName": "initGLWithWidthAndHeight(_:_:_:_:_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)initGLWithWidthAndHeight::::::::::::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC24initGLWithWidthAndHeightys5Int64Vs5Int32V_AHS4bSSS5bAHSbtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "initSharedGLWidthAndHeight",
+ "printedName": "initSharedGLWidthAndHeight(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)initSharedGLWidthAndHeight:::::::::::::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC26initSharedGLWidthAndHeightys5Int64Vs5Int32V_AHS4bSSS5bAHSbAFtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "resize2DContext",
+ "printedName": "resize2DContext(_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)resize2DContext:::",
+ "mangledName": "$s12CanvasNative0A7HelpersC15resize2DContextyys5Int64V_S2ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "flush2DContext",
+ "printedName": "flush2DContext(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)flush2DContext:",
+ "mangledName": "$s12CanvasNative0A7HelpersC14flush2DContextyys5Int64VFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "flushGL",
+ "printedName": "flushGL(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)flushGL:",
+ "mangledName": "$s12CanvasNative0A7HelpersC7flushGLySbs5Int64VFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "releaseGL",
+ "printedName": "releaseGL(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)releaseGL:",
+ "mangledName": "$s12CanvasNative0A7HelpersC9releaseGLyys5Int64VFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "getGLPointer",
+ "printedName": "getGLPointer(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)getGLPointer:",
+ "mangledName": "$s12CanvasNative0A7HelpersC12getGLPointerys5Int64VAFFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "releaseGLPointer",
+ "printedName": "releaseGLPointer(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)releaseGLPointer:",
+ "mangledName": "$s12CanvasNative0A7HelpersC16releaseGLPointeryys5Int64VFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "create2DContext",
+ "printedName": "create2DContext(_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)create2DContext:::::::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC15create2DContextys5Int64VAF_s5Int32VAHSbSfA2HSfAHtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "updateGLSurfaceWithView",
+ "printedName": "updateGLSurfaceWithView(_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)updateGLSurfaceWithView::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC23updateGLSurfaceWithViewyys5Int64V_s5Int32VAhFtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "test2D",
+ "printedName": "test2D(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)test2D:",
+ "mangledName": "$s12CanvasNative0A7HelpersC6test2Dyys5Int64VFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "testToDataURL",
+ "printedName": "testToDataURL(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)testToDataURL:",
+ "mangledName": "$s12CanvasNative0A7HelpersC13testToDataURLySSs5Int64VFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "writeFile",
+ "printedName": "writeFile(_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "NSData",
+ "printedName": "Foundation.NSData",
+ "usr": "c:objc(cs)NSData"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeFunc",
+ "name": "Function",
+ "printedName": "(Swift.String?, Swift.String?) -> ()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Tuple",
+ "printedName": "(Swift.String?, Swift.String?)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)writeFile:::",
+ "mangledName": "$s12CanvasNative0A7HelpersC9writeFileyySo6NSDataC_SSySSSg_AGtctFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "readFile",
+ "printedName": "readFile(_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeFunc",
+ "name": "Function",
+ "printedName": "(Swift.String?, Foundation.NSData?) -> ()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Tuple",
+ "printedName": "(Swift.String?, Foundation.NSData?)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Foundation.NSData?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSData",
+ "printedName": "Foundation.NSData",
+ "usr": "c:objc(cs)NSData"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)readFile::",
+ "mangledName": "$s12CanvasNative0A7HelpersC8readFileyySS_ySSSg_So6NSDataCSgtctFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "deleteFile",
+ "printedName": "deleteFile(_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeFunc",
+ "name": "Function",
+ "printedName": "(Foundation.NSError?, Swift.Bool) -> ()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Tuple",
+ "printedName": "(Foundation.NSError?, Swift.Bool)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Foundation.NSError?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSError",
+ "printedName": "Foundation.NSError",
+ "usr": "c:objc(cs)NSError"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)deleteFile::",
+ "mangledName": "$s12CanvasNative0A7HelpersC10deleteFileyySS_ySo7NSErrorCSg_SbtctFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "handleBase64Image",
+ "printedName": "handleBase64Image(_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeFunc",
+ "name": "Function",
+ "printedName": "(Swift.String?, Swift.String?) -> ()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Tuple",
+ "printedName": "(Swift.String?, Swift.String?)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)handleBase64Image::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC17handleBase64ImageyySS_S2SySSSg_AEtctFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CanvasHelpers",
+ "printedName": "CanvasNative.CanvasHelpers",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(im)init",
+ "mangledName": "$s12CanvasNative0A7HelpersCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers",
+ "mangledName": "$s12CanvasNative0A7HelpersC",
+ "moduleName": "CanvasNative",
+ "objc_name": "NSSCanvasHelpers",
+ "declAttributes": [
+ "AccessControl",
+ "ObjCMembers",
+ "ObjC"
+ ],
+ "superclassUsr": "c:objc(cs)NSObject",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "Import",
+ "name": "GLKit",
+ "printedName": "GLKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCCanvas",
+ "printedName": "NSCCanvas",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "glkView",
+ "printedName": "glkView(_:drawIn:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "GLKView",
+ "printedName": "GLKit.GLKView",
+ "usr": "c:objc(cs)GLKView"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)glkView:drawInRect:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC7glkView_6drawInySo7GLKViewC_So6CGRectVtF",
+ "moduleName": "CanvasNative",
+ "objc_name": "glkView:drawInRect:",
+ "declAttributes": [
+ "ObjC",
+ "Custom",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Var",
+ "name": "store",
+ "printedName": "store",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSMutableDictionary",
+ "printedName": "Foundation.NSMutableDictionary",
+ "usr": "c:objc(cs)NSMutableDictionary"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(cpy)store",
+ "mangledName": "$s12CanvasNative9NSCCanvasC5storeSo19NSMutableDictionaryCvpZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "HasInitialValue",
+ "Final",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "isLet": true,
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSMutableDictionary",
+ "printedName": "Foundation.NSMutableDictionary",
+ "usr": "c:objc(cs)NSMutableDictionary"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(cm)store",
+ "mangledName": "$s12CanvasNative9NSCCanvasC5storeSo19NSMutableDictionaryCvgZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "implicit": true,
+ "declAttributes": [
+ "Final",
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Function",
+ "name": "getViews",
+ "printedName": "getViews()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSMapTable",
+ "printedName": "Foundation.NSMapTable",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSString",
+ "printedName": "Foundation.NSString",
+ "usr": "c:objc(cs)NSString"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "NSCCanvas",
+ "printedName": "CanvasNative.NSCCanvas",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas"
+ }
+ ],
+ "usr": "c:objc(cs)NSMapTable"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(cm)getViews",
+ "mangledName": "$s12CanvasNative9NSCCanvasC8getViewsSo10NSMapTableCySo8NSStringCACGyFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "getViewPtr",
+ "printedName": "getViewPtr()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "UnsafeMutableRawPointer",
+ "printedName": "Swift.UnsafeMutableRawPointer",
+ "usr": "s:Sv"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)getViewPtr",
+ "mangledName": "$s12CanvasNative9NSCCanvasC10getViewPtrSvyF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Var",
+ "name": "ignorePixelScaling",
+ "printedName": "ignorePixelScaling",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)ignorePixelScaling",
+ "mangledName": "$s12CanvasNative9NSCCanvasC18ignorePixelScalingSbvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)ignorePixelScaling",
+ "mangledName": "$s12CanvasNative9NSCCanvasC18ignorePixelScalingSbvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Set",
+ "printedName": "Set()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)setIgnorePixelScaling:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC18ignorePixelScalingSbvs",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "set"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Modify",
+ "printedName": "Modify()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "s:12CanvasNative9NSCCanvasC18ignorePixelScalingSbvM",
+ "mangledName": "$s12CanvasNative9NSCCanvasC18ignorePixelScalingSbvM",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "accessorKind": "_modify"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "nativeGL",
+ "printedName": "nativeGL",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)nativeGL",
+ "mangledName": "$s12CanvasNative9NSCCanvasC8nativeGLs5Int64Vvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "SetterAccess",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)nativeGL",
+ "mangledName": "$s12CanvasNative9NSCCanvasC8nativeGLs5Int64Vvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "nativeContext",
+ "printedName": "nativeContext",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)nativeContext",
+ "mangledName": "$s12CanvasNative9NSCCanvasC13nativeContexts5Int64Vvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "SetterAccess",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)nativeContext",
+ "mangledName": "$s12CanvasNative9NSCCanvasC13nativeContexts5Int64Vvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "drawingBufferWidth",
+ "printedName": "drawingBufferWidth",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int",
+ "printedName": "Swift.Int",
+ "usr": "s:Si"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)drawingBufferWidth",
+ "mangledName": "$s12CanvasNative9NSCCanvasC18drawingBufferWidthSivp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int",
+ "printedName": "Swift.Int",
+ "usr": "s:Si"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)drawingBufferWidth",
+ "mangledName": "$s12CanvasNative9NSCCanvasC18drawingBufferWidthSivg",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "drawingBufferHeight",
+ "printedName": "drawingBufferHeight",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int",
+ "printedName": "Swift.Int",
+ "usr": "s:Si"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)drawingBufferHeight",
+ "mangledName": "$s12CanvasNative9NSCCanvasC19drawingBufferHeightSivp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int",
+ "printedName": "Swift.Int",
+ "usr": "s:Si"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)drawingBufferHeight",
+ "mangledName": "$s12CanvasNative9NSCCanvasC19drawingBufferHeightSivg",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "width",
+ "printedName": "width",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)width",
+ "mangledName": "$s12CanvasNative9NSCCanvasC5widthSfvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)width",
+ "mangledName": "$s12CanvasNative9NSCCanvasC5widthSfvg",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "height",
+ "printedName": "height",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)height",
+ "mangledName": "$s12CanvasNative9NSCCanvasC6heightSfvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)height",
+ "mangledName": "$s12CanvasNative9NSCCanvasC6heightSfvg",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Function",
+ "name": "initContext",
+ "printedName": "initContext(_:_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "hasDefaultArg": true,
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)initContext:::::::::::",
+ "mangledName": "$s12CanvasNative9NSCCanvasC11initContextyySS_S4bSSS5btF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "create2DContext",
+ "printedName": "create2DContext(_:_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)create2DContext:::::::::::",
+ "mangledName": "$s12CanvasNative9NSCCanvasC15create2DContextys5Int64VSb_S3bSSS5bs5Int32VtF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "forceLayout",
+ "printedName": "forceLayout(_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGFloat",
+ "printedName": "CoreGraphics.CGFloat",
+ "usr": "s:14CoreFoundation7CGFloatV"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGFloat",
+ "printedName": "CoreGraphics.CGFloat",
+ "usr": "s:14CoreFoundation7CGFloatV"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)forceLayout::",
+ "mangledName": "$s12CanvasNative9NSCCanvasC11forceLayoutyy12CoreGraphics7CGFloatV_AGtF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "snapshot",
+ "printedName": "snapshot(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "UIKit.UIImage?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)snapshot:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC8snapshotySo7UIImageCSgSbF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "render",
+ "printedName": "render()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)render",
+ "mangledName": "$s12CanvasNative9NSCCanvasC6renderSbyF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "DiscardableResult",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "context2DTest",
+ "printedName": "context2DTest(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)context2DTest:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC13context2DTestyys5Int64VF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "context2DTestToDataURL",
+ "printedName": "context2DTestToDataURL(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)context2DTestToDataURL:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC22context2DTestToDataURLySSs5Int64VF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init(frame:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCCanvas",
+ "printedName": "CanvasNative.NSCCanvas",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)initWithFrame:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC5frameACSo6CGRectV_tcfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "initWithFrame:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Function",
+ "name": "setListener",
+ "printedName": "setListener(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "CanvasNative.NSCCanvasListener?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCCanvasListener",
+ "printedName": "CanvasNative.NSCCanvasListener",
+ "usr": "c:@M@CanvasNative@objc(pl)NSCCanvasListener"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)setListener:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC11setListeneryyAA0cE0_pSgF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "layoutSubviews",
+ "printedName": "layoutSubviews()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)layoutSubviews",
+ "mangledName": "$s12CanvasNative9NSCCanvasC14layoutSubviewsyyF",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "layoutSubviews",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas",
+ "mangledName": "$s12CanvasNative9NSCCanvasC",
+ "moduleName": "CanvasNative",
+ "objc_name": "NSCCanvas",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)UIView",
+ "hasMissingDesignatedInitializers": true,
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "UIKit.UIView",
+ "UIKit.UIResponder",
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "__DefaultCustomPlaygroundQuickLookable",
+ "printedName": "__DefaultCustomPlaygroundQuickLookable",
+ "usr": "s:s38__DefaultCustomPlaygroundQuickLookableP",
+ "mangledName": "$ss38__DefaultCustomPlaygroundQuickLookableP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "OpenGLES",
+ "printedName": "OpenGLES",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "Import",
+ "name": "CoreVideo",
+ "printedName": "CoreVideo",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCRender",
+ "printedName": "NSCRender",
+ "children": [
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCRender",
+ "printedName": "CanvasNative.NSCRender",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSRender"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSRender(im)init",
+ "mangledName": "$s12CanvasNative9NSCRenderCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Function",
+ "name": "createSurface",
+ "printedName": "createSurface()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSRender(im)createSurface",
+ "mangledName": "$s12CanvasNative9NSCRenderC13createSurfaceyyF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSRender",
+ "mangledName": "$s12CanvasNative9NSCRenderC",
+ "moduleName": "CanvasNative",
+ "objc_name": "TNSRender",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)NSObject",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCSVG",
+ "printedName": "NSCSVG",
+ "children": [
+ {
+ "kind": "Var",
+ "name": "ignorePixelScaling",
+ "printedName": "ignorePixelScaling",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(py)ignorePixelScaling",
+ "mangledName": "$s12CanvasNative6NSCSVGC18ignorePixelScalingSbvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)ignorePixelScaling",
+ "mangledName": "$s12CanvasNative6NSCSVGC18ignorePixelScalingSbvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Set",
+ "printedName": "Set()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)setIgnorePixelScaling:",
+ "mangledName": "$s12CanvasNative6NSCSVGC18ignorePixelScalingSbvs",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "set"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Modify",
+ "printedName": "Modify()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "s:12CanvasNative6NSCSVGC18ignorePixelScalingSbvM",
+ "mangledName": "$s12CanvasNative6NSCSVGC18ignorePixelScalingSbvM",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "accessorKind": "_modify"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "src",
+ "printedName": "src",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(py)src",
+ "mangledName": "$s12CanvasNative6NSCSVGC3srcSSSgvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)src",
+ "mangledName": "$s12CanvasNative6NSCSVGC3srcSSSgvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Set",
+ "printedName": "Set()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)setSrc:",
+ "mangledName": "$s12CanvasNative6NSCSVGC3srcSSSgvs",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "set"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Modify",
+ "printedName": "Modify()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "s:12CanvasNative6NSCSVGC3srcSSSgvM",
+ "mangledName": "$s12CanvasNative6NSCSVGC3srcSSSgvM",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "accessorKind": "_modify"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "srcPath",
+ "printedName": "srcPath",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(py)srcPath",
+ "mangledName": "$s12CanvasNative6NSCSVGC7srcPathSSSgvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)srcPath",
+ "mangledName": "$s12CanvasNative6NSCSVGC7srcPathSSSgvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Set",
+ "printedName": "Set()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)setSrcPath:",
+ "mangledName": "$s12CanvasNative6NSCSVGC7srcPathSSSgvs",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "set"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Modify",
+ "printedName": "Modify()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "s:12CanvasNative6NSCSVGC7srcPathSSSgvM",
+ "mangledName": "$s12CanvasNative6NSCSVGC7srcPathSSSgvM",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "accessorKind": "_modify"
+ }
+ ]
+ },
+ {
+ "kind": "Function",
+ "name": "layoutSubviews",
+ "printedName": "layoutSubviews()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)layoutSubviews",
+ "mangledName": "$s12CanvasNative6NSCSVGC14layoutSubviewsyyF",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "layoutSubviews",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init(frame:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCSVG",
+ "printedName": "CanvasNative.NSCSVG",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)initWithFrame:",
+ "mangledName": "$s12CanvasNative6NSCSVGC5frameACSo6CGRectV_tcfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "initWithFrame:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Function",
+ "name": "draw",
+ "printedName": "draw(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)drawRect:",
+ "mangledName": "$s12CanvasNative6NSCSVGC4drawyySo6CGRectVF",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "drawRect:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG",
+ "mangledName": "$s12CanvasNative6NSCSVGC",
+ "moduleName": "CanvasNative",
+ "objc_name": "TNSSVG",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)UIView",
+ "hasMissingDesignatedInitializers": true,
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "UIKit.UIView",
+ "UIKit.UIResponder",
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "__DefaultCustomPlaygroundQuickLookable",
+ "printedName": "__DefaultCustomPlaygroundQuickLookable",
+ "usr": "s:s38__DefaultCustomPlaygroundQuickLookableP",
+ "mangledName": "$ss38__DefaultCustomPlaygroundQuickLookableP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Sendable",
+ "printedName": "Sendable",
+ "usr": "s:s8SendableP",
+ "mangledName": "$ss8SendableP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCImageBitmap",
+ "printedName": "NSCImageBitmap",
+ "children": [
+ {
+ "kind": "Var",
+ "name": "queue",
+ "printedName": "queue",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "DispatchQueue",
+ "printedName": "Dispatch.DispatchQueue",
+ "usr": "c:objc(cs)OS_dispatch_queue"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageBitmap(cpy)queue",
+ "mangledName": "$s12CanvasNative14NSCImageBitmapC5queueSo012OS_dispatch_E0CvpZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "HasInitialValue",
+ "Final",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "isLet": true,
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "DispatchQueue",
+ "printedName": "Dispatch.DispatchQueue",
+ "usr": "c:objc(cs)OS_dispatch_queue"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageBitmap(cm)queue",
+ "mangledName": "$s12CanvasNative14NSCImageBitmapC5queueSo012OS_dispatch_E0CvgZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "implicit": true,
+ "declAttributes": [
+ "Final",
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCImageBitmap",
+ "printedName": "CanvasNative.NSCImageBitmap",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageBitmap"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageBitmap(im)init",
+ "mangledName": "$s12CanvasNative14NSCImageBitmapCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageBitmap",
+ "mangledName": "$s12CanvasNative14NSCImageBitmapC",
+ "moduleName": "CanvasNative",
+ "objc_name": "NSCImageBitmap",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)NSObject",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "OpenGLES",
+ "printedName": "OpenGLES",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "Import",
+ "name": "CoreVideo",
+ "printedName": "CoreVideo",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "Import",
+ "name": "AVFoundation",
+ "printedName": "AVFoundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "Utils",
+ "printedName": "Utils",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "createTextureCache",
+ "printedName": "createTextureCache()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "CoreVideo.CVOpenGLESTextureCache?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CVOpenGLESTextureCache",
+ "printedName": "CoreVideo.CVOpenGLESTextureCache",
+ "usr": "c:@T@CVOpenGLESTextureCacheRef"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils(cm)createTextureCache",
+ "mangledName": "$s12CanvasNative5UtilsC18createTextureCacheSo017CVOpenGLESTextureF3RefaSgyFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "createImage",
+ "printedName": "createImage(_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "CoreVideo.CVBuffer?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CVBuffer",
+ "printedName": "CoreVideo.CVBuffer",
+ "usr": "c:@T@CVBufferRef"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CVOpenGLESTextureCache",
+ "printedName": "CoreVideo.CVOpenGLESTextureCache",
+ "usr": "c:@T@CVOpenGLESTextureCacheRef"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CVBuffer",
+ "printedName": "CoreVideo.CVBuffer",
+ "usr": "c:@T@CVBufferRef"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "CoreFoundation.CFDictionary?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CFDictionary",
+ "printedName": "CoreFoundation.CFDictionary",
+ "usr": "c:@T@CFDictionaryRef"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UInt32",
+ "printedName": "Swift.UInt32",
+ "usr": "s:s6UInt32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UInt32",
+ "printedName": "Swift.UInt32",
+ "usr": "s:s6UInt32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UInt32",
+ "printedName": "Swift.UInt32",
+ "usr": "s:s6UInt32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int",
+ "printedName": "Swift.Int",
+ "usr": "s:Si"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils(cm)createImage::::::::::",
+ "mangledName": "$s12CanvasNative5UtilsC11createImageySo11CVBufferRefaSgSo022CVOpenGLESTextureCacheG0a_AFSo012CFDictionaryG0aSgs6UInt32Vs5Int32VA2p2NSitFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "setupRender",
+ "printedName": "setupRender()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCRender",
+ "printedName": "CanvasNative.NSCRender",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSRender"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils(cm)setupRender",
+ "mangledName": "$s12CanvasNative5UtilsC11setupRenderAA9NSCRenderCyFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawFrame",
+ "printedName": "drawFrame(_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "AVPlayer",
+ "printedName": "AVFoundation.AVPlayer",
+ "usr": "c:objc(cs)AVPlayer"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "AVPlayerItemVideoOutput",
+ "printedName": "AVFoundation.AVPlayerItemVideoOutput",
+ "usr": "c:objc(cs)AVPlayerItemVideoOutput"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGSize",
+ "printedName": "CoreFoundation.CGSize",
+ "usr": "c:@S@CGSize"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "NSCRender",
+ "printedName": "CanvasNative.NSCRender",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSRender"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils(cm)drawFrame:::::::",
+ "mangledName": "$s12CanvasNative5UtilsC9drawFrameyySo8AVPlayerC_So0F15ItemVideoOutputCSo6CGSizeVAA9NSCRenderCs5Int32VANSbtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Utils",
+ "printedName": "CanvasNative.Utils",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils(im)init",
+ "mangledName": "$s12CanvasNative5UtilsCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils",
+ "mangledName": "$s12CanvasNative5UtilsC",
+ "moduleName": "CanvasNative",
+ "objc_name": "Utils",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC"
+ ],
+ "superclassUsr": "c:objc(cs)NSObject",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCCanvasRenderingContext2D",
+ "printedName": "NSCCanvasRenderingContext2D",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "createPattern",
+ "printedName": "createPattern(_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D(cm)createPattern:::",
+ "mangledName": "$s12CanvasNative27NSCCanvasRenderingContext2DC13createPatternys5Int64VAF_So7UIImageCSStFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawImage",
+ "printedName": "drawImage(_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D(cm)drawImage::::",
+ "mangledName": "$s12CanvasNative27NSCCanvasRenderingContext2DC9drawImageyys5Int64V_So7UIImageCS2ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawImage",
+ "printedName": "drawImage(_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D(cm)drawImage::::::",
+ "mangledName": "$s12CanvasNative27NSCCanvasRenderingContext2DC9drawImageyys5Int64V_So7UIImageCS4ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawImage",
+ "printedName": "drawImage(_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D(cm)drawImage::::::::::",
+ "mangledName": "$s12CanvasNative27NSCCanvasRenderingContext2DC9drawImageyys5Int64V_So7UIImageCS8ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCCanvasRenderingContext2D",
+ "printedName": "CanvasNative.NSCCanvasRenderingContext2D",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D(im)init",
+ "mangledName": "$s12CanvasNative27NSCCanvasRenderingContext2DCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D",
+ "mangledName": "$s12CanvasNative27NSCCanvasRenderingContext2DC",
+ "moduleName": "CanvasNative",
+ "objc_name": "NSCCanvasRenderingContext2D",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "CanvasNative.NSCCanvasRenderingContext",
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "GLKit",
+ "printedName": "GLKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "CanvasGLKView",
+ "printedName": "CanvasGLKView",
+ "children": [
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CanvasGLKView",
+ "printedName": "CanvasNative.CanvasGLKView",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView(im)init",
+ "mangledName": "$s12CanvasNative0A7GLKViewCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init(frame:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CanvasGLKView",
+ "printedName": "CanvasNative.CanvasGLKView",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView(im)initWithFrame:",
+ "mangledName": "$s12CanvasNative0A7GLKViewC5frameACSo6CGRectV_tcfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "initWithFrame:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Function",
+ "name": "setNeedsDisplay",
+ "printedName": "setNeedsDisplay()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView(im)setNeedsDisplay",
+ "mangledName": "$s12CanvasNative0A7GLKViewC15setNeedsDisplayyyF",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "setNeedsDisplay",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "setNeedsDisplay",
+ "printedName": "setNeedsDisplay(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView(im)setNeedsDisplayInRect:",
+ "mangledName": "$s12CanvasNative0A7GLKViewC15setNeedsDisplayyySo6CGRectVF",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "setNeedsDisplayInRect:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init(frame:context:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CanvasGLKView",
+ "printedName": "CanvasNative.CanvasGLKView",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "EAGLContext",
+ "printedName": "OpenGLES.EAGLContext",
+ "usr": "c:objc(cs)EAGLContext"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView(im)initWithFrame:context:",
+ "mangledName": "$s12CanvasNative0A7GLKViewC5frame7contextACSo6CGRectV_So11EAGLContextCtcfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "initWithFrame:context:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView",
+ "mangledName": "$s12CanvasNative0A7GLKViewC",
+ "moduleName": "CanvasNative",
+ "objc_name": "CanvasGLKView",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)GLKView",
+ "hasMissingDesignatedInitializers": true,
+ "superclassNames": [
+ "GLKit.GLKView",
+ "UIKit.UIView",
+ "UIKit.UIResponder",
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "__DefaultCustomPlaygroundQuickLookable",
+ "printedName": "__DefaultCustomPlaygroundQuickLookable",
+ "usr": "s:s38__DefaultCustomPlaygroundQuickLookableP",
+ "mangledName": "$ss38__DefaultCustomPlaygroundQuickLookableP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Sendable",
+ "printedName": "Sendable",
+ "usr": "s:s8SendableP",
+ "mangledName": "$ss8SendableP"
+ }
+ ]
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "CanvasCPUView",
+ "printedName": "CanvasCPUView",
+ "children": [
+ {
+ "kind": "Var",
+ "name": "ignorePixelScaling",
+ "printedName": "ignorePixelScaling",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView(py)ignorePixelScaling",
+ "mangledName": "$s12CanvasNative0A7CPUViewC18ignorePixelScalingSbvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView(im)ignorePixelScaling",
+ "mangledName": "$s12CanvasNative0A7CPUViewC18ignorePixelScalingSbvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Set",
+ "printedName": "Set()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView(im)setIgnorePixelScaling:",
+ "mangledName": "$s12CanvasNative0A7CPUViewC18ignorePixelScalingSbvs",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "set"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Modify",
+ "printedName": "Modify()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "s:12CanvasNative0A7CPUViewC18ignorePixelScalingSbvM",
+ "mangledName": "$s12CanvasNative0A7CPUViewC18ignorePixelScalingSbvM",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "accessorKind": "_modify"
+ }
+ ]
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CanvasCPUView",
+ "printedName": "CanvasNative.CanvasCPUView",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView(im)init",
+ "mangledName": "$s12CanvasNative0A7CPUViewCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init(frame:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CanvasCPUView",
+ "printedName": "CanvasNative.CanvasCPUView",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView(im)initWithFrame:",
+ "mangledName": "$s12CanvasNative0A7CPUViewC5frameACSo6CGRectV_tcfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "initWithFrame:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Function",
+ "name": "draw",
+ "printedName": "draw(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView(im)drawRect:",
+ "mangledName": "$s12CanvasNative0A7CPUViewC4drawyySo6CGRectVF",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "drawRect:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView",
+ "mangledName": "$s12CanvasNative0A7CPUViewC",
+ "moduleName": "CanvasNative",
+ "objc_name": "CanvasCPUView",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)UIView",
+ "hasMissingDesignatedInitializers": true,
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "UIKit.UIView",
+ "UIKit.UIResponder",
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "__DefaultCustomPlaygroundQuickLookable",
+ "printedName": "__DefaultCustomPlaygroundQuickLookable",
+ "usr": "s:s38__DefaultCustomPlaygroundQuickLookableP",
+ "mangledName": "$ss38__DefaultCustomPlaygroundQuickLookableP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Sendable",
+ "printedName": "Sendable",
+ "usr": "s:s8SendableP",
+ "mangledName": "$ss8SendableP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCImageAsset",
+ "printedName": "NSCImageAsset",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "loadImageFromImageSync",
+ "printedName": "loadImageFromImageSync(_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageAsset(cm)loadImageFromImageSync::",
+ "mangledName": "$s12CanvasNative13NSCImageAssetC013loadImageFromF4SyncySbs5Int64V_So7UIImageCtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "loadImageFromImage",
+ "printedName": "loadImageFromImage(_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeFunc",
+ "name": "Function",
+ "printedName": "(Swift.Bool) -> ()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ]
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageAsset(cm)loadImageFromImage:::",
+ "mangledName": "$s12CanvasNative13NSCImageAssetC013loadImageFromF0yys5Int64V_So7UIImageCySbctFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCImageAsset",
+ "printedName": "CanvasNative.NSCImageAsset",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageAsset"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageAsset(im)init",
+ "mangledName": "$s12CanvasNative13NSCImageAssetCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageAsset",
+ "mangledName": "$s12CanvasNative13NSCImageAssetC",
+ "moduleName": "CanvasNative",
+ "objc_name": "NSCImageAsset",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)NSObject",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCCanvasRenderingContext",
+ "printedName": "NSCCanvasRenderingContext",
+ "children": [
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCCanvasRenderingContext",
+ "printedName": "CanvasNative.NSCCanvasRenderingContext",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext(im)init",
+ "mangledName": "$s12CanvasNative25NSCCanvasRenderingContextCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext",
+ "mangledName": "$s12CanvasNative25NSCCanvasRenderingContextC",
+ "moduleName": "CanvasNative",
+ "objc_name": "NSCCanvasRenderingContext",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC"
+ ],
+ "superclassUsr": "c:objc(cs)NSObject",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "GLKView",
+ "printedName": "GLKView",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "snapshotWithData",
+ "printedName": "snapshotWithData(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Data",
+ "printedName": "Foundation.Data",
+ "usr": "s:10Foundation4DataV"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@CM@CanvasNative@@objc(cs)GLKView(im)snapshotWithData:",
+ "mangledName": "$sSo7GLKViewC12CanvasNativeE16snapshotWithDatayy10Foundation0F0VF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Dynamic",
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "isFromExtension": true,
+ "funcSelfKind": "NonMutating"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:objc(cs)GLKView",
+ "moduleName": "GLKit",
+ "isOpen": true,
+ "objc_name": "GLKView",
+ "declAttributes": [
+ "Custom",
+ "ObjC",
+ "Dynamic"
+ ],
+ "superclassUsr": "c:objc(cs)UIView",
+ "isExternal": true,
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "UIKit.UIView",
+ "UIKit.UIResponder",
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "__DefaultCustomPlaygroundQuickLookable",
+ "printedName": "__DefaultCustomPlaygroundQuickLookable",
+ "usr": "s:s38__DefaultCustomPlaygroundQuickLookableP",
+ "mangledName": "$ss38__DefaultCustomPlaygroundQuickLookableP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Sendable",
+ "printedName": "Sendable",
+ "usr": "s:s8SendableP",
+ "mangledName": "$ss8SendableP"
+ }
+ ]
+ }
+ ],
+ "json_format_version": 8
+ },
+ "ConstValues": [
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1000,
+ "length": 1,
+ "value": "8"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1240,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9678,
+ "length": 1,
+ "value": "5"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9993,
+ "length": 1,
+ "value": "5"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "BooleanLiteral",
+ "offset": 10349,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 10444,
+ "length": 23,
+ "value": "\"Failed to write file.\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 11003,
+ "length": 22,
+ "value": "\"Failed to read file.\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "BooleanLiteral",
+ "offset": 11555,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "BooleanLiteral",
+ "offset": 11684,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 12073,
+ "length": 31,
+ "value": "\"\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 12080,
+ "length": 1,
+ "value": "\"\/\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 12086,
+ "length": 1,
+ "value": "\"-b64image.\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 12103,
+ "length": 1,
+ "value": "\"\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 12300,
+ "length": 18,
+ "value": "\"Failed to decode\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "BooleanLiteral",
+ "offset": 12460,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 12568,
+ "length": 18,
+ "value": "\"Failed to decode\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 359,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 445,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 451,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 461,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 472,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 529,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 639,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "Dictionary",
+ "offset": 753,
+ "length": 3,
+ "value": "[]"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 894,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 967,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1438,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1444,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1450,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1456,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 1463,
+ "length": 9,
+ "value": "\"default\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1474,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1480,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1487,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1494,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1501,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1508,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1511,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 2168,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2225,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2278,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2321,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 2391,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 2889,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 2923,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 2953,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3006,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 3049,
+ "length": 9,
+ "value": "\"default\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3097,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3143,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3176,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3216,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3254,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4054,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4110,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 4136,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 4179,
+ "length": 4,
+ "value": "\"2d\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4207,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 4232,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 4296,
+ "length": 20,
+ "value": "\"experimental-webgl\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 4318,
+ "length": 7,
+ "value": "\"webgl\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4349,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 4382,
+ "length": 8,
+ "value": "\"webgl2\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4414,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4511,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "Dictionary",
+ "offset": 4604,
+ "length": 3,
+ "value": "[]"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 4932,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 4993,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 5119,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 5179,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 6958,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 7053,
+ "length": 4,
+ "value": "\"2d\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7461,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7465,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7494,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7497,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7818,
+ "length": 3,
+ "value": "160"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7823,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 8486,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 9941,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 10062,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 10278,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 10399,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 10647,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 10708,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 10885,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 10888,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11271,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11298,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 11330,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11434,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11462,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 11582,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11693,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11826,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11916,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11951,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 12024,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 12592,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLUtils.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1051,
+ "length": 1,
+ "value": "8"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLUtils.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1243,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLUtils.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1249,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 333,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 366,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 427,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 544,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "StringLiteral",
+ "offset": 585,
+ "length": 274,
+ "value": "\"precision highp float;\nattribute vec4 aPosition;\nuniform mat4 uTextureMatrix;\nvarying vec2 TexCoord;\nvoid main(){\nvec2 clipSpace = (1.0 - 2.0 * aPosition.xy);\nTexCoord = aPosition.xy;\ngl_Position = vec4(clipSpace, 0.0, 1.0);\n}\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "StringLiteral",
+ "offset": 906,
+ "length": 170,
+ "value": "\"precision highp float;\nvarying vec2 TexCoord;\nuniform sampler2D uSampler;\nvoid main(){\ngl_FragColor = texture2D(uSampler, TexCoord);\n}\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "Array",
+ "offset": 1251,
+ "length": 83,
+ "value": "[0, 0, 1, 0, 0, 1, 1, 1]"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1425,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1463,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1496,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1517,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1538,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1554,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1570,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1588,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1608,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1625,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1989,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2068,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2078,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3686,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3802,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4822,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "StringLiteral",
+ "offset": 5000,
+ "length": 52,
+ "value": "\"TextureRender Error: Could not setup frame buffer.\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5198,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5201,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5204,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5207,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5457,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5502,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5525,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5689,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5692,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5814,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 6176,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 6492,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 6529,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 6566,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 6603,
+ "length": 1,
+ "value": "3"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7627,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7672,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7687,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7813,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7816,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 8077,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 8110,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 8143,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 8176,
+ "length": 1,
+ "value": "3"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 8856,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9085,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9321,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9356,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9391,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9440,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "StringLiteral",
+ "offset": 11140,
+ "length": 10,
+ "value": "\"uSampler\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "StringLiteral",
+ "offset": 11196,
+ "length": 11,
+ "value": "\"aPosition\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11261,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11292,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11304,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "IntegerLiteral",
+ "offset": 278,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "IntegerLiteral",
+ "offset": 305,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "BooleanLiteral",
+ "offset": 332,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "BooleanLiteral",
+ "offset": 360,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "BooleanLiteral",
+ "offset": 453,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "BooleanLiteral",
+ "offset": 402,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "IntegerLiteral",
+ "offset": 817,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "StringLiteral",
+ "offset": 4311,
+ "length": 8,
+ "value": "\"NSCSVG\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "StringLiteral",
+ "offset": 4472,
+ "length": 8,
+ "value": "\"NSCSVG\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4595,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4817,
+ "length": 1,
+ "value": "8"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4841,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCImageBitmap.swift",
+ "kind": "StringLiteral",
+ "offset": 233,
+ "length": 22,
+ "value": "\"Failed to load image\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCImageBitmap.swift",
+ "kind": "StringLiteral",
+ "offset": 313,
+ "length": 21,
+ "value": "\"NSCImageBitmapQueue\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/Utils.swift",
+ "kind": "IntegerLiteral",
+ "offset": 242,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "BooleanLiteral",
+ "offset": 229,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "StringLiteral",
+ "offset": 180,
+ "length": 13,
+ "value": "\"CanvasNative.CanvasGLKView\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1382,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1609,
+ "length": 1,
+ "value": "8"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1802,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1808,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1965,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "BooleanLiteral",
+ "offset": 2041,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2483,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2627,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2823,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3068,
+ "length": 1,
+ "value": "8"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3092,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3550,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3623,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3629,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3789,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCImageAsset.swift",
+ "kind": "StringLiteral",
+ "offset": 246,
+ "length": 20,
+ "value": "\"NSCImageAssetQueue\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCImageAsset.swift",
+ "kind": "BooleanLiteral",
+ "offset": 860,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCImageAsset.swift",
+ "kind": "BooleanLiteral",
+ "offset": 977,
+ "length": 5,
+ "value": "false"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface
new file mode 100644
index 000000000..1aa99ed6b
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface
@@ -0,0 +1,153 @@
+// swift-interface-format-version: 1.0
+// swift-compiler-version: Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
+// swift-module-flags: -target arm64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name CanvasNative
+// swift-module-flags-ignorable: -enable-bare-slash-regex
+import AVFoundation
+@_exported import CanvasNative
+import CoreVideo
+import Foundation
+import GLKit
+import OpenGLES
+import Swift
+import UIKit
+import _Concurrency
+import _StringProcessing
+@objc(NSCCanvasListener) public protocol NSCCanvasListener {
+ @objc func contextReady()
+}
+@_inheritsConvenienceInitializers @objc(NSSCanvasHelpers) @objcMembers public class CanvasHelpers : ObjectiveC.NSObject {
+ @objc public static func getBytesFromUIImage(_ image: UIKit.UIImage) -> Foundation.NSMutableData
+ @objc public static func createPattern(_ context: Swift.Int64, _ image: UIKit.UIImage, _ repetition: Swift.String) -> Swift.Int64
+ @objc public static func loadImageAssetWithContext(_ asset: Swift.Int64, _ image: UIKit.UIImage) -> Swift.Bool
+ @objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, dx: Swift.Float, dy: Swift.Float)
+ @objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, dx: Swift.Float, dy: Swift.Float, dw: Swift.Float, dh: Swift.Float)
+ @objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, sx: Swift.Float, sy: Swift.Float, sw: Swift.Float, sh: Swift.Float, dx: Swift.Float, dy: Swift.Float, dw: Swift.Float, dh: Swift.Float)
+ @objc public static func initGLWithView(_ view: Swift.Int64, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool) -> Swift.Int64
+ @objc public static func initSharedGLWithView(_ view: Swift.Int64, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool, _ shared_context: Swift.Int64) -> Swift.Int64
+ @objc public static func initGLWithWidthAndHeight(_ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool) -> Swift.Int64
+ @objc public static func initSharedGLWidthAndHeight(_ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool, _ shared_context: Swift.Int64) -> Swift.Int64
+ @objc public static func resize2DContext(_ context: Swift.Int64, _ width: Swift.Float, _ height: Swift.Float)
+ @objc public static func flush2DContext(_ context: Swift.Int64)
+ @objc public static func flushGL(_ context: Swift.Int64) -> Swift.Bool
+ @objc public static func releaseGL(_ context: Swift.Int64)
+ @objc public static func getGLPointer(_ context: Swift.Int64) -> Swift.Int64
+ @objc public static func releaseGLPointer(_ context: Swift.Int64)
+ @objc public static func create2DContext(_ context: Swift.Int64, _ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ density: Swift.Float, _ samples: Swift.Int32, _ font_color: Swift.Int32, _ ppi: Swift.Float, _ direction: Swift.Int32) -> Swift.Int64
+ @objc public static func updateGLSurfaceWithView(_ view: Swift.Int64, _ width: Swift.Int32, _ height: Swift.Int32, _ context: Swift.Int64)
+ @objc public static func test2D(_ context: Swift.Int64)
+ @objc public static func testToDataURL(_ context: Swift.Int64) -> Swift.String
+ @objc public static func writeFile(_ data: Foundation.NSData, _ path: Swift.String, _ callback: @escaping (Swift.String?, Swift.String?) -> Swift.Void)
+ @objc public static func readFile(_ path: Swift.String, _ callback: @escaping (Swift.String?, Foundation.NSData?) -> Swift.Void)
+ @objc public static func deleteFile(_ path: Swift.String, _ callback: @escaping (Foundation.NSError?, Swift.Bool) -> Swift.Void)
+ @objc public static func handleBase64Image(_ mime: Swift.String, _ dir: Swift.String, _ base64: Swift.String, _ callback: @escaping (Swift.String?, Swift.String?) -> Swift.Void)
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(NSCCanvas) @_Concurrency.MainActor(unsafe) public class NSCCanvas : UIKit.UIView, GLKit.GLKViewDelegate {
+ @_Concurrency.MainActor(unsafe) @objc public func glkView(_ view: GLKit.GLKView, drawIn rect: CoreFoundation.CGRect)
+ @objc @_Concurrency.MainActor(unsafe) public static let store: Foundation.NSMutableDictionary
+ @objc @_Concurrency.MainActor(unsafe) public static func getViews() -> Foundation.NSMapTable
+ @objc @_Concurrency.MainActor(unsafe) public func getViewPtr() -> Swift.UnsafeMutableRawPointer
+ @objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool
+ @objc @_Concurrency.MainActor(unsafe) public var nativeGL: Swift.Int64 {
+ get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var nativeContext: Swift.Int64 {
+ get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var drawingBufferWidth: Swift.Int {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var drawingBufferHeight: Swift.Int {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var width: Swift.Float {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var height: Swift.Float {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public func initContext(_ type: Swift.String, _ alpha: Swift.Bool = true, _ antialias: Swift.Bool = true, _ depth: Swift.Bool = true, _ failIfMajorPerformanceCaveat: Swift.Bool = false, _ powerPreference: Swift.String = "default", _ premultipliedAlpha: Swift.Bool = true, _ preserveDrawingBuffer: Swift.Bool = false, _ stencil: Swift.Bool = false, _ desynchronized: Swift.Bool = false, _ xrCompatible: Swift.Bool = false)
+ @objc @_Concurrency.MainActor(unsafe) public func create2DContext(_ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ failIfMajorPerformanceCaveat: Swift.Bool, _ powerPreference: Swift.String, _ premultipliedAlpha: Swift.Bool, _ preserveDrawingBuffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xrCompatible: Swift.Bool, _ fontColor: Swift.Int32) -> Swift.Int64
+ @objc @_Concurrency.MainActor(unsafe) public func forceLayout(_ width: CoreFoundation.CGFloat, _ height: CoreFoundation.CGFloat)
+ @objc @_Concurrency.MainActor(unsafe) public func snapshot(_ flip: Swift.Bool) -> UIKit.UIImage?
+ @objc @discardableResult
+ @_Concurrency.MainActor(unsafe) public func render() -> Swift.Bool
+ @objc @_Concurrency.MainActor(unsafe) public func context2DTest(_ context: Swift.Int64)
+ @objc @_Concurrency.MainActor(unsafe) public func context2DTestToDataURL(_ context: Swift.Int64) -> Swift.String
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @objc @_Concurrency.MainActor(unsafe) public func setListener(_ listener: (any CanvasNative.NSCCanvasListener)?)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(TNSRender) public class NSCRender : ObjectiveC.NSObject {
+ @objc override dynamic public init()
+ @objc public func createSurface()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(TNSSVG) @_Concurrency.MainActor(unsafe) public class NSCSVG : UIKit.UIView {
+ @objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool {
+ @objc get
+ @objc set
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var src: Swift.String? {
+ @objc get
+ @objc set
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var srcPath: Swift.String? {
+ @objc get
+ @objc set
+ }
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(NSCImageBitmap) public class NSCImageBitmap : ObjectiveC.NSObject {
+ @objc public static let queue: Dispatch.DispatchQueue
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objc(Utils) public class Utils : ObjectiveC.NSObject {
+ @objc public static func createTextureCache() -> CoreVideo.CVOpenGLESTextureCache?
+ @objc public static func createImage(_ texturecache: CoreVideo.CVOpenGLESTextureCache, _ buffer: CoreVideo.CVImageBuffer, _ textureAttributes: CoreFoundation.CFDictionary?, _ target: OpenGLES.GLenum, _ internalFormat: OpenGLES.GLint, _ width: OpenGLES.GLsizei, _ height: OpenGLES.GLsizei, _ format: OpenGLES.GLenum, _ type: OpenGLES.GLenum, _ planeIndex: Swift.Int) -> CoreVideo.CVOpenGLESTexture?
+ @objc public static func setupRender() -> CanvasNative.NSCRender
+ @objc public static func drawFrame(_ player: AVFoundation.AVPlayer, _ output: AVFoundation.AVPlayerItemVideoOutput, _ videoSize: CoreFoundation.CGSize, _ render: CanvasNative.NSCRender, _ internalFormat: Swift.Int32, _ format: Swift.Int32, _ flipYWebGL: Swift.Bool)
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(NSCCanvasRenderingContext2D) public class NSCCanvasRenderingContext2D : CanvasNative.NSCCanvasRenderingContext {
+ @objc public static func createPattern(_ context: Swift.Int64, _ src: UIKit.UIImage, _ repetition: Swift.String) -> Swift.Int64
+ @objc public static func drawImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ dx: Swift.Float, _ dy: Swift.Float)
+ @objc public static func drawImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ dx: Swift.Float, _ dy: Swift.Float, _ dWidth: Swift.Float, _ dHeight: Swift.Float)
+ @objc public static func drawImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ sx: Swift.Float, _ sy: Swift.Float, _ sWidth: Swift.Float, _ sHeight: Swift.Float, _ dx: Swift.Float, _ dy: Swift.Float, _ dWidth: Swift.Float, _ dHeight: Swift.Float)
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_hasMissingDesignatedInitializers @objcMembers @objc(CanvasGLKView) @_Concurrency.MainActor(unsafe) public class CanvasGLKView : GLKit.GLKView {
+ @_Concurrency.MainActor(unsafe) @objc dynamic public init()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func setNeedsDisplay()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func setNeedsDisplay(_ rect: CoreFoundation.CGRect)
+ @objc deinit
+}
+extension GLKit.GLKView {
+ @objc @_Concurrency.MainActor(unsafe) dynamic public func snapshotWithData(_ data: Foundation.Data)
+}
+@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(CanvasCPUView) @_Concurrency.MainActor(unsafe) public class CanvasCPUView : UIKit.UIView {
+ @objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool
+ @_Concurrency.MainActor(unsafe) @objc dynamic public init()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(NSCImageAsset) public class NSCImageAsset : ObjectiveC.NSObject {
+ @objc public static func loadImageFromImageSync(_ context: Swift.Int64, _ image: UIKit.UIImage) -> Swift.Bool
+ @objc public static func loadImageFromImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ callback: @escaping (Swift.Bool) -> ())
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objc(NSCCanvasRenderingContext) public class NSCCanvasRenderingContext : ObjectiveC.NSObject {
+ @objc override dynamic public init()
+ @objc deinit
+}
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc
new file mode 100644
index 000000000..6f13e0e75
Binary files /dev/null and b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc differ
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface
new file mode 100644
index 000000000..1aa99ed6b
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface
@@ -0,0 +1,153 @@
+// swift-interface-format-version: 1.0
+// swift-compiler-version: Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
+// swift-module-flags: -target arm64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name CanvasNative
+// swift-module-flags-ignorable: -enable-bare-slash-regex
+import AVFoundation
+@_exported import CanvasNative
+import CoreVideo
+import Foundation
+import GLKit
+import OpenGLES
+import Swift
+import UIKit
+import _Concurrency
+import _StringProcessing
+@objc(NSCCanvasListener) public protocol NSCCanvasListener {
+ @objc func contextReady()
+}
+@_inheritsConvenienceInitializers @objc(NSSCanvasHelpers) @objcMembers public class CanvasHelpers : ObjectiveC.NSObject {
+ @objc public static func getBytesFromUIImage(_ image: UIKit.UIImage) -> Foundation.NSMutableData
+ @objc public static func createPattern(_ context: Swift.Int64, _ image: UIKit.UIImage, _ repetition: Swift.String) -> Swift.Int64
+ @objc public static func loadImageAssetWithContext(_ asset: Swift.Int64, _ image: UIKit.UIImage) -> Swift.Bool
+ @objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, dx: Swift.Float, dy: Swift.Float)
+ @objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, dx: Swift.Float, dy: Swift.Float, dw: Swift.Float, dh: Swift.Float)
+ @objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, sx: Swift.Float, sy: Swift.Float, sw: Swift.Float, sh: Swift.Float, dx: Swift.Float, dy: Swift.Float, dw: Swift.Float, dh: Swift.Float)
+ @objc public static func initGLWithView(_ view: Swift.Int64, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool) -> Swift.Int64
+ @objc public static func initSharedGLWithView(_ view: Swift.Int64, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool, _ shared_context: Swift.Int64) -> Swift.Int64
+ @objc public static func initGLWithWidthAndHeight(_ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool) -> Swift.Int64
+ @objc public static func initSharedGLWidthAndHeight(_ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool, _ shared_context: Swift.Int64) -> Swift.Int64
+ @objc public static func resize2DContext(_ context: Swift.Int64, _ width: Swift.Float, _ height: Swift.Float)
+ @objc public static func flush2DContext(_ context: Swift.Int64)
+ @objc public static func flushGL(_ context: Swift.Int64) -> Swift.Bool
+ @objc public static func releaseGL(_ context: Swift.Int64)
+ @objc public static func getGLPointer(_ context: Swift.Int64) -> Swift.Int64
+ @objc public static func releaseGLPointer(_ context: Swift.Int64)
+ @objc public static func create2DContext(_ context: Swift.Int64, _ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ density: Swift.Float, _ samples: Swift.Int32, _ font_color: Swift.Int32, _ ppi: Swift.Float, _ direction: Swift.Int32) -> Swift.Int64
+ @objc public static func updateGLSurfaceWithView(_ view: Swift.Int64, _ width: Swift.Int32, _ height: Swift.Int32, _ context: Swift.Int64)
+ @objc public static func test2D(_ context: Swift.Int64)
+ @objc public static func testToDataURL(_ context: Swift.Int64) -> Swift.String
+ @objc public static func writeFile(_ data: Foundation.NSData, _ path: Swift.String, _ callback: @escaping (Swift.String?, Swift.String?) -> Swift.Void)
+ @objc public static func readFile(_ path: Swift.String, _ callback: @escaping (Swift.String?, Foundation.NSData?) -> Swift.Void)
+ @objc public static func deleteFile(_ path: Swift.String, _ callback: @escaping (Foundation.NSError?, Swift.Bool) -> Swift.Void)
+ @objc public static func handleBase64Image(_ mime: Swift.String, _ dir: Swift.String, _ base64: Swift.String, _ callback: @escaping (Swift.String?, Swift.String?) -> Swift.Void)
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(NSCCanvas) @_Concurrency.MainActor(unsafe) public class NSCCanvas : UIKit.UIView, GLKit.GLKViewDelegate {
+ @_Concurrency.MainActor(unsafe) @objc public func glkView(_ view: GLKit.GLKView, drawIn rect: CoreFoundation.CGRect)
+ @objc @_Concurrency.MainActor(unsafe) public static let store: Foundation.NSMutableDictionary
+ @objc @_Concurrency.MainActor(unsafe) public static func getViews() -> Foundation.NSMapTable
+ @objc @_Concurrency.MainActor(unsafe) public func getViewPtr() -> Swift.UnsafeMutableRawPointer
+ @objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool
+ @objc @_Concurrency.MainActor(unsafe) public var nativeGL: Swift.Int64 {
+ get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var nativeContext: Swift.Int64 {
+ get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var drawingBufferWidth: Swift.Int {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var drawingBufferHeight: Swift.Int {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var width: Swift.Float {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var height: Swift.Float {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public func initContext(_ type: Swift.String, _ alpha: Swift.Bool = true, _ antialias: Swift.Bool = true, _ depth: Swift.Bool = true, _ failIfMajorPerformanceCaveat: Swift.Bool = false, _ powerPreference: Swift.String = "default", _ premultipliedAlpha: Swift.Bool = true, _ preserveDrawingBuffer: Swift.Bool = false, _ stencil: Swift.Bool = false, _ desynchronized: Swift.Bool = false, _ xrCompatible: Swift.Bool = false)
+ @objc @_Concurrency.MainActor(unsafe) public func create2DContext(_ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ failIfMajorPerformanceCaveat: Swift.Bool, _ powerPreference: Swift.String, _ premultipliedAlpha: Swift.Bool, _ preserveDrawingBuffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xrCompatible: Swift.Bool, _ fontColor: Swift.Int32) -> Swift.Int64
+ @objc @_Concurrency.MainActor(unsafe) public func forceLayout(_ width: CoreFoundation.CGFloat, _ height: CoreFoundation.CGFloat)
+ @objc @_Concurrency.MainActor(unsafe) public func snapshot(_ flip: Swift.Bool) -> UIKit.UIImage?
+ @objc @discardableResult
+ @_Concurrency.MainActor(unsafe) public func render() -> Swift.Bool
+ @objc @_Concurrency.MainActor(unsafe) public func context2DTest(_ context: Swift.Int64)
+ @objc @_Concurrency.MainActor(unsafe) public func context2DTestToDataURL(_ context: Swift.Int64) -> Swift.String
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @objc @_Concurrency.MainActor(unsafe) public func setListener(_ listener: (any CanvasNative.NSCCanvasListener)?)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(TNSRender) public class NSCRender : ObjectiveC.NSObject {
+ @objc override dynamic public init()
+ @objc public func createSurface()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(TNSSVG) @_Concurrency.MainActor(unsafe) public class NSCSVG : UIKit.UIView {
+ @objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool {
+ @objc get
+ @objc set
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var src: Swift.String? {
+ @objc get
+ @objc set
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var srcPath: Swift.String? {
+ @objc get
+ @objc set
+ }
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(NSCImageBitmap) public class NSCImageBitmap : ObjectiveC.NSObject {
+ @objc public static let queue: Dispatch.DispatchQueue
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objc(Utils) public class Utils : ObjectiveC.NSObject {
+ @objc public static func createTextureCache() -> CoreVideo.CVOpenGLESTextureCache?
+ @objc public static func createImage(_ texturecache: CoreVideo.CVOpenGLESTextureCache, _ buffer: CoreVideo.CVImageBuffer, _ textureAttributes: CoreFoundation.CFDictionary?, _ target: OpenGLES.GLenum, _ internalFormat: OpenGLES.GLint, _ width: OpenGLES.GLsizei, _ height: OpenGLES.GLsizei, _ format: OpenGLES.GLenum, _ type: OpenGLES.GLenum, _ planeIndex: Swift.Int) -> CoreVideo.CVOpenGLESTexture?
+ @objc public static func setupRender() -> CanvasNative.NSCRender
+ @objc public static func drawFrame(_ player: AVFoundation.AVPlayer, _ output: AVFoundation.AVPlayerItemVideoOutput, _ videoSize: CoreFoundation.CGSize, _ render: CanvasNative.NSCRender, _ internalFormat: Swift.Int32, _ format: Swift.Int32, _ flipYWebGL: Swift.Bool)
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(NSCCanvasRenderingContext2D) public class NSCCanvasRenderingContext2D : CanvasNative.NSCCanvasRenderingContext {
+ @objc public static func createPattern(_ context: Swift.Int64, _ src: UIKit.UIImage, _ repetition: Swift.String) -> Swift.Int64
+ @objc public static func drawImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ dx: Swift.Float, _ dy: Swift.Float)
+ @objc public static func drawImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ dx: Swift.Float, _ dy: Swift.Float, _ dWidth: Swift.Float, _ dHeight: Swift.Float)
+ @objc public static func drawImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ sx: Swift.Float, _ sy: Swift.Float, _ sWidth: Swift.Float, _ sHeight: Swift.Float, _ dx: Swift.Float, _ dy: Swift.Float, _ dWidth: Swift.Float, _ dHeight: Swift.Float)
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_hasMissingDesignatedInitializers @objcMembers @objc(CanvasGLKView) @_Concurrency.MainActor(unsafe) public class CanvasGLKView : GLKit.GLKView {
+ @_Concurrency.MainActor(unsafe) @objc dynamic public init()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func setNeedsDisplay()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func setNeedsDisplay(_ rect: CoreFoundation.CGRect)
+ @objc deinit
+}
+extension GLKit.GLKView {
+ @objc @_Concurrency.MainActor(unsafe) dynamic public func snapshotWithData(_ data: Foundation.Data)
+}
+@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(CanvasCPUView) @_Concurrency.MainActor(unsafe) public class CanvasCPUView : UIKit.UIView {
+ @objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool
+ @_Concurrency.MainActor(unsafe) @objc dynamic public init()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(NSCImageAsset) public class NSCImageAsset : ObjectiveC.NSObject {
+ @objc public static func loadImageFromImageSync(_ context: Swift.Int64, _ image: UIKit.UIImage) -> Swift.Bool
+ @objc public static func loadImageFromImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ callback: @escaping (Swift.Bool) -> ())
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objc(NSCCanvasRenderingContext) public class NSCCanvasRenderingContext : ObjectiveC.NSObject {
+ @objc override dynamic public init()
+ @objc deinit
+}
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json
new file mode 100644
index 000000000..72f2fbcf2
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json
@@ -0,0 +1,6571 @@
+{
+ "ABIRoot": {
+ "kind": "Root",
+ "name": "TopLevel",
+ "printedName": "TopLevel",
+ "children": [
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCCanvasListener",
+ "printedName": "NSCCanvasListener",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "contextReady",
+ "printedName": "contextReady()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(pl)NSCCanvasListener(im)contextReady",
+ "mangledName": "$s12CanvasNative17NSCCanvasListenerP12contextReadyyyF",
+ "moduleName": "CanvasNative",
+ "genericSig": "<Ï„_0_0 where Ï„_0_0 : CanvasNative.NSCCanvasListener>",
+ "sugared_genericSig": "",
+ "protocolReq": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "reqNewWitnessTableEntry": true,
+ "funcSelfKind": "NonMutating"
+ }
+ ],
+ "declKind": "Protocol",
+ "usr": "c:@M@CanvasNative@objc(pl)NSCCanvasListener",
+ "mangledName": "$s12CanvasNative17NSCCanvasListenerP",
+ "moduleName": "CanvasNative",
+ "genericSig": "<Ï„_0_0 : AnyObject>",
+ "sugared_genericSig": "",
+ "objc_name": "NSCCanvasListener",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "CanvasHelpers",
+ "printedName": "CanvasHelpers",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "getBytesFromUIImage",
+ "printedName": "getBytesFromUIImage(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSMutableData",
+ "printedName": "Foundation.NSMutableData",
+ "usr": "c:objc(cs)NSMutableData"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)getBytesFromUIImage:",
+ "mangledName": "$s12CanvasNative0A7HelpersC19getBytesFromUIImageySo13NSMutableDataCSo0G0CFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "createPattern",
+ "printedName": "createPattern(_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)createPattern:::",
+ "mangledName": "$s12CanvasNative0A7HelpersC13createPatternys5Int64VAF_So7UIImageCSStFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "loadImageAssetWithContext",
+ "printedName": "loadImageAssetWithContext(_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)loadImageAssetWithContext::",
+ "mangledName": "$s12CanvasNative0A7HelpersC25loadImageAssetWithContextySbs5Int64V_So7UIImageCtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawImage",
+ "printedName": "drawImage(context:image:dx:dy:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)drawImageWithContext:image:dx:dy:",
+ "mangledName": "$s12CanvasNative0A7HelpersC9drawImage7context5image2dx2dyys5Int64V_So7UIImageCS2ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawImage",
+ "printedName": "drawImage(context:image:dx:dy:dw:dh:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)drawImageWithContext:image:dx:dy:dw:dh:",
+ "mangledName": "$s12CanvasNative0A7HelpersC9drawImage7context5image2dx2dy2dw2dhys5Int64V_So7UIImageCS4ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawImage",
+ "printedName": "drawImage(context:image:sx:sy:sw:sh:dx:dy:dw:dh:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)drawImageWithContext:image:sx:sy:sw:sh:dx:dy:dw:dh:",
+ "mangledName": "$s12CanvasNative0A7HelpersC9drawImage7context5image2sx2sy2sw2sh2dx2dy2dw2dhys5Int64V_So7UIImageCS8ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "initGLWithView",
+ "printedName": "initGLWithView(_:_:_:_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)initGLWithView:::::::::::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC14initGLWithViewys5Int64VAF_S4bSSS5bs5Int32VSbtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "initSharedGLWithView",
+ "printedName": "initSharedGLWithView(_:_:_:_:_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)initSharedGLWithView::::::::::::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC20initSharedGLWithViewys5Int64VAF_S4bSSS5bs5Int32VSbAFtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "initGLWithWidthAndHeight",
+ "printedName": "initGLWithWidthAndHeight(_:_:_:_:_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)initGLWithWidthAndHeight::::::::::::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC24initGLWithWidthAndHeightys5Int64Vs5Int32V_AHS4bSSS5bAHSbtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "initSharedGLWidthAndHeight",
+ "printedName": "initSharedGLWidthAndHeight(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)initSharedGLWidthAndHeight:::::::::::::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC26initSharedGLWidthAndHeightys5Int64Vs5Int32V_AHS4bSSS5bAHSbAFtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "resize2DContext",
+ "printedName": "resize2DContext(_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)resize2DContext:::",
+ "mangledName": "$s12CanvasNative0A7HelpersC15resize2DContextyys5Int64V_S2ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "flush2DContext",
+ "printedName": "flush2DContext(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)flush2DContext:",
+ "mangledName": "$s12CanvasNative0A7HelpersC14flush2DContextyys5Int64VFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "flushGL",
+ "printedName": "flushGL(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)flushGL:",
+ "mangledName": "$s12CanvasNative0A7HelpersC7flushGLySbs5Int64VFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "releaseGL",
+ "printedName": "releaseGL(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)releaseGL:",
+ "mangledName": "$s12CanvasNative0A7HelpersC9releaseGLyys5Int64VFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "getGLPointer",
+ "printedName": "getGLPointer(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)getGLPointer:",
+ "mangledName": "$s12CanvasNative0A7HelpersC12getGLPointerys5Int64VAFFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "releaseGLPointer",
+ "printedName": "releaseGLPointer(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)releaseGLPointer:",
+ "mangledName": "$s12CanvasNative0A7HelpersC16releaseGLPointeryys5Int64VFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "create2DContext",
+ "printedName": "create2DContext(_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)create2DContext:::::::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC15create2DContextys5Int64VAF_s5Int32VAHSbSfA2HSfAHtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "updateGLSurfaceWithView",
+ "printedName": "updateGLSurfaceWithView(_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)updateGLSurfaceWithView::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC23updateGLSurfaceWithViewyys5Int64V_s5Int32VAhFtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "test2D",
+ "printedName": "test2D(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)test2D:",
+ "mangledName": "$s12CanvasNative0A7HelpersC6test2Dyys5Int64VFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "testToDataURL",
+ "printedName": "testToDataURL(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)testToDataURL:",
+ "mangledName": "$s12CanvasNative0A7HelpersC13testToDataURLySSs5Int64VFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "writeFile",
+ "printedName": "writeFile(_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "NSData",
+ "printedName": "Foundation.NSData",
+ "usr": "c:objc(cs)NSData"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeFunc",
+ "name": "Function",
+ "printedName": "(Swift.String?, Swift.String?) -> ()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Tuple",
+ "printedName": "(Swift.String?, Swift.String?)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)writeFile:::",
+ "mangledName": "$s12CanvasNative0A7HelpersC9writeFileyySo6NSDataC_SSySSSg_AGtctFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "readFile",
+ "printedName": "readFile(_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeFunc",
+ "name": "Function",
+ "printedName": "(Swift.String?, Foundation.NSData?) -> ()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Tuple",
+ "printedName": "(Swift.String?, Foundation.NSData?)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Foundation.NSData?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSData",
+ "printedName": "Foundation.NSData",
+ "usr": "c:objc(cs)NSData"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)readFile::",
+ "mangledName": "$s12CanvasNative0A7HelpersC8readFileyySS_ySSSg_So6NSDataCSgtctFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "deleteFile",
+ "printedName": "deleteFile(_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeFunc",
+ "name": "Function",
+ "printedName": "(Foundation.NSError?, Swift.Bool) -> ()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Tuple",
+ "printedName": "(Foundation.NSError?, Swift.Bool)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Foundation.NSError?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSError",
+ "printedName": "Foundation.NSError",
+ "usr": "c:objc(cs)NSError"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)deleteFile::",
+ "mangledName": "$s12CanvasNative0A7HelpersC10deleteFileyySS_ySo7NSErrorCSg_SbtctFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "handleBase64Image",
+ "printedName": "handleBase64Image(_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeFunc",
+ "name": "Function",
+ "printedName": "(Swift.String?, Swift.String?) -> ()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Tuple",
+ "printedName": "(Swift.String?, Swift.String?)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(cm)handleBase64Image::::",
+ "mangledName": "$s12CanvasNative0A7HelpersC17handleBase64ImageyySS_S2SySSSg_AEtctFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CanvasHelpers",
+ "printedName": "CanvasNative.CanvasHelpers",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers(im)init",
+ "mangledName": "$s12CanvasNative0A7HelpersCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)NSSCanvasHelpers",
+ "mangledName": "$s12CanvasNative0A7HelpersC",
+ "moduleName": "CanvasNative",
+ "objc_name": "NSSCanvasHelpers",
+ "declAttributes": [
+ "AccessControl",
+ "ObjCMembers",
+ "ObjC"
+ ],
+ "superclassUsr": "c:objc(cs)NSObject",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "Import",
+ "name": "GLKit",
+ "printedName": "GLKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCCanvas",
+ "printedName": "NSCCanvas",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "glkView",
+ "printedName": "glkView(_:drawIn:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "GLKView",
+ "printedName": "GLKit.GLKView",
+ "usr": "c:objc(cs)GLKView"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)glkView:drawInRect:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC7glkView_6drawInySo7GLKViewC_So6CGRectVtF",
+ "moduleName": "CanvasNative",
+ "objc_name": "glkView:drawInRect:",
+ "declAttributes": [
+ "ObjC",
+ "Custom",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Var",
+ "name": "store",
+ "printedName": "store",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSMutableDictionary",
+ "printedName": "Foundation.NSMutableDictionary",
+ "usr": "c:objc(cs)NSMutableDictionary"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(cpy)store",
+ "mangledName": "$s12CanvasNative9NSCCanvasC5storeSo19NSMutableDictionaryCvpZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "HasInitialValue",
+ "Final",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "isLet": true,
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSMutableDictionary",
+ "printedName": "Foundation.NSMutableDictionary",
+ "usr": "c:objc(cs)NSMutableDictionary"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(cm)store",
+ "mangledName": "$s12CanvasNative9NSCCanvasC5storeSo19NSMutableDictionaryCvgZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "implicit": true,
+ "declAttributes": [
+ "Final",
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Function",
+ "name": "getViews",
+ "printedName": "getViews()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSMapTable",
+ "printedName": "Foundation.NSMapTable",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSString",
+ "printedName": "Foundation.NSString",
+ "usr": "c:objc(cs)NSString"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "NSCCanvas",
+ "printedName": "CanvasNative.NSCCanvas",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas"
+ }
+ ],
+ "usr": "c:objc(cs)NSMapTable"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(cm)getViews",
+ "mangledName": "$s12CanvasNative9NSCCanvasC8getViewsSo10NSMapTableCySo8NSStringCACGyFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "getViewPtr",
+ "printedName": "getViewPtr()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "UnsafeMutableRawPointer",
+ "printedName": "Swift.UnsafeMutableRawPointer",
+ "usr": "s:Sv"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)getViewPtr",
+ "mangledName": "$s12CanvasNative9NSCCanvasC10getViewPtrSvyF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Var",
+ "name": "ignorePixelScaling",
+ "printedName": "ignorePixelScaling",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)ignorePixelScaling",
+ "mangledName": "$s12CanvasNative9NSCCanvasC18ignorePixelScalingSbvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)ignorePixelScaling",
+ "mangledName": "$s12CanvasNative9NSCCanvasC18ignorePixelScalingSbvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Set",
+ "printedName": "Set()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)setIgnorePixelScaling:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC18ignorePixelScalingSbvs",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "set"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Modify",
+ "printedName": "Modify()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "s:12CanvasNative9NSCCanvasC18ignorePixelScalingSbvM",
+ "mangledName": "$s12CanvasNative9NSCCanvasC18ignorePixelScalingSbvM",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "accessorKind": "_modify"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "nativeGL",
+ "printedName": "nativeGL",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)nativeGL",
+ "mangledName": "$s12CanvasNative9NSCCanvasC8nativeGLs5Int64Vvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "SetterAccess",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)nativeGL",
+ "mangledName": "$s12CanvasNative9NSCCanvasC8nativeGLs5Int64Vvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "nativeContext",
+ "printedName": "nativeContext",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)nativeContext",
+ "mangledName": "$s12CanvasNative9NSCCanvasC13nativeContexts5Int64Vvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "SetterAccess",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)nativeContext",
+ "mangledName": "$s12CanvasNative9NSCCanvasC13nativeContexts5Int64Vvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "drawingBufferWidth",
+ "printedName": "drawingBufferWidth",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int",
+ "printedName": "Swift.Int",
+ "usr": "s:Si"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)drawingBufferWidth",
+ "mangledName": "$s12CanvasNative9NSCCanvasC18drawingBufferWidthSivp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int",
+ "printedName": "Swift.Int",
+ "usr": "s:Si"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)drawingBufferWidth",
+ "mangledName": "$s12CanvasNative9NSCCanvasC18drawingBufferWidthSivg",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "drawingBufferHeight",
+ "printedName": "drawingBufferHeight",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int",
+ "printedName": "Swift.Int",
+ "usr": "s:Si"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)drawingBufferHeight",
+ "mangledName": "$s12CanvasNative9NSCCanvasC19drawingBufferHeightSivp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int",
+ "printedName": "Swift.Int",
+ "usr": "s:Si"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)drawingBufferHeight",
+ "mangledName": "$s12CanvasNative9NSCCanvasC19drawingBufferHeightSivg",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "width",
+ "printedName": "width",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)width",
+ "mangledName": "$s12CanvasNative9NSCCanvasC5widthSfvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)width",
+ "mangledName": "$s12CanvasNative9NSCCanvasC5widthSfvg",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "height",
+ "printedName": "height",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(py)height",
+ "mangledName": "$s12CanvasNative9NSCCanvasC6heightSfvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)height",
+ "mangledName": "$s12CanvasNative9NSCCanvasC6heightSfvg",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Function",
+ "name": "initContext",
+ "printedName": "initContext(_:_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "hasDefaultArg": true,
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "hasDefaultArg": true,
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)initContext:::::::::::",
+ "mangledName": "$s12CanvasNative9NSCCanvasC11initContextyySS_S4bSSS5btF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "create2DContext",
+ "printedName": "create2DContext(_:_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)create2DContext:::::::::::",
+ "mangledName": "$s12CanvasNative9NSCCanvasC15create2DContextys5Int64VSb_S3bSSS5bs5Int32VtF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "forceLayout",
+ "printedName": "forceLayout(_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGFloat",
+ "printedName": "CoreGraphics.CGFloat",
+ "usr": "s:14CoreFoundation7CGFloatV"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGFloat",
+ "printedName": "CoreGraphics.CGFloat",
+ "usr": "s:14CoreFoundation7CGFloatV"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)forceLayout::",
+ "mangledName": "$s12CanvasNative9NSCCanvasC11forceLayoutyy12CoreGraphics7CGFloatV_AGtF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "snapshot",
+ "printedName": "snapshot(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "UIKit.UIImage?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)snapshot:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC8snapshotySo7UIImageCSgSbF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "render",
+ "printedName": "render()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)render",
+ "mangledName": "$s12CanvasNative9NSCCanvasC6renderSbyF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "DiscardableResult",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "context2DTest",
+ "printedName": "context2DTest(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)context2DTest:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC13context2DTestyys5Int64VF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "context2DTestToDataURL",
+ "printedName": "context2DTestToDataURL(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)context2DTestToDataURL:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC22context2DTestToDataURLySSs5Int64VF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init(frame:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCCanvas",
+ "printedName": "CanvasNative.NSCCanvas",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)initWithFrame:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC5frameACSo6CGRectV_tcfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "initWithFrame:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Function",
+ "name": "setListener",
+ "printedName": "setListener(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "CanvasNative.NSCCanvasListener?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCCanvasListener",
+ "printedName": "CanvasNative.NSCCanvasListener",
+ "usr": "c:@M@CanvasNative@objc(pl)NSCCanvasListener"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)setListener:",
+ "mangledName": "$s12CanvasNative9NSCCanvasC11setListeneryyAA0cE0_pSgF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "layoutSubviews",
+ "printedName": "layoutSubviews()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas(im)layoutSubviews",
+ "mangledName": "$s12CanvasNative9NSCCanvasC14layoutSubviewsyyF",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "layoutSubviews",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvas",
+ "mangledName": "$s12CanvasNative9NSCCanvasC",
+ "moduleName": "CanvasNative",
+ "objc_name": "NSCCanvas",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)UIView",
+ "hasMissingDesignatedInitializers": true,
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "UIKit.UIView",
+ "UIKit.UIResponder",
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "__DefaultCustomPlaygroundQuickLookable",
+ "printedName": "__DefaultCustomPlaygroundQuickLookable",
+ "usr": "s:s38__DefaultCustomPlaygroundQuickLookableP",
+ "mangledName": "$ss38__DefaultCustomPlaygroundQuickLookableP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "OpenGLES",
+ "printedName": "OpenGLES",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "Import",
+ "name": "CoreVideo",
+ "printedName": "CoreVideo",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCRender",
+ "printedName": "NSCRender",
+ "children": [
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCRender",
+ "printedName": "CanvasNative.NSCRender",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSRender"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSRender(im)init",
+ "mangledName": "$s12CanvasNative9NSCRenderCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Function",
+ "name": "createSurface",
+ "printedName": "createSurface()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSRender(im)createSurface",
+ "mangledName": "$s12CanvasNative9NSCRenderC13createSurfaceyyF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSRender",
+ "mangledName": "$s12CanvasNative9NSCRenderC",
+ "moduleName": "CanvasNative",
+ "objc_name": "TNSRender",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)NSObject",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCSVG",
+ "printedName": "NSCSVG",
+ "children": [
+ {
+ "kind": "Var",
+ "name": "ignorePixelScaling",
+ "printedName": "ignorePixelScaling",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(py)ignorePixelScaling",
+ "mangledName": "$s12CanvasNative6NSCSVGC18ignorePixelScalingSbvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)ignorePixelScaling",
+ "mangledName": "$s12CanvasNative6NSCSVGC18ignorePixelScalingSbvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Set",
+ "printedName": "Set()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)setIgnorePixelScaling:",
+ "mangledName": "$s12CanvasNative6NSCSVGC18ignorePixelScalingSbvs",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "set"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Modify",
+ "printedName": "Modify()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "s:12CanvasNative6NSCSVGC18ignorePixelScalingSbvM",
+ "mangledName": "$s12CanvasNative6NSCSVGC18ignorePixelScalingSbvM",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "accessorKind": "_modify"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "src",
+ "printedName": "src",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(py)src",
+ "mangledName": "$s12CanvasNative6NSCSVGC3srcSSSgvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)src",
+ "mangledName": "$s12CanvasNative6NSCSVGC3srcSSSgvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Set",
+ "printedName": "Set()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)setSrc:",
+ "mangledName": "$s12CanvasNative6NSCSVGC3srcSSSgvs",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "set"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Modify",
+ "printedName": "Modify()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "s:12CanvasNative6NSCSVGC3srcSSSgvM",
+ "mangledName": "$s12CanvasNative6NSCSVGC3srcSSSgvM",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "accessorKind": "_modify"
+ }
+ ]
+ },
+ {
+ "kind": "Var",
+ "name": "srcPath",
+ "printedName": "srcPath",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(py)srcPath",
+ "mangledName": "$s12CanvasNative6NSCSVGC7srcPathSSSgvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)srcPath",
+ "mangledName": "$s12CanvasNative6NSCSVGC7srcPathSSSgvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Set",
+ "printedName": "Set()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "Swift.String?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)setSrcPath:",
+ "mangledName": "$s12CanvasNative6NSCSVGC7srcPathSSSgvs",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "set"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Modify",
+ "printedName": "Modify()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "s:12CanvasNative6NSCSVGC7srcPathSSSgvM",
+ "mangledName": "$s12CanvasNative6NSCSVGC7srcPathSSSgvM",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "accessorKind": "_modify"
+ }
+ ]
+ },
+ {
+ "kind": "Function",
+ "name": "layoutSubviews",
+ "printedName": "layoutSubviews()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)layoutSubviews",
+ "mangledName": "$s12CanvasNative6NSCSVGC14layoutSubviewsyyF",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "layoutSubviews",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init(frame:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCSVG",
+ "printedName": "CanvasNative.NSCSVG",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)initWithFrame:",
+ "mangledName": "$s12CanvasNative6NSCSVGC5frameACSo6CGRectV_tcfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "initWithFrame:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Function",
+ "name": "draw",
+ "printedName": "draw(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)drawRect:",
+ "mangledName": "$s12CanvasNative6NSCSVGC4drawyySo6CGRectVF",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "drawRect:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSSVG",
+ "mangledName": "$s12CanvasNative6NSCSVGC",
+ "moduleName": "CanvasNative",
+ "objc_name": "TNSSVG",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)UIView",
+ "hasMissingDesignatedInitializers": true,
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "UIKit.UIView",
+ "UIKit.UIResponder",
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "__DefaultCustomPlaygroundQuickLookable",
+ "printedName": "__DefaultCustomPlaygroundQuickLookable",
+ "usr": "s:s38__DefaultCustomPlaygroundQuickLookableP",
+ "mangledName": "$ss38__DefaultCustomPlaygroundQuickLookableP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Sendable",
+ "printedName": "Sendable",
+ "usr": "s:s8SendableP",
+ "mangledName": "$ss8SendableP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCImageBitmap",
+ "printedName": "NSCImageBitmap",
+ "children": [
+ {
+ "kind": "Var",
+ "name": "queue",
+ "printedName": "queue",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "DispatchQueue",
+ "printedName": "Dispatch.DispatchQueue",
+ "usr": "c:objc(cs)OS_dispatch_queue"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageBitmap(cpy)queue",
+ "mangledName": "$s12CanvasNative14NSCImageBitmapC5queueSo012OS_dispatch_E0CvpZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "HasInitialValue",
+ "Final",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "isLet": true,
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "DispatchQueue",
+ "printedName": "Dispatch.DispatchQueue",
+ "usr": "c:objc(cs)OS_dispatch_queue"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageBitmap(cm)queue",
+ "mangledName": "$s12CanvasNative14NSCImageBitmapC5queueSo012OS_dispatch_E0CvgZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "implicit": true,
+ "declAttributes": [
+ "Final",
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ }
+ ]
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCImageBitmap",
+ "printedName": "CanvasNative.NSCImageBitmap",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageBitmap"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageBitmap(im)init",
+ "mangledName": "$s12CanvasNative14NSCImageBitmapCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageBitmap",
+ "mangledName": "$s12CanvasNative14NSCImageBitmapC",
+ "moduleName": "CanvasNative",
+ "objc_name": "NSCImageBitmap",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)NSObject",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "OpenGLES",
+ "printedName": "OpenGLES",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "Import",
+ "name": "CoreVideo",
+ "printedName": "CoreVideo",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "Import",
+ "name": "AVFoundation",
+ "printedName": "AVFoundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "Utils",
+ "printedName": "Utils",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "createTextureCache",
+ "printedName": "createTextureCache()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "CoreVideo.CVOpenGLESTextureCache?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CVOpenGLESTextureCache",
+ "printedName": "CoreVideo.CVOpenGLESTextureCache",
+ "usr": "c:@T@CVOpenGLESTextureCacheRef"
+ }
+ ],
+ "usr": "s:Sq"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils(cm)createTextureCache",
+ "mangledName": "$s12CanvasNative5UtilsC18createTextureCacheSo017CVOpenGLESTextureF3RefaSgyFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "createImage",
+ "printedName": "createImage(_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "CoreVideo.CVBuffer?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CVBuffer",
+ "printedName": "CoreVideo.CVBuffer",
+ "usr": "c:@T@CVBufferRef"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CVOpenGLESTextureCache",
+ "printedName": "CoreVideo.CVOpenGLESTextureCache",
+ "usr": "c:@T@CVOpenGLESTextureCacheRef"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CVBuffer",
+ "printedName": "CoreVideo.CVBuffer",
+ "usr": "c:@T@CVBufferRef"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Optional",
+ "printedName": "CoreFoundation.CFDictionary?",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CFDictionary",
+ "printedName": "CoreFoundation.CFDictionary",
+ "usr": "c:@T@CFDictionaryRef"
+ }
+ ],
+ "usr": "s:Sq"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UInt32",
+ "printedName": "Swift.UInt32",
+ "usr": "s:s6UInt32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UInt32",
+ "printedName": "Swift.UInt32",
+ "usr": "s:s6UInt32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UInt32",
+ "printedName": "Swift.UInt32",
+ "usr": "s:s6UInt32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int",
+ "printedName": "Swift.Int",
+ "usr": "s:Si"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils(cm)createImage::::::::::",
+ "mangledName": "$s12CanvasNative5UtilsC11createImageySo11CVBufferRefaSgSo022CVOpenGLESTextureCacheG0a_AFSo012CFDictionaryG0aSgs6UInt32Vs5Int32VA2p2NSitFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "setupRender",
+ "printedName": "setupRender()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCRender",
+ "printedName": "CanvasNative.NSCRender",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSRender"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils(cm)setupRender",
+ "mangledName": "$s12CanvasNative5UtilsC11setupRenderAA9NSCRenderCyFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawFrame",
+ "printedName": "drawFrame(_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "AVPlayer",
+ "printedName": "AVFoundation.AVPlayer",
+ "usr": "c:objc(cs)AVPlayer"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "AVPlayerItemVideoOutput",
+ "printedName": "AVFoundation.AVPlayerItemVideoOutput",
+ "usr": "c:objc(cs)AVPlayerItemVideoOutput"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGSize",
+ "printedName": "CoreFoundation.CGSize",
+ "usr": "c:@S@CGSize"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "NSCRender",
+ "printedName": "CanvasNative.NSCRender",
+ "usr": "c:@M@CanvasNative@objc(cs)TNSRender"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int32",
+ "printedName": "Swift.Int32",
+ "usr": "s:s5Int32V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils(cm)drawFrame:::::::",
+ "mangledName": "$s12CanvasNative5UtilsC9drawFrameyySo8AVPlayerC_So0F15ItemVideoOutputCSo6CGSizeVAA9NSCRenderCs5Int32VANSbtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Utils",
+ "printedName": "CanvasNative.Utils",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils(im)init",
+ "mangledName": "$s12CanvasNative5UtilsCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)Utils",
+ "mangledName": "$s12CanvasNative5UtilsC",
+ "moduleName": "CanvasNative",
+ "objc_name": "Utils",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC"
+ ],
+ "superclassUsr": "c:objc(cs)NSObject",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCCanvasRenderingContext2D",
+ "printedName": "NSCCanvasRenderingContext2D",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "createPattern",
+ "printedName": "createPattern(_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D(cm)createPattern:::",
+ "mangledName": "$s12CanvasNative27NSCCanvasRenderingContext2DC13createPatternys5Int64VAF_So7UIImageCSStFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawImage",
+ "printedName": "drawImage(_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D(cm)drawImage::::",
+ "mangledName": "$s12CanvasNative27NSCCanvasRenderingContext2DC9drawImageyys5Int64V_So7UIImageCS2ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawImage",
+ "printedName": "drawImage(_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D(cm)drawImage::::::",
+ "mangledName": "$s12CanvasNative27NSCCanvasRenderingContext2DC9drawImageyys5Int64V_So7UIImageCS4ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "drawImage",
+ "printedName": "drawImage(_:_:_:_:_:_:_:_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Float",
+ "printedName": "Swift.Float",
+ "usr": "s:Sf"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D(cm)drawImage::::::::::",
+ "mangledName": "$s12CanvasNative27NSCCanvasRenderingContext2DC9drawImageyys5Int64V_So7UIImageCS8ftFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCCanvasRenderingContext2D",
+ "printedName": "CanvasNative.NSCCanvasRenderingContext2D",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D(im)init",
+ "mangledName": "$s12CanvasNative27NSCCanvasRenderingContext2DCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext2D",
+ "mangledName": "$s12CanvasNative27NSCCanvasRenderingContext2DC",
+ "moduleName": "CanvasNative",
+ "objc_name": "NSCCanvasRenderingContext2D",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "CanvasNative.NSCCanvasRenderingContext",
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "GLKit",
+ "printedName": "GLKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "CanvasGLKView",
+ "printedName": "CanvasGLKView",
+ "children": [
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CanvasGLKView",
+ "printedName": "CanvasNative.CanvasGLKView",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView(im)init",
+ "mangledName": "$s12CanvasNative0A7GLKViewCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init(frame:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CanvasGLKView",
+ "printedName": "CanvasNative.CanvasGLKView",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView(im)initWithFrame:",
+ "mangledName": "$s12CanvasNative0A7GLKViewC5frameACSo6CGRectV_tcfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "initWithFrame:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Function",
+ "name": "setNeedsDisplay",
+ "printedName": "setNeedsDisplay()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView(im)setNeedsDisplay",
+ "mangledName": "$s12CanvasNative0A7GLKViewC15setNeedsDisplayyyF",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "setNeedsDisplay",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "setNeedsDisplay",
+ "printedName": "setNeedsDisplay(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView(im)setNeedsDisplayInRect:",
+ "mangledName": "$s12CanvasNative0A7GLKViewC15setNeedsDisplayyySo6CGRectVF",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "setNeedsDisplayInRect:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init(frame:context:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CanvasGLKView",
+ "printedName": "CanvasNative.CanvasGLKView",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "EAGLContext",
+ "printedName": "OpenGLES.EAGLContext",
+ "usr": "c:objc(cs)EAGLContext"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView(im)initWithFrame:context:",
+ "mangledName": "$s12CanvasNative0A7GLKViewC5frame7contextACSo6CGRectV_So11EAGLContextCtcfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "initWithFrame:context:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasGLKView",
+ "mangledName": "$s12CanvasNative0A7GLKViewC",
+ "moduleName": "CanvasNative",
+ "objc_name": "CanvasGLKView",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)GLKView",
+ "hasMissingDesignatedInitializers": true,
+ "superclassNames": [
+ "GLKit.GLKView",
+ "UIKit.UIView",
+ "UIKit.UIResponder",
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "__DefaultCustomPlaygroundQuickLookable",
+ "printedName": "__DefaultCustomPlaygroundQuickLookable",
+ "usr": "s:s38__DefaultCustomPlaygroundQuickLookableP",
+ "mangledName": "$ss38__DefaultCustomPlaygroundQuickLookableP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Sendable",
+ "printedName": "Sendable",
+ "usr": "s:s8SendableP",
+ "mangledName": "$ss8SendableP"
+ }
+ ]
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "CanvasCPUView",
+ "printedName": "CanvasCPUView",
+ "children": [
+ {
+ "kind": "Var",
+ "name": "ignorePixelScaling",
+ "printedName": "ignorePixelScaling",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Var",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView(py)ignorePixelScaling",
+ "mangledName": "$s12CanvasNative0A7CPUViewC18ignorePixelScalingSbvp",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "HasInitialValue",
+ "Custom",
+ "HasStorage",
+ "AccessControl",
+ "ObjC"
+ ],
+ "hasStorage": true,
+ "accessors": [
+ {
+ "kind": "Accessor",
+ "name": "Get",
+ "printedName": "Get()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView(im)ignorePixelScaling",
+ "mangledName": "$s12CanvasNative0A7CPUViewC18ignorePixelScalingSbvg",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "get"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Set",
+ "printedName": "Set()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView(im)setIgnorePixelScaling:",
+ "mangledName": "$s12CanvasNative0A7CPUViewC18ignorePixelScalingSbvs",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "declAttributes": [
+ "ObjC"
+ ],
+ "accessorKind": "set"
+ },
+ {
+ "kind": "Accessor",
+ "name": "Modify",
+ "printedName": "Modify()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ }
+ ],
+ "declKind": "Accessor",
+ "usr": "s:12CanvasNative0A7CPUViewC18ignorePixelScalingSbvM",
+ "mangledName": "$s12CanvasNative0A7CPUViewC18ignorePixelScalingSbvM",
+ "moduleName": "CanvasNative",
+ "implicit": true,
+ "accessorKind": "_modify"
+ }
+ ]
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CanvasCPUView",
+ "printedName": "CanvasNative.CanvasCPUView",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView(im)init",
+ "mangledName": "$s12CanvasNative0A7CPUViewCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init(frame:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "CanvasCPUView",
+ "printedName": "CanvasNative.CanvasCPUView",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView(im)initWithFrame:",
+ "mangledName": "$s12CanvasNative0A7CPUViewC5frameACSo6CGRectV_tcfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "initWithFrame:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "init_kind": "Designated"
+ },
+ {
+ "kind": "Function",
+ "name": "draw",
+ "printedName": "draw(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "CGRect",
+ "printedName": "CoreFoundation.CGRect",
+ "usr": "c:@S@CGRect"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView(im)drawRect:",
+ "mangledName": "$s12CanvasNative0A7CPUViewC4drawyySo6CGRectVF",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "objc_name": "drawRect:",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Custom",
+ "Override",
+ "AccessControl"
+ ],
+ "funcSelfKind": "NonMutating"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)CanvasCPUView",
+ "mangledName": "$s12CanvasNative0A7CPUViewC",
+ "moduleName": "CanvasNative",
+ "objc_name": "CanvasCPUView",
+ "declAttributes": [
+ "Custom",
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)UIView",
+ "hasMissingDesignatedInitializers": true,
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "UIKit.UIView",
+ "UIKit.UIResponder",
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "__DefaultCustomPlaygroundQuickLookable",
+ "printedName": "__DefaultCustomPlaygroundQuickLookable",
+ "usr": "s:s38__DefaultCustomPlaygroundQuickLookableP",
+ "mangledName": "$ss38__DefaultCustomPlaygroundQuickLookableP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Sendable",
+ "printedName": "Sendable",
+ "usr": "s:s8SendableP",
+ "mangledName": "$ss8SendableP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "UIKit",
+ "printedName": "UIKit",
+ "declKind": "Import",
+ "moduleName": "CanvasNative"
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCImageAsset",
+ "printedName": "NSCImageAsset",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "loadImageFromImageSync",
+ "printedName": "loadImageFromImageSync(_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageAsset(cm)loadImageFromImageSync::",
+ "mangledName": "$s12CanvasNative13NSCImageAssetC013loadImageFromF4SyncySbs5Int64V_So7UIImageCtFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Function",
+ "name": "loadImageFromImage",
+ "printedName": "loadImageFromImage(_:_:_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Int64",
+ "printedName": "Swift.Int64",
+ "usr": "s:s5Int64V"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "UIImage",
+ "printedName": "UIKit.UIImage",
+ "usr": "c:objc(cs)UIImage"
+ },
+ {
+ "kind": "TypeFunc",
+ "name": "Function",
+ "printedName": "(Swift.Bool) -> ()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ }
+ ]
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageAsset(cm)loadImageFromImage:::",
+ "mangledName": "$s12CanvasNative13NSCImageAssetC013loadImageFromF0yys5Int64V_So7UIImageCySbctFZ",
+ "moduleName": "CanvasNative",
+ "static": true,
+ "declAttributes": [
+ "Final",
+ "AccessControl",
+ "ObjC"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCImageAsset",
+ "printedName": "CanvasNative.NSCImageAsset",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageAsset"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageAsset(im)init",
+ "mangledName": "$s12CanvasNative13NSCImageAssetCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCImageAsset",
+ "mangledName": "$s12CanvasNative13NSCImageAssetC",
+ "moduleName": "CanvasNative",
+ "objc_name": "NSCImageAsset",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC",
+ "ObjCMembers"
+ ],
+ "superclassUsr": "c:objc(cs)NSObject",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "Import",
+ "name": "Foundation",
+ "printedName": "Foundation",
+ "declKind": "Import",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "RawDocComment"
+ ]
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "NSCCanvasRenderingContext",
+ "printedName": "NSCCanvasRenderingContext",
+ "children": [
+ {
+ "kind": "Constructor",
+ "name": "init",
+ "printedName": "init()",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "NSCCanvasRenderingContext",
+ "printedName": "CanvasNative.NSCCanvasRenderingContext",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext"
+ }
+ ],
+ "declKind": "Constructor",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext(im)init",
+ "mangledName": "$s12CanvasNative25NSCCanvasRenderingContextCACycfc",
+ "moduleName": "CanvasNative",
+ "overriding": true,
+ "implicit": true,
+ "objc_name": "init",
+ "declAttributes": [
+ "Dynamic",
+ "ObjC",
+ "Override"
+ ],
+ "init_kind": "Designated"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:@M@CanvasNative@objc(cs)NSCCanvasRenderingContext",
+ "mangledName": "$s12CanvasNative25NSCCanvasRenderingContextC",
+ "moduleName": "CanvasNative",
+ "objc_name": "NSCCanvasRenderingContext",
+ "declAttributes": [
+ "AccessControl",
+ "ObjC"
+ ],
+ "superclassUsr": "c:objc(cs)NSObject",
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ }
+ ]
+ },
+ {
+ "kind": "TypeDecl",
+ "name": "GLKView",
+ "printedName": "GLKView",
+ "children": [
+ {
+ "kind": "Function",
+ "name": "snapshotWithData",
+ "printedName": "snapshotWithData(_:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Void",
+ "printedName": "()"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "Data",
+ "printedName": "Foundation.Data",
+ "usr": "s:10Foundation4DataV"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "c:@CM@CanvasNative@@objc(cs)GLKView(im)snapshotWithData:",
+ "mangledName": "$sSo7GLKViewC12CanvasNativeE16snapshotWithDatayy10Foundation0F0VF",
+ "moduleName": "CanvasNative",
+ "declAttributes": [
+ "Dynamic",
+ "Custom",
+ "AccessControl",
+ "ObjC"
+ ],
+ "isFromExtension": true,
+ "funcSelfKind": "NonMutating"
+ }
+ ],
+ "declKind": "Class",
+ "usr": "c:objc(cs)GLKView",
+ "moduleName": "GLKit",
+ "isOpen": true,
+ "objc_name": "GLKView",
+ "declAttributes": [
+ "Custom",
+ "ObjC",
+ "Dynamic"
+ ],
+ "superclassUsr": "c:objc(cs)UIView",
+ "isExternal": true,
+ "inheritsConvenienceInitializers": true,
+ "superclassNames": [
+ "UIKit.UIView",
+ "UIKit.UIResponder",
+ "ObjectiveC.NSObject"
+ ],
+ "conformances": [
+ {
+ "kind": "Conformance",
+ "name": "Equatable",
+ "printedName": "Equatable",
+ "usr": "s:SQ",
+ "mangledName": "$sSQ"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Hashable",
+ "printedName": "Hashable",
+ "usr": "s:SH",
+ "mangledName": "$sSH"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CVarArg",
+ "printedName": "CVarArg",
+ "usr": "s:s7CVarArgP",
+ "mangledName": "$ss7CVarArgP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObservingPublishing",
+ "printedName": "_KeyValueCodingAndObservingPublishing",
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "_KeyValueCodingAndObserving",
+ "printedName": "_KeyValueCodingAndObserving",
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomStringConvertible",
+ "printedName": "CustomStringConvertible",
+ "usr": "s:s23CustomStringConvertibleP",
+ "mangledName": "$ss23CustomStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "CustomDebugStringConvertible",
+ "printedName": "CustomDebugStringConvertible",
+ "usr": "s:s28CustomDebugStringConvertibleP",
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "__DefaultCustomPlaygroundQuickLookable",
+ "printedName": "__DefaultCustomPlaygroundQuickLookable",
+ "usr": "s:s38__DefaultCustomPlaygroundQuickLookableP",
+ "mangledName": "$ss38__DefaultCustomPlaygroundQuickLookableP"
+ },
+ {
+ "kind": "Conformance",
+ "name": "Sendable",
+ "printedName": "Sendable",
+ "usr": "s:s8SendableP",
+ "mangledName": "$ss8SendableP"
+ }
+ ]
+ }
+ ],
+ "json_format_version": 8
+ },
+ "ConstValues": [
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1000,
+ "length": 1,
+ "value": "8"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1240,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9678,
+ "length": 1,
+ "value": "5"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9993,
+ "length": 1,
+ "value": "5"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "BooleanLiteral",
+ "offset": 10349,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 10444,
+ "length": 23,
+ "value": "\"Failed to write file.\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 11003,
+ "length": 22,
+ "value": "\"Failed to read file.\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "BooleanLiteral",
+ "offset": 11555,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "BooleanLiteral",
+ "offset": 11684,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 12073,
+ "length": 31,
+ "value": "\"\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 12080,
+ "length": 1,
+ "value": "\"\/\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 12086,
+ "length": 1,
+ "value": "\"-b64image.\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 12103,
+ "length": 1,
+ "value": "\"\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 12300,
+ "length": 18,
+ "value": "\"Failed to decode\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "BooleanLiteral",
+ "offset": 12460,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/CanvasHelpers.swift",
+ "kind": "StringLiteral",
+ "offset": 12568,
+ "length": 18,
+ "value": "\"Failed to decode\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 359,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 445,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 451,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 461,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 472,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 529,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 639,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "Dictionary",
+ "offset": 753,
+ "length": 3,
+ "value": "[]"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 894,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 967,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1438,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1444,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1450,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1456,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 1463,
+ "length": 9,
+ "value": "\"default\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1474,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1480,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1487,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1494,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1501,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1508,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1511,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 2168,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2225,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2278,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2321,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 2391,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 2889,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 2923,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 2953,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3006,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 3049,
+ "length": 9,
+ "value": "\"default\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3097,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3143,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3176,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3216,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3254,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4054,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4110,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 4136,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 4179,
+ "length": 4,
+ "value": "\"2d\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4207,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 4232,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 4296,
+ "length": 20,
+ "value": "\"experimental-webgl\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 4318,
+ "length": 7,
+ "value": "\"webgl\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4349,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 4382,
+ "length": 8,
+ "value": "\"webgl2\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4414,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4511,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "Dictionary",
+ "offset": 4604,
+ "length": 3,
+ "value": "[]"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 4932,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 4993,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 5119,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 5179,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 6958,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "StringLiteral",
+ "offset": 7053,
+ "length": 4,
+ "value": "\"2d\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7461,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7465,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7494,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7497,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7818,
+ "length": 3,
+ "value": "160"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7823,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 8486,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 9941,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 10062,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 10278,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 10399,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 10647,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 10708,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 10885,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 10888,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11271,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11298,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 11330,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11434,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11462,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "BooleanLiteral",
+ "offset": 11582,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11693,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11826,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11916,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11951,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 12024,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCCanvas.swift",
+ "kind": "IntegerLiteral",
+ "offset": 12592,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLUtils.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1051,
+ "length": 1,
+ "value": "8"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLUtils.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1243,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLUtils.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1249,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 333,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 366,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 427,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 544,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "StringLiteral",
+ "offset": 585,
+ "length": 274,
+ "value": "\"precision highp float;\nattribute vec4 aPosition;\nuniform mat4 uTextureMatrix;\nvarying vec2 TexCoord;\nvoid main(){\nvec2 clipSpace = (1.0 - 2.0 * aPosition.xy);\nTexCoord = aPosition.xy;\ngl_Position = vec4(clipSpace, 0.0, 1.0);\n}\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "StringLiteral",
+ "offset": 906,
+ "length": 170,
+ "value": "\"precision highp float;\nvarying vec2 TexCoord;\nuniform sampler2D uSampler;\nvoid main(){\ngl_FragColor = texture2D(uSampler, TexCoord);\n}\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "Array",
+ "offset": 1251,
+ "length": 83,
+ "value": "[0, 0, 1, 0, 0, 1, 1, 1]"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1425,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1463,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1496,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1517,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1538,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1554,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1570,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1588,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1608,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1625,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1989,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2068,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2078,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3686,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3802,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4822,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "StringLiteral",
+ "offset": 5000,
+ "length": 52,
+ "value": "\"TextureRender Error: Could not setup frame buffer.\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5198,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5201,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5204,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5207,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5457,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5502,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5525,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5689,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5692,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 5814,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 6176,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 6492,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 6529,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 6566,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 6603,
+ "length": 1,
+ "value": "3"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7627,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7672,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7687,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7813,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 7816,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 8077,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 8110,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 8143,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 8176,
+ "length": 1,
+ "value": "3"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 8856,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9085,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9321,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9356,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9391,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 9440,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "StringLiteral",
+ "offset": 11140,
+ "length": 10,
+ "value": "\"uSampler\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "StringLiteral",
+ "offset": 11196,
+ "length": 11,
+ "value": "\"aPosition\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11261,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11292,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCRender.swift",
+ "kind": "IntegerLiteral",
+ "offset": 11304,
+ "length": 1,
+ "value": "2"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "IntegerLiteral",
+ "offset": 278,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "IntegerLiteral",
+ "offset": 305,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "BooleanLiteral",
+ "offset": 332,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "BooleanLiteral",
+ "offset": 360,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "BooleanLiteral",
+ "offset": 453,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "BooleanLiteral",
+ "offset": 402,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "IntegerLiteral",
+ "offset": 817,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "StringLiteral",
+ "offset": 4311,
+ "length": 8,
+ "value": "\"NSCSVG\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "StringLiteral",
+ "offset": 4472,
+ "length": 8,
+ "value": "\"NSCSVG\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4595,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4817,
+ "length": 1,
+ "value": "8"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
+ "kind": "IntegerLiteral",
+ "offset": 4841,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCImageBitmap.swift",
+ "kind": "StringLiteral",
+ "offset": 233,
+ "length": 22,
+ "value": "\"Failed to load image\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCImageBitmap.swift",
+ "kind": "StringLiteral",
+ "offset": 313,
+ "length": 21,
+ "value": "\"NSCImageBitmapQueue\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/Utils.swift",
+ "kind": "IntegerLiteral",
+ "offset": 242,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "BooleanLiteral",
+ "offset": 229,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "StringLiteral",
+ "offset": 180,
+ "length": 13,
+ "value": "\"CanvasNative.CanvasGLKView\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1382,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1609,
+ "length": 1,
+ "value": "8"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1802,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 1808,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "BooleanLiteral",
+ "offset": 1965,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "BooleanLiteral",
+ "offset": 2041,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2483,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2627,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 2823,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3068,
+ "length": 1,
+ "value": "8"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3092,
+ "length": 1,
+ "value": "4"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3550,
+ "length": 1,
+ "value": "0"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3623,
+ "length": 1,
+ "value": "1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "IntegerLiteral",
+ "offset": 3629,
+ "length": 2,
+ "value": "-1"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
+ "kind": "BooleanLiteral",
+ "offset": 3789,
+ "length": 5,
+ "value": "false"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCImageAsset.swift",
+ "kind": "StringLiteral",
+ "offset": 246,
+ "length": 20,
+ "value": "\"NSCImageAssetQueue\""
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCImageAsset.swift",
+ "kind": "BooleanLiteral",
+ "offset": 860,
+ "length": 4,
+ "value": "true"
+ },
+ {
+ "filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCImageAsset.swift",
+ "kind": "BooleanLiteral",
+ "offset": 977,
+ "length": 5,
+ "value": "false"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface
new file mode 100644
index 000000000..b65698de4
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface
@@ -0,0 +1,153 @@
+// swift-interface-format-version: 1.0
+// swift-compiler-version: Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
+// swift-module-flags: -target x86_64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name CanvasNative
+// swift-module-flags-ignorable: -enable-bare-slash-regex
+import AVFoundation
+@_exported import CanvasNative
+import CoreVideo
+import Foundation
+import GLKit
+import OpenGLES
+import Swift
+import UIKit
+import _Concurrency
+import _StringProcessing
+@objc(NSCCanvasListener) public protocol NSCCanvasListener {
+ @objc func contextReady()
+}
+@_inheritsConvenienceInitializers @objc(NSSCanvasHelpers) @objcMembers public class CanvasHelpers : ObjectiveC.NSObject {
+ @objc public static func getBytesFromUIImage(_ image: UIKit.UIImage) -> Foundation.NSMutableData
+ @objc public static func createPattern(_ context: Swift.Int64, _ image: UIKit.UIImage, _ repetition: Swift.String) -> Swift.Int64
+ @objc public static func loadImageAssetWithContext(_ asset: Swift.Int64, _ image: UIKit.UIImage) -> Swift.Bool
+ @objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, dx: Swift.Float, dy: Swift.Float)
+ @objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, dx: Swift.Float, dy: Swift.Float, dw: Swift.Float, dh: Swift.Float)
+ @objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, sx: Swift.Float, sy: Swift.Float, sw: Swift.Float, sh: Swift.Float, dx: Swift.Float, dy: Swift.Float, dw: Swift.Float, dh: Swift.Float)
+ @objc public static func initGLWithView(_ view: Swift.Int64, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool) -> Swift.Int64
+ @objc public static func initSharedGLWithView(_ view: Swift.Int64, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool, _ shared_context: Swift.Int64) -> Swift.Int64
+ @objc public static func initGLWithWidthAndHeight(_ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool) -> Swift.Int64
+ @objc public static func initSharedGLWidthAndHeight(_ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool, _ shared_context: Swift.Int64) -> Swift.Int64
+ @objc public static func resize2DContext(_ context: Swift.Int64, _ width: Swift.Float, _ height: Swift.Float)
+ @objc public static func flush2DContext(_ context: Swift.Int64)
+ @objc public static func flushGL(_ context: Swift.Int64) -> Swift.Bool
+ @objc public static func releaseGL(_ context: Swift.Int64)
+ @objc public static func getGLPointer(_ context: Swift.Int64) -> Swift.Int64
+ @objc public static func releaseGLPointer(_ context: Swift.Int64)
+ @objc public static func create2DContext(_ context: Swift.Int64, _ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ density: Swift.Float, _ samples: Swift.Int32, _ font_color: Swift.Int32, _ ppi: Swift.Float, _ direction: Swift.Int32) -> Swift.Int64
+ @objc public static func updateGLSurfaceWithView(_ view: Swift.Int64, _ width: Swift.Int32, _ height: Swift.Int32, _ context: Swift.Int64)
+ @objc public static func test2D(_ context: Swift.Int64)
+ @objc public static func testToDataURL(_ context: Swift.Int64) -> Swift.String
+ @objc public static func writeFile(_ data: Foundation.NSData, _ path: Swift.String, _ callback: @escaping (Swift.String?, Swift.String?) -> Swift.Void)
+ @objc public static func readFile(_ path: Swift.String, _ callback: @escaping (Swift.String?, Foundation.NSData?) -> Swift.Void)
+ @objc public static func deleteFile(_ path: Swift.String, _ callback: @escaping (Foundation.NSError?, Swift.Bool) -> Swift.Void)
+ @objc public static func handleBase64Image(_ mime: Swift.String, _ dir: Swift.String, _ base64: Swift.String, _ callback: @escaping (Swift.String?, Swift.String?) -> Swift.Void)
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(NSCCanvas) @_Concurrency.MainActor(unsafe) public class NSCCanvas : UIKit.UIView, GLKit.GLKViewDelegate {
+ @_Concurrency.MainActor(unsafe) @objc public func glkView(_ view: GLKit.GLKView, drawIn rect: CoreFoundation.CGRect)
+ @objc @_Concurrency.MainActor(unsafe) public static let store: Foundation.NSMutableDictionary
+ @objc @_Concurrency.MainActor(unsafe) public static func getViews() -> Foundation.NSMapTable
+ @objc @_Concurrency.MainActor(unsafe) public func getViewPtr() -> Swift.UnsafeMutableRawPointer
+ @objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool
+ @objc @_Concurrency.MainActor(unsafe) public var nativeGL: Swift.Int64 {
+ get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var nativeContext: Swift.Int64 {
+ get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var drawingBufferWidth: Swift.Int {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var drawingBufferHeight: Swift.Int {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var width: Swift.Float {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var height: Swift.Float {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public func initContext(_ type: Swift.String, _ alpha: Swift.Bool = true, _ antialias: Swift.Bool = true, _ depth: Swift.Bool = true, _ failIfMajorPerformanceCaveat: Swift.Bool = false, _ powerPreference: Swift.String = "default", _ premultipliedAlpha: Swift.Bool = true, _ preserveDrawingBuffer: Swift.Bool = false, _ stencil: Swift.Bool = false, _ desynchronized: Swift.Bool = false, _ xrCompatible: Swift.Bool = false)
+ @objc @_Concurrency.MainActor(unsafe) public func create2DContext(_ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ failIfMajorPerformanceCaveat: Swift.Bool, _ powerPreference: Swift.String, _ premultipliedAlpha: Swift.Bool, _ preserveDrawingBuffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xrCompatible: Swift.Bool, _ fontColor: Swift.Int32) -> Swift.Int64
+ @objc @_Concurrency.MainActor(unsafe) public func forceLayout(_ width: CoreFoundation.CGFloat, _ height: CoreFoundation.CGFloat)
+ @objc @_Concurrency.MainActor(unsafe) public func snapshot(_ flip: Swift.Bool) -> UIKit.UIImage?
+ @objc @discardableResult
+ @_Concurrency.MainActor(unsafe) public func render() -> Swift.Bool
+ @objc @_Concurrency.MainActor(unsafe) public func context2DTest(_ context: Swift.Int64)
+ @objc @_Concurrency.MainActor(unsafe) public func context2DTestToDataURL(_ context: Swift.Int64) -> Swift.String
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @objc @_Concurrency.MainActor(unsafe) public func setListener(_ listener: (any CanvasNative.NSCCanvasListener)?)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(TNSRender) public class NSCRender : ObjectiveC.NSObject {
+ @objc override dynamic public init()
+ @objc public func createSurface()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(TNSSVG) @_Concurrency.MainActor(unsafe) public class NSCSVG : UIKit.UIView {
+ @objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool {
+ @objc get
+ @objc set
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var src: Swift.String? {
+ @objc get
+ @objc set
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var srcPath: Swift.String? {
+ @objc get
+ @objc set
+ }
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(NSCImageBitmap) public class NSCImageBitmap : ObjectiveC.NSObject {
+ @objc public static let queue: Dispatch.DispatchQueue
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objc(Utils) public class Utils : ObjectiveC.NSObject {
+ @objc public static func createTextureCache() -> CoreVideo.CVOpenGLESTextureCache?
+ @objc public static func createImage(_ texturecache: CoreVideo.CVOpenGLESTextureCache, _ buffer: CoreVideo.CVImageBuffer, _ textureAttributes: CoreFoundation.CFDictionary?, _ target: OpenGLES.GLenum, _ internalFormat: OpenGLES.GLint, _ width: OpenGLES.GLsizei, _ height: OpenGLES.GLsizei, _ format: OpenGLES.GLenum, _ type: OpenGLES.GLenum, _ planeIndex: Swift.Int) -> CoreVideo.CVOpenGLESTexture?
+ @objc public static func setupRender() -> CanvasNative.NSCRender
+ @objc public static func drawFrame(_ player: AVFoundation.AVPlayer, _ output: AVFoundation.AVPlayerItemVideoOutput, _ videoSize: CoreFoundation.CGSize, _ render: CanvasNative.NSCRender, _ internalFormat: Swift.Int32, _ format: Swift.Int32, _ flipYWebGL: Swift.Bool)
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(NSCCanvasRenderingContext2D) public class NSCCanvasRenderingContext2D : CanvasNative.NSCCanvasRenderingContext {
+ @objc public static func createPattern(_ context: Swift.Int64, _ src: UIKit.UIImage, _ repetition: Swift.String) -> Swift.Int64
+ @objc public static func drawImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ dx: Swift.Float, _ dy: Swift.Float)
+ @objc public static func drawImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ dx: Swift.Float, _ dy: Swift.Float, _ dWidth: Swift.Float, _ dHeight: Swift.Float)
+ @objc public static func drawImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ sx: Swift.Float, _ sy: Swift.Float, _ sWidth: Swift.Float, _ sHeight: Swift.Float, _ dx: Swift.Float, _ dy: Swift.Float, _ dWidth: Swift.Float, _ dHeight: Swift.Float)
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_hasMissingDesignatedInitializers @objcMembers @objc(CanvasGLKView) @_Concurrency.MainActor(unsafe) public class CanvasGLKView : GLKit.GLKView {
+ @_Concurrency.MainActor(unsafe) @objc dynamic public init()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func setNeedsDisplay()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func setNeedsDisplay(_ rect: CoreFoundation.CGRect)
+ @objc deinit
+}
+extension GLKit.GLKView {
+ @objc @_Concurrency.MainActor(unsafe) dynamic public func snapshotWithData(_ data: Foundation.Data)
+}
+@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(CanvasCPUView) @_Concurrency.MainActor(unsafe) public class CanvasCPUView : UIKit.UIView {
+ @objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool
+ @_Concurrency.MainActor(unsafe) @objc dynamic public init()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(NSCImageAsset) public class NSCImageAsset : ObjectiveC.NSObject {
+ @objc public static func loadImageFromImageSync(_ context: Swift.Int64, _ image: UIKit.UIImage) -> Swift.Bool
+ @objc public static func loadImageFromImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ callback: @escaping (Swift.Bool) -> ())
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objc(NSCCanvasRenderingContext) public class NSCCanvasRenderingContext : ObjectiveC.NSObject {
+ @objc override dynamic public init()
+ @objc deinit
+}
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc
new file mode 100644
index 000000000..95d27b3dc
Binary files /dev/null and b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface
new file mode 100644
index 000000000..b65698de4
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface
@@ -0,0 +1,153 @@
+// swift-interface-format-version: 1.0
+// swift-compiler-version: Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
+// swift-module-flags: -target x86_64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name CanvasNative
+// swift-module-flags-ignorable: -enable-bare-slash-regex
+import AVFoundation
+@_exported import CanvasNative
+import CoreVideo
+import Foundation
+import GLKit
+import OpenGLES
+import Swift
+import UIKit
+import _Concurrency
+import _StringProcessing
+@objc(NSCCanvasListener) public protocol NSCCanvasListener {
+ @objc func contextReady()
+}
+@_inheritsConvenienceInitializers @objc(NSSCanvasHelpers) @objcMembers public class CanvasHelpers : ObjectiveC.NSObject {
+ @objc public static func getBytesFromUIImage(_ image: UIKit.UIImage) -> Foundation.NSMutableData
+ @objc public static func createPattern(_ context: Swift.Int64, _ image: UIKit.UIImage, _ repetition: Swift.String) -> Swift.Int64
+ @objc public static func loadImageAssetWithContext(_ asset: Swift.Int64, _ image: UIKit.UIImage) -> Swift.Bool
+ @objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, dx: Swift.Float, dy: Swift.Float)
+ @objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, dx: Swift.Float, dy: Swift.Float, dw: Swift.Float, dh: Swift.Float)
+ @objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, sx: Swift.Float, sy: Swift.Float, sw: Swift.Float, sh: Swift.Float, dx: Swift.Float, dy: Swift.Float, dw: Swift.Float, dh: Swift.Float)
+ @objc public static func initGLWithView(_ view: Swift.Int64, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool) -> Swift.Int64
+ @objc public static func initSharedGLWithView(_ view: Swift.Int64, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool, _ shared_context: Swift.Int64) -> Swift.Int64
+ @objc public static func initGLWithWidthAndHeight(_ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool) -> Swift.Int64
+ @objc public static func initSharedGLWidthAndHeight(_ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.String, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool, _ shared_context: Swift.Int64) -> Swift.Int64
+ @objc public static func resize2DContext(_ context: Swift.Int64, _ width: Swift.Float, _ height: Swift.Float)
+ @objc public static func flush2DContext(_ context: Swift.Int64)
+ @objc public static func flushGL(_ context: Swift.Int64) -> Swift.Bool
+ @objc public static func releaseGL(_ context: Swift.Int64)
+ @objc public static func getGLPointer(_ context: Swift.Int64) -> Swift.Int64
+ @objc public static func releaseGLPointer(_ context: Swift.Int64)
+ @objc public static func create2DContext(_ context: Swift.Int64, _ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ density: Swift.Float, _ samples: Swift.Int32, _ font_color: Swift.Int32, _ ppi: Swift.Float, _ direction: Swift.Int32) -> Swift.Int64
+ @objc public static func updateGLSurfaceWithView(_ view: Swift.Int64, _ width: Swift.Int32, _ height: Swift.Int32, _ context: Swift.Int64)
+ @objc public static func test2D(_ context: Swift.Int64)
+ @objc public static func testToDataURL(_ context: Swift.Int64) -> Swift.String
+ @objc public static func writeFile(_ data: Foundation.NSData, _ path: Swift.String, _ callback: @escaping (Swift.String?, Swift.String?) -> Swift.Void)
+ @objc public static func readFile(_ path: Swift.String, _ callback: @escaping (Swift.String?, Foundation.NSData?) -> Swift.Void)
+ @objc public static func deleteFile(_ path: Swift.String, _ callback: @escaping (Foundation.NSError?, Swift.Bool) -> Swift.Void)
+ @objc public static func handleBase64Image(_ mime: Swift.String, _ dir: Swift.String, _ base64: Swift.String, _ callback: @escaping (Swift.String?, Swift.String?) -> Swift.Void)
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(NSCCanvas) @_Concurrency.MainActor(unsafe) public class NSCCanvas : UIKit.UIView, GLKit.GLKViewDelegate {
+ @_Concurrency.MainActor(unsafe) @objc public func glkView(_ view: GLKit.GLKView, drawIn rect: CoreFoundation.CGRect)
+ @objc @_Concurrency.MainActor(unsafe) public static let store: Foundation.NSMutableDictionary
+ @objc @_Concurrency.MainActor(unsafe) public static func getViews() -> Foundation.NSMapTable
+ @objc @_Concurrency.MainActor(unsafe) public func getViewPtr() -> Swift.UnsafeMutableRawPointer
+ @objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool
+ @objc @_Concurrency.MainActor(unsafe) public var nativeGL: Swift.Int64 {
+ get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var nativeContext: Swift.Int64 {
+ get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var drawingBufferWidth: Swift.Int {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var drawingBufferHeight: Swift.Int {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var width: Swift.Float {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var height: Swift.Float {
+ @objc get
+ }
+ @objc @_Concurrency.MainActor(unsafe) public func initContext(_ type: Swift.String, _ alpha: Swift.Bool = true, _ antialias: Swift.Bool = true, _ depth: Swift.Bool = true, _ failIfMajorPerformanceCaveat: Swift.Bool = false, _ powerPreference: Swift.String = "default", _ premultipliedAlpha: Swift.Bool = true, _ preserveDrawingBuffer: Swift.Bool = false, _ stencil: Swift.Bool = false, _ desynchronized: Swift.Bool = false, _ xrCompatible: Swift.Bool = false)
+ @objc @_Concurrency.MainActor(unsafe) public func create2DContext(_ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ failIfMajorPerformanceCaveat: Swift.Bool, _ powerPreference: Swift.String, _ premultipliedAlpha: Swift.Bool, _ preserveDrawingBuffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xrCompatible: Swift.Bool, _ fontColor: Swift.Int32) -> Swift.Int64
+ @objc @_Concurrency.MainActor(unsafe) public func forceLayout(_ width: CoreFoundation.CGFloat, _ height: CoreFoundation.CGFloat)
+ @objc @_Concurrency.MainActor(unsafe) public func snapshot(_ flip: Swift.Bool) -> UIKit.UIImage?
+ @objc @discardableResult
+ @_Concurrency.MainActor(unsafe) public func render() -> Swift.Bool
+ @objc @_Concurrency.MainActor(unsafe) public func context2DTest(_ context: Swift.Int64)
+ @objc @_Concurrency.MainActor(unsafe) public func context2DTestToDataURL(_ context: Swift.Int64) -> Swift.String
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @objc @_Concurrency.MainActor(unsafe) public func setListener(_ listener: (any CanvasNative.NSCCanvasListener)?)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(TNSRender) public class NSCRender : ObjectiveC.NSObject {
+ @objc override dynamic public init()
+ @objc public func createSurface()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(TNSSVG) @_Concurrency.MainActor(unsafe) public class NSCSVG : UIKit.UIView {
+ @objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool {
+ @objc get
+ @objc set
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var src: Swift.String? {
+ @objc get
+ @objc set
+ }
+ @objc @_Concurrency.MainActor(unsafe) public var srcPath: Swift.String? {
+ @objc get
+ @objc set
+ }
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(NSCImageBitmap) public class NSCImageBitmap : ObjectiveC.NSObject {
+ @objc public static let queue: Dispatch.DispatchQueue
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objc(Utils) public class Utils : ObjectiveC.NSObject {
+ @objc public static func createTextureCache() -> CoreVideo.CVOpenGLESTextureCache?
+ @objc public static func createImage(_ texturecache: CoreVideo.CVOpenGLESTextureCache, _ buffer: CoreVideo.CVImageBuffer, _ textureAttributes: CoreFoundation.CFDictionary?, _ target: OpenGLES.GLenum, _ internalFormat: OpenGLES.GLint, _ width: OpenGLES.GLsizei, _ height: OpenGLES.GLsizei, _ format: OpenGLES.GLenum, _ type: OpenGLES.GLenum, _ planeIndex: Swift.Int) -> CoreVideo.CVOpenGLESTexture?
+ @objc public static func setupRender() -> CanvasNative.NSCRender
+ @objc public static func drawFrame(_ player: AVFoundation.AVPlayer, _ output: AVFoundation.AVPlayerItemVideoOutput, _ videoSize: CoreFoundation.CGSize, _ render: CanvasNative.NSCRender, _ internalFormat: Swift.Int32, _ format: Swift.Int32, _ flipYWebGL: Swift.Bool)
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(NSCCanvasRenderingContext2D) public class NSCCanvasRenderingContext2D : CanvasNative.NSCCanvasRenderingContext {
+ @objc public static func createPattern(_ context: Swift.Int64, _ src: UIKit.UIImage, _ repetition: Swift.String) -> Swift.Int64
+ @objc public static func drawImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ dx: Swift.Float, _ dy: Swift.Float)
+ @objc public static func drawImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ dx: Swift.Float, _ dy: Swift.Float, _ dWidth: Swift.Float, _ dHeight: Swift.Float)
+ @objc public static func drawImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ sx: Swift.Float, _ sy: Swift.Float, _ sWidth: Swift.Float, _ sHeight: Swift.Float, _ dx: Swift.Float, _ dy: Swift.Float, _ dWidth: Swift.Float, _ dHeight: Swift.Float)
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_hasMissingDesignatedInitializers @objcMembers @objc(CanvasGLKView) @_Concurrency.MainActor(unsafe) public class CanvasGLKView : GLKit.GLKView {
+ @_Concurrency.MainActor(unsafe) @objc dynamic public init()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func setNeedsDisplay()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func setNeedsDisplay(_ rect: CoreFoundation.CGRect)
+ @objc deinit
+}
+extension GLKit.GLKView {
+ @objc @_Concurrency.MainActor(unsafe) dynamic public func snapshotWithData(_ data: Foundation.Data)
+}
+@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(CanvasCPUView) @_Concurrency.MainActor(unsafe) public class CanvasCPUView : UIKit.UIView {
+ @objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool
+ @_Concurrency.MainActor(unsafe) @objc dynamic public init()
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
+ @_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objcMembers @objc(NSCImageAsset) public class NSCImageAsset : ObjectiveC.NSObject {
+ @objc public static func loadImageFromImageSync(_ context: Swift.Int64, _ image: UIKit.UIImage) -> Swift.Bool
+ @objc public static func loadImageFromImage(_ context: Swift.Int64, _ image: UIKit.UIImage, _ callback: @escaping (Swift.Bool) -> ())
+ @objc override dynamic public init()
+ @objc deinit
+}
+@_inheritsConvenienceInitializers @objc(NSCCanvasRenderingContext) public class NSCCanvasRenderingContext : ObjectiveC.NSObject {
+ @objc override dynamic public init()
+ @objc deinit
+}
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/module.modulemap b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/module.modulemap
new file mode 100644
index 000000000..0d2a8ed0a
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/module.modulemap
@@ -0,0 +1,11 @@
+framework module CanvasNative {
+ umbrella header "CanvasNative.h"
+
+ export *
+ module * { export * }
+}
+
+module CanvasNative.Swift {
+ header "CanvasNative-Swift.h"
+ requires objc
+}
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/NSCCanvas.nib b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/NSCCanvas.nib
new file mode 100644
index 000000000..1cb86796b
Binary files /dev/null and b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/NSCCanvas.nib differ
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources
new file mode 100644
index 000000000..39333bcb1
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources
@@ -0,0 +1,300 @@
+
+
+
+
+ files
+
+ Headers/CanvasNative-Swift.h
+
+ nQtoIPuRAY9uRYYZCEaqMHer7F0=
+
+ Headers/CanvasNative.h
+
+ +QoTcsiyRLselY1cxOt2V5zx0eg=
+
+ Headers/canvas_ios.h
+
+ KTxEWGEXbMkpqkl1jFw9IrlUXNk=
+
+ Headers/canvas_native.h
+
+ O+omEt3fxlDwlx/tztK3TnD+1to=
+
+ Info.plist
+
+ U1i9btMZtOpHf9qhXwKYLDvVNdo=
+
+ Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo
+
+ ZiOGFcmD62L739XS8M6f1Xz/eCI=
+
+ Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo
+
+ pVavz15jKGgzFBEcFT+mJoY+/vc=
+
+ Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json
+
+ Or/HHJBs4MKQzKcwJDlwbwrBbDQ=
+
+ Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface
+
+ wlrtqLyuLVs3qeTlxhFuWJYFPkA=
+
+ Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc
+
+ CMMmee6VmdZfdJ0Wkbazb7dDXdQ=
+
+ Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface
+
+ wlrtqLyuLVs3qeTlxhFuWJYFPkA=
+
+ Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftmodule
+
+ C7DBTWqlZA3pK0wqABMtp9M7RYs=
+
+ Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json
+
+ Or/HHJBs4MKQzKcwJDlwbwrBbDQ=
+
+ Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface
+
+ FFguMsxD4NYYvIa8AnpLmRFtvsw=
+
+ Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc
+
+ qIf+V6LPokPDapYCnIkzGPNTQBQ=
+
+ Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface
+
+ FFguMsxD4NYYvIa8AnpLmRFtvsw=
+
+ Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
+
+ 9n4cAjTwJ58FCauLfS0DV6JwJdQ=
+
+ Modules/module.modulemap
+
+ BjDNiznFmjQirdULxZi9ZgNi/VI=
+
+ NSCCanvas.nib
+
+ qkDQhhutZTxgDZ7F7lJ6nvazIjk=
+
+
+ files2
+
+ Headers/CanvasNative-Swift.h
+
+ hash2
+
+ xwFUDtZ5319nV0wQyRtzw1LZyWudL6J9QLD6foTjLsU=
+
+
+ Headers/CanvasNative.h
+
+ hash2
+
+ +okZJbJMCnWx5+POPGyO1xTQM8uj5a1RrzTTGZ8eU+g=
+
+
+ Headers/canvas_ios.h
+
+ hash2
+
+ TiO6d1r0FpNodOiAuX3VSvZMqWAXTOTOJOr7ntjAfW0=
+
+
+ Headers/canvas_native.h
+
+ hash2
+
+ vRaqALmrWIwqjqdWBVtu5+sUNS8HW8ZZFFucO87G+MU=
+
+
+ Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo
+
+ hash2
+
+ ewogAOCMLGQp0QsZdPrVlSRYuMuQOJtYYj4sPVl6qR4=
+
+
+ Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo
+
+ hash2
+
+ C/oTto6zVAa5Yu2HhPxImzgXClXs3bsbSjohM9JZDKM=
+
+
+ Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json
+
+ hash2
+
+ vl2XmGuJOvHVoRaXScyQR9GAEmOmYH3hD1QgCQ3FHbM=
+
+
+ Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface
+
+ hash2
+
+ mU9wR9YI6z/UNBlZa45JU4RqDl1QKaUT7Tb5p61cE6w=
+
+
+ Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc
+
+ hash2
+
+ XEwqbBhZEdrykIJcHcrifRLpaclowS2e/807PqxiO3c=
+
+
+ Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface
+
+ hash2
+
+ mU9wR9YI6z/UNBlZa45JU4RqDl1QKaUT7Tb5p61cE6w=
+
+
+ Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftmodule
+
+ hash2
+
+ Crvg6K57JW0JDRD652CUIK2/p5YIlD8xXVQrHb82jHA=
+
+
+ Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json
+
+ hash2
+
+ vl2XmGuJOvHVoRaXScyQR9GAEmOmYH3hD1QgCQ3FHbM=
+
+
+ Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface
+
+ hash2
+
+ 4ouJytdAzbFKEnd/Lvzzaznp6ecMfAOyLpDHj2ydA/0=
+
+
+ Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc
+
+ hash2
+
+ 4Vrv9xfds4FwI/1nDrreY1HfYl1r31bJkIMvsfoEf54=
+
+
+ Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface
+
+ hash2
+
+ 4ouJytdAzbFKEnd/Lvzzaznp6ecMfAOyLpDHj2ydA/0=
+
+
+ Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
+
+ hash2
+
+ xcHUbmIw4izou88kK/yKgfxaEf2rfhjQWFGq8a1YqLY=
+
+
+ Modules/module.modulemap
+
+ hash2
+
+ c22jqd6c3wxNlwA7iH09q2NMxJr84gsbuvLmUk0O2GU=
+
+
+ NSCCanvas.nib
+
+ hash2
+
+ tQH3V4xc4MFZrUOJCe2pDezkuoSIUkNxdyuLs8Ri2Hc=
+
+
+
+ rules
+
+ ^.*
+
+ ^.*\.lproj/
+
+ optional
+
+ weight
+ 1000
+
+ ^.*\.lproj/locversion.plist$
+
+ omit
+
+ weight
+ 1100
+
+ ^Base\.lproj/
+
+ weight
+ 1010
+
+ ^version.plist$
+
+
+ rules2
+
+ .*\.dSYM($|/)
+
+ weight
+ 11
+
+ ^(.*/)?\.DS_Store$
+
+ omit
+
+ weight
+ 2000
+
+ ^.*
+
+ ^.*\.lproj/
+
+ optional
+
+ weight
+ 1000
+
+ ^.*\.lproj/locversion.plist$
+
+ omit
+
+ weight
+ 1100
+
+ ^Base\.lproj/
+
+ weight
+ 1010
+
+ ^Info\.plist$
+
+ omit
+
+ weight
+ 20
+
+ ^PkgInfo$
+
+ omit
+
+ weight
+ 20
+
+ ^embedded\.provisionprofile$
+
+ weight
+ 20
+
+ ^version\.plist$
+
+ weight
+ 20
+
+
+
+
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Info.plist b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Info.plist
new file mode 100644
index 000000000..509a66359
--- /dev/null
+++ b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Info.plist
@@ -0,0 +1,20 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ English
+ CFBundleIdentifier
+ com.apple.xcode.dsym.com.github.triniwiz.CanvasNative
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundlePackageType
+ dSYM
+ CFBundleSignature
+ ????
+ CFBundleShortVersionString
+ 1.0
+ CFBundleVersion
+ 1
+
+
diff --git a/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative
new file mode 100644
index 000000000..65ab99d8f
Binary files /dev/null and b/packages/canvas/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative differ
diff --git a/packages/canvas/platforms/ios/src/NSOperationQueueWrapper.h b/packages/canvas/platforms/ios/src/NSOperationQueueWrapper.h
new file mode 100644
index 000000000..2807c49c0
--- /dev/null
+++ b/packages/canvas/platforms/ios/src/NSOperationQueueWrapper.h
@@ -0,0 +1,13 @@
+#import
+
+
+class NSOperationQueueWrapper {
+public:
+ NSOperationQueueWrapper(bool currentQueue);
+ ~NSOperationQueueWrapper();
+
+ void addOperation(void (*task)());
+
+private:
+ NSOperationQueue *operationQueue;
+};
diff --git a/packages/canvas/platforms/ios/src/NSOperationQueueWrapper.mm b/packages/canvas/platforms/ios/src/NSOperationQueueWrapper.mm
new file mode 100644
index 000000000..8ae593e9f
--- /dev/null
+++ b/packages/canvas/platforms/ios/src/NSOperationQueueWrapper.mm
@@ -0,0 +1,69 @@
+#import "NSOperationQueueWrapper.h"
+
+
+#import
+#import "NSOperationQueueWrapper.h"
+
+@interface NSOperationQueueWrapperObjC : NSObject
+- (void)addOperation:(void (^)())task;
+@end
+
+@implementation NSOperationQueueWrapperObjC {
+ NSOperationQueue* operationQueue;
+}
+
+- (instancetype)init {
+ self = [super init];
+ if (self) {
+ operationQueue = [[NSOperationQueue alloc] init];
+ }
+ return self;
+}
+
+-(instancetype)initWithCurrentQueue {
+ self = [super init];
+ if (self) {
+ operationQueue = [NSOperationQueue currentQueue];
+ }
+ return self;
+}
+
+- (void)dealloc {
+ // In ARC, there's no need to manually release
+}
+
+- (void)addOperation:(void (^)())task {
+ NSBlockOperation* operation = [NSBlockOperation blockOperationWithBlock:^{
+ // Call the C++ task
+ task();
+ }];
+
+ [operationQueue addOperation:operation];
+}
+
+- (NSOperationQueue*)getOperationQueue {
+ return operationQueue;
+}
+
+
+@end
+
+NSOperationQueueWrapper::NSOperationQueueWrapper(bool currentQueue) {
+ if (currentQueue) {
+ NSOperationQueueWrapperObjC* objcWrapper = [[NSOperationQueueWrapperObjC alloc] initWithCurrentQueue];
+ operationQueue = [objcWrapper getOperationQueue];
+ }else {
+ NSOperationQueueWrapperObjC* objcWrapper = [NSOperationQueueWrapperObjC init];
+ operationQueue = [objcWrapper getOperationQueue];
+ }
+
+}
+
+NSOperationQueueWrapper::~NSOperationQueueWrapper() {}
+
+void NSOperationQueueWrapper::addOperation(void (*task)()) {
+ NSOperationQueueWrapperObjC* queue = static_cast(operationQueue);
+ [queue addOperation:^{
+ task();
+ }];
+}
diff --git a/packages/canvas/platforms/ios/src/cpp/CanvasJSIModule.cpp b/packages/canvas/platforms/ios/src/cpp/CanvasJSIModule.cpp
index 14fdb5827..601a952a0 100644
--- a/packages/canvas/platforms/ios/src/cpp/CanvasJSIModule.cpp
+++ b/packages/canvas/platforms/ios/src/cpp/CanvasJSIModule.cpp
@@ -785,8 +785,7 @@ void CanvasJSIModule::ReadFile(const v8::FunctionCallbackInfo &args)
std::thread thread(
[jsi_callback](const std::string &file) {
bool done = false;
- auto ret = canvas_native_helper_read_file(
- rust::Str(file.c_str()));
+ auto ret = canvas_native_helper_read_file(file.c_str());
if (!canvas_native_helper_read_file_has_error(*ret)) {
auto buf = canvas_native_helper_read_file_get_data(
@@ -920,14 +919,12 @@ void CanvasJSIModule::CreateWebGLContext(const v8::FunctionCallbackInfoNumberValue(context).ToChecked();
auto webgl = canvas_native_webgl_create(
ctx,
- rust::Str(
- version.c_str()),
+ version.c_str(),
alpha,
antialias,
depth,
fail_if_major_performance_caveat,
- rust::Str(
- power_preference.c_str()),
+ power_preference.c_str(),
premultiplied_alpha,
preserve_drawing_buffer,
stencil,
@@ -952,14 +949,12 @@ void CanvasJSIModule::CreateWebGLContext(const v8::FunctionCallbackInfo"
-using namespace org::nativescript::canvas;
-
class CanvasJSIModule {
diff --git a/packages/canvas/platforms/ios/src/cpp/Common.h b/packages/canvas/platforms/ios/src/cpp/Common.h
index e8a71254a..82ec33dbd 100644
--- a/packages/canvas/platforms/ios/src/cpp/Common.h
+++ b/packages/canvas/platforms/ios/src/cpp/Common.h
@@ -5,8 +5,15 @@
#pragma once
#include
#include
-#include "include/v8.h"
+
+#ifdef __APPLE__
+#include
+#include
+#endif
+
#ifdef __ANDROID__
+#include "include/v8.h"
#include
#include
#endif
+
diff --git a/packages/canvas/platforms/ios/src/cpp/Helpers.h b/packages/canvas/platforms/ios/src/cpp/Helpers.h
index 64b08203d..c8b99240d 100644
--- a/packages/canvas/platforms/ios/src/cpp/Helpers.h
+++ b/packages/canvas/platforms/ios/src/cpp/Helpers.h
@@ -5,18 +5,17 @@
#pragma once
#include
-#include "rust/cxx.h"
#include "Common.h"
#include "OneByteStringResource.h"
-#ifdef __APPLE__
-#ifdef __OBJC__
-#include
-#else
-#include
-extern "C" void NSLog(CFStringRef format, ...);
-#endif
-#endif
+//#ifdef __APPLE__
+//#ifdef __OBJC__
+//#include
+//#else
+//#include
+//extern "C" void NSLog(CFStringRef format, ...);
+//#endif
+//#endif
@@ -49,13 +48,13 @@ static void sendToADBLogcat(const std::string &message, android_LogPriority logP
}
#endif
-#ifdef __APPLE__
-#ifndef __OBJC__
-#define Log(fmt, ...) NSLog(CFSTR(fmt), ##__VA_ARGS__)
-#else
-#define Log(...) NSLog(__VA_ARGS__)
-#endif
-#endif
+//#ifdef __APPLE__
+//#ifndef __OBJC__
+//#define Log(fmt, ...) NSLog(CFSTR(fmt), ##__VA_ARGS__)
+//#else
+//#define Log(...) NSLog(__VA_ARGS__)
+//#endif
+//#endif
@@ -126,46 +125,9 @@ enum class NativeType {
};
-template
-struct VecBuffer {
-public:
- VecBuffer(rust::Vec buffer) : vec_(std::move(buffer)) {
- this->buf_ = vec_.data();
- this->buffer_size_ = vec_.size();
- this->size_ = vec_.size() * sizeof(T);
- }
-
- T *buffer_data() {
- return this->buf_;
- }
-
- size_t buffer_size() const {
- return this->buffer_size_;
- }
-
- uint8_t *data() {
- return (uint8_t *) this->buf_;
- }
-
- size_t size() const {
- return this->size_;
- }
-
- ~VecBuffer() {
- this->buf_ = nullptr;
- }
-
-private:
- T *buf_;
- size_t size_;
- size_t buffer_size_;
- rust::Vec vec_;
-};
-
-
inline static v8::Local
-ConvertToV8OneByteString(v8::Isolate *isolate, rust::String string) {
- auto value = new OneByteStringResource(std::move(string));
+ConvertToV8OneByteString(v8::Isolate *isolate, char* string) {
+ auto value = new OneByteStringResource(string);
auto ret = v8::String::NewExternalOneByte(isolate, value);
return ret.ToLocalChecked();
}
diff --git a/packages/canvas/platforms/ios/src/cpp/ImageAssetImpl.cpp b/packages/canvas/platforms/ios/src/cpp/ImageAssetImpl.cpp
index ea0372d4d..724bc6533 100644
--- a/packages/canvas/platforms/ios/src/cpp/ImageAssetImpl.cpp
+++ b/packages/canvas/platforms/ios/src/cpp/ImageAssetImpl.cpp
@@ -7,20 +7,27 @@
#include "JSIRuntime.h"
#include "JSICallback.h"
#include "Caches.h"
+#include "NSOperationQueueWrapper.h"
+#include "Helpers.h"
+#include "Common.h"
-ImageAssetImpl::ImageAssetImpl(rust::Box asset)
- : asset_(std::move(asset)) {
+ImageAssetImpl::ImageAssetImpl(ImageAsset * asset): asset_(asset) {
+}
+
+ImageAssetImpl::~ImageAssetImpl() {
+ canvas_native_image_asset_destroy(this->GetImageAsset());
+ asset_ = nullptr;
}
void ImageAssetImpl::Init(v8::Local canvasModule, v8::Isolate *isolate) {
v8::Locker locker(isolate);
v8::Isolate::Scope isolate_scope(isolate);
v8::HandleScope handle_scope(isolate);
-
+
auto ctor = GetCtor(isolate);
auto context = isolate->GetCurrentContext();
auto func = ctor->GetFunction(context).ToLocalChecked();
-
+
canvasModule->Set(context, ConvertToV8String(isolate, "ImageAsset"), func);
}
@@ -38,83 +45,83 @@ v8::Local ImageAssetImpl::GetCtor(v8::Isolate *isolate) {
if (ctor != nullptr) {
return ctor->Get(isolate);
}
-
+
v8::Local ctorTmpl = v8::FunctionTemplate::New(isolate, Ctor);
ctorTmpl->InstanceTemplate()->SetInternalFieldCount(1);
ctorTmpl->SetClassName(ConvertToV8String(isolate, "ImageAsset"));
-
+
auto tmpl = ctorTmpl->InstanceTemplate();
tmpl->SetInternalFieldCount(1);
tmpl->SetAccessor(
- ConvertToV8String(isolate, "width"),
- GetWidth);
+ ConvertToV8String(isolate, "width"),
+ GetWidth);
tmpl->SetAccessor(
- ConvertToV8String(isolate, "height"),
- GetHeight);
+ ConvertToV8String(isolate, "height"),
+ GetHeight);
tmpl->SetAccessor(
- ConvertToV8String(isolate, "error"),
- GetError);
-
+ ConvertToV8String(isolate, "error"),
+ GetError);
+
tmpl->Set(
- ConvertToV8String(isolate, "scale"),
- v8::FunctionTemplate::New(isolate, &Scale));
-
+ ConvertToV8String(isolate, "scale"),
+ v8::FunctionTemplate::New(isolate, &Scale));
+
tmpl->Set(
- ConvertToV8String(isolate, "fromUrlSync"),
- v8::FunctionTemplate::New(isolate, &FromUrlSync));
-
+ ConvertToV8String(isolate, "fromUrlSync"),
+ v8::FunctionTemplate::New(isolate, &FromUrlSync));
+
tmpl->Set(
- ConvertToV8String(isolate, "fromUrlCb"),
- v8::FunctionTemplate::New(isolate, &FromUrlCb));
-
-
+ ConvertToV8String(isolate, "fromUrlCb"),
+ v8::FunctionTemplate::New(isolate, &FromUrlCb));
+
+
tmpl->Set(
- ConvertToV8String(isolate, "fromFileSync"),
- v8::FunctionTemplate::New(isolate, &FromFileSync));
-
+ ConvertToV8String(isolate, "fromFileSync"),
+ v8::FunctionTemplate::New(isolate, &FromFileSync));
+
tmpl->Set(
- ConvertToV8String(isolate, "fromFileCb"),
- v8::FunctionTemplate::New(isolate, &FromFileCb));
-
-
+ ConvertToV8String(isolate, "fromFileCb"),
+ v8::FunctionTemplate::New(isolate, &FromFileCb));
+
+
tmpl->Set(
- ConvertToV8String(isolate, "fromBytesSync"),
- v8::FunctionTemplate::New(isolate, &FromBytesSync));
-
+ ConvertToV8String(isolate, "fromBytesSync"),
+ v8::FunctionTemplate::New(isolate, &FromBytesSync));
+
tmpl->Set(
- ConvertToV8String(isolate, "fromBytesCb"),
- v8::FunctionTemplate::New(isolate, &FromBytesCb));
-
-
+ ConvertToV8String(isolate, "fromBytesCb"),
+ v8::FunctionTemplate::New(isolate, &FromBytesCb));
+
+
tmpl->Set(
- ConvertToV8String(isolate, "saveSync"),
- v8::FunctionTemplate::New(isolate, &SaveSync));
-
+ ConvertToV8String(isolate, "saveSync"),
+ v8::FunctionTemplate::New(isolate, &SaveSync));
+
tmpl->Set(
- ConvertToV8String(isolate, "saveCb"),
- v8::FunctionTemplate::New(isolate, &SaveCb));
-
-
+ ConvertToV8String(isolate, "saveCb"),
+ v8::FunctionTemplate::New(isolate, &SaveCb));
+
+
cache->ImageAssetTmpl =
- std::make_unique>(isolate, ctorTmpl);
+ std::make_unique>(isolate, ctorTmpl);
return ctorTmpl;
}
void ImageAssetImpl::Ctor(const v8::FunctionCallbackInfo &args) {
auto isolate = args.GetIsolate();
-
+
auto ret = args.This();
-
+
SetNativeType(isolate, ret, NativeType::ImageAsset);
-
+
auto image_asset = canvas_native_image_asset_create();
-
+
auto object = new ImageAssetImpl(std::move(image_asset));
-
+
auto ext = v8::External::New(isolate, object);
-
+
ret->SetInternalField(0, ext);
-
+
args.GetReturnValue().Set(ret);
}
@@ -163,18 +170,16 @@ void ImageAssetImpl::Scale(const v8::FunctionCallbackInfo &args) {
}
auto isolate = args.GetIsolate();
auto context = isolate->GetCurrentContext();
-
+
if (args.Length() > 1) {
auto x = (uint32_t) args[0]->NumberValue(context).ToChecked();
auto y = (uint32_t) args[1]->NumberValue(context).ToChecked();
if (x > 0 && y > 0) {
canvas_native_image_asset_scale(
- ptr->GetImageAsset(), x,
- y);
+ ptr->GetImageAsset(), x,
+ y);
}
}
-
- args.GetReturnValue().SetUndefined();
}
void ImageAssetImpl::FromUrlSync(const v8::FunctionCallbackInfo &args) {
@@ -185,12 +190,9 @@ void ImageAssetImpl::FromUrlSync(const v8::FunctionCallbackInfo &args
}
auto isolate = args.GetIsolate();
auto url = ConvertFromV8String(isolate, args[0]);
-
- auto done = canvas_native_image_asset_load_from_url(
- ptr->GetImageAsset(),
- rust::Str(url.c_str()));
-
-
+
+ auto done = canvas_native_image_asset_load_from_url(ptr->GetImageAsset(), url.c_str());
+
args.GetReturnValue().Set(done);
}
@@ -199,74 +201,123 @@ void ImageAssetImpl::FromUrlCb(const v8::FunctionCallbackInfo &args)
if (ptr == nullptr) {
return;
}
-
+
auto isolate = args.GetIsolate();
-
+
if (args.Length() < 2) {
return;
}
-
+
auto url = ConvertFromV8String(isolate, args[0]);
-
- auto asset = canvas_native_image_asset_shared_clone(
- ptr->GetImageAsset());
-
+
+ auto asset = canvas_native_image_asset_shared_clone(ptr->asset_);
+
auto callback = args[1].As();
-
+
auto jsi_callback = new JSICallback(isolate, callback);
-
+
+#ifdef __ANDROID__
+
ALooper_addFd(jsi_callback->looper_,
jsi_callback->fd_[0],
ALOOPER_POLL_CALLBACK,
ALOOPER_EVENT_INPUT,
[](int fd, int events,
void *data) {
- auto cb = static_cast(data);
- bool done;
- read(fd, &done,
- sizeof(bool));
-
- v8::Isolate *isolate = cb->isolate_;
- v8::Locker locker(isolate);
- v8::Isolate::Scope isolate_scope(isolate);
- v8::HandleScope handle_scope(isolate);
- v8::Local callback = cb->callback_->Get(isolate);
- v8::Local context = callback->GetCreationContextChecked();
- v8::Context::Scope context_scope(context);
-
- v8::Local args[1] = {v8::Boolean::New(isolate, done)};
-
- // v8::TryCatch tc(isolate);
-
- callback->Call(context, context->Global(), 1,
- args); // ignore JS return value
-
-
- delete static_cast(data);
- return 0;
- }, jsi_callback);
-
+ auto cb = static_cast(data);
+ bool done;
+ read(fd, &done,
+ sizeof(bool));
+
+ v8::Isolate *isolate = cb->isolate_;
+ v8::Locker locker(isolate);
+ v8::Isolate::Scope isolate_scope(isolate);
+ v8::HandleScope handle_scope(isolate);
+ v8::Local callback = cb->callback_->Get(isolate);
+ v8::Local context = callback->GetCreationContextChecked();
+ v8::Context::Scope context_scope(context);
+
+ v8::Local args[1] = {v8::Boolean::New(isolate, done)};
+
+ // v8::TryCatch tc(isolate);
+
+ callback->Call(context, context->Global(), 1,
+ args); // ignore JS return value
+
+
+ delete static_cast(data);
+ return 0;
+ }, jsi_callback);
+
ALooper_wake(jsi_callback->looper_);
-
-
+
+
std::thread thread(
- [jsi_callback](
- const std::string &url,
- rust::Box asset) {
-
- auto done = canvas_native_image_asset_load_from_url(
- *asset,
- rust::Str(
- url.c_str()));
-
- write(jsi_callback->fd_[1],
- &done,
- sizeof(bool));
-
- }, std::move(url),
- std::move(asset));
-
+ [jsi_callback](
+ const std::string &url,
+ ImageAsset * asset) {
+
+ auto done = canvas_native_image_asset_load_from_url(asset, url.c_str());
+
+ write(jsi_callback->fd_[1],
+ &done,
+ sizeof(bool));
+
+ }, std::move(url),
+ std::move(asset));
+
thread.detach();
+
+#endif
+
+
+
+#ifdef __APPLE__
+
+ auto current_queue = new NSOperationQueueWrapper(true);
+
+ auto queue = new NSOperationQueueWrapper(false);
+
+ auto task = [&jsi_callback, ¤t_queue, &queue, &asset, &url]() {
+
+ auto done = canvas_native_image_asset_load_from_url(asset, url.c_str());
+
+ delete asset;
+
+ auto main_task = [&jsi_callback, ¤t_queue, &queue, &url, &done]() {
+
+
+ v8::Isolate *isolate = jsi_callback->isolate_;
+ v8::Locker locker(isolate);
+ v8::Isolate::Scope isolate_scope(isolate);
+ v8::HandleScope handle_scope(isolate);
+ v8::Local callback = jsi_callback->callback_->Get(isolate);
+ v8::Local context = callback->GetCreationContextChecked();
+ v8::Context::Scope context_scope(context);
+
+ v8::Local args[1] = {v8::Boolean::New(isolate, done)};
+
+ // v8::TryCatch tc(isolate);
+
+ callback->Call(context, context->Global(), 1,
+ args); // ignore JS return value
+
+
+ delete jsi_callback;
+ delete queue;
+ delete current_queue;
+
+
+ };
+
+ };
+#endif
+
+
+
+
+
+
}
void ImageAssetImpl::FromFileSync(const v8::FunctionCallbackInfo &args) {
@@ -277,12 +328,10 @@ void ImageAssetImpl::FromFileSync(const v8::FunctionCallbackInfo &arg
}
auto isolate = args.GetIsolate();
auto path = ConvertFromV8String(isolate, args[0]);
-
- auto done = canvas_native_image_asset_load_from_path(
- ptr->GetImageAsset(),
- rust::Str(path.c_str()));
-
-
+
+ auto done = canvas_native_image_asset_load_from_path(ptr->GetImageAsset(), path.c_str());
+
+
args.GetReturnValue().Set(done);
}
@@ -292,73 +341,117 @@ void ImageAssetImpl::FromFileCb(const v8::FunctionCallbackInfo &args)
return;
}
auto isolate = args.GetIsolate();
-
+
if (args.Length() < 2) {
return;
}
-
-
+
+
auto path = ConvertFromV8String(isolate, args[0]);
-
+
auto asset = canvas_native_image_asset_shared_clone(
- ptr->GetImageAsset());
-
+ ptr->GetImageAsset());
+
auto callback = args[1].As();
-
-
+
+
auto jsi_callback = new JSICallback(isolate, callback);
-
+
+#ifdef __ANDROID__
+
ALooper_addFd(jsi_callback->looper_,
jsi_callback->fd_[0],
ALOOPER_POLL_CALLBACK,
ALOOPER_EVENT_INPUT,
[](int fd, int events,
void *data) {
- auto cb = static_cast(data);
- bool done;
- read(fd, &done,
- sizeof(bool));
-
- v8::Isolate *isolate = cb->isolate_;
- v8::Locker locker(isolate);
- v8::Isolate::Scope isolate_scope(isolate);
- v8::HandleScope handle_scope(isolate);
- v8::Local callback = cb->callback_->Get(isolate);
- v8::Local context = callback->GetCreationContextChecked();
- v8::Context::Scope context_scope(context);
-
- v8::Local args[1] = {v8::Boolean::New(isolate, done)};
-
- // v8::TryCatch tc(isolate);
-
- callback->Call(context, context->Global(), 1,
- args); // ignore JS return value
-
- delete static_cast(data);
- return 0;
- }, jsi_callback);
-
+ auto cb = static_cast(data);
+ bool done;
+ read(fd, &done,
+ sizeof(bool));
+
+ v8::Isolate *isolate = cb->isolate_;
+ v8::Locker locker(isolate);
+ v8::Isolate::Scope isolate_scope(isolate);
+ v8::HandleScope handle_scope(isolate);
+ v8::Local callback = cb->callback_->Get(isolate);
+ v8::Local context = callback->GetCreationContextChecked();
+ v8::Context::Scope context_scope(context);
+
+ v8::Local args[1] = {v8::Boolean::New(isolate, done)};
+
+ // v8::TryCatch tc(isolate);
+
+ callback->Call(context, context->Global(), 1,
+ args); // ignore JS return value
+
+ delete static_cast(data);
+ return 0;
+ }, jsi_callback);
+
ALooper_wake(jsi_callback->looper_);
-
-
+
+
std::thread thread(
- [jsi_callback](
- const std::string &path,
- rust::Box asset) {
-
- auto done = canvas_native_image_asset_load_from_path(
- *asset,
- rust::Str(
- path.c_str()));
-
- write(jsi_callback->fd_[1],
- &done,
- sizeof(bool));
-
- }, std::move(path),
- std::move(asset));
-
+ [jsi_callback](
+ const std::string &path,
+ ImageAsset * asset) {
+
+ auto done = canvas_native_image_asset_load_from_path(asset, path.c_str());
+
+ write(jsi_callback->fd_[1],
+ &done,
+ sizeof(bool));
+
+ }, std::move(path),
+ std::move(asset));
+
thread.detach();
+
+#endif
+
+
+
+#ifdef __APPLE__
+
+ auto current_queue = new NSOperationQueueWrapper(true);
+
+ auto queue = new NSOperationQueueWrapper(false);
+
+ auto task = [&jsi_callback, ¤t_queue, &queue, &asset, &path]() {
+
+ auto done = canvas_native_image_asset_load_from_path(asset, path.c_str());
+
+ delete asset;
+
+ auto main_task = [&jsi_callback, ¤t_queue, &queue, &url, &done]() {
+
+
+ v8::Isolate *isolate = jsi_callback->isolate_;
+ v8::Locker locker(isolate);
+ v8::Isolate::Scope isolate_scope(isolate);
+ v8::HandleScope handle_scope(isolate);
+ v8::Local callback = jsi_callback->callback_->Get(isolate);
+ v8::Local context = callback->GetCreationContextChecked();
+ v8::Context::Scope context_scope(context);
+
+ v8::Local args[1] = {v8::Boolean::New(isolate, done)};
+
+ // v8::TryCatch tc(isolate);
+
+ callback->Call(context, context->Global(), 1,
+ args); // ignore JS return value
+
+
+ delete jsi_callback;
+ delete queue;
+ delete current_queue;
+
+
+ };
+
+ };
+#endif
}
void ImageAssetImpl::FromBytesSync(const v8::FunctionCallbackInfo &args) {
@@ -367,26 +460,25 @@ void ImageAssetImpl::FromBytesSync(const v8::FunctionCallbackInfo &ar
args.GetReturnValue().Set(false);
return;
}
-
+
auto value = args[0];
-
+
if (value->IsObject()) {
if (!value->IsArrayBuffer()) {
args.GetReturnValue().Set(false);
return;
}
auto buf = value.As();
-
- auto size = buf->ByteLength();
+
+ uintptr_t size = (uintptr_t)buf->ByteLength();
auto data = (uint8_t *) buf->GetBackingStore()->Data();
- auto done = canvas_native_image_asset_load_from_raw(
- ptr->GetImageAsset(),
- rust::Slice(
- data, size));
-
+ auto buf = canvas_native_u8_buffer_create_with_reference(data, size);
+
+ auto done = canvas_native_image_asset_load_from_raw(ptr->GetImageAsset(), buf);
+
args.GetReturnValue().Set(done);
}
-
+
args.GetReturnValue().Set(false);
}
@@ -396,72 +488,125 @@ void ImageAssetImpl::FromBytesCb(const v8::FunctionCallbackInfo &args
return;
}
auto isolate = args.GetIsolate();
-
+
if (args.Length() < 2) {
return;
}
-
-
+
+
auto bytes = args[0].As();
-
+
auto size = bytes->ByteLength();
auto data = (uint8_t *) bytes->GetBackingStore()->Data();
- auto buf = rust::Slice(data,
- size);
-
+ auto buf = canvas_native_u8_buffer_create_with_reference(data, size);
+
auto asset = canvas_native_image_asset_shared_clone(
- ptr->GetImageAsset());
-
+ ptr->GetImageAsset());
+
auto callback = args[1].As();
-
+
auto jsi_callback = new JSICallback(isolate, callback);
-
+
+#ifdef __ANDROID__
+
ALooper_addFd(jsi_callback->looper_,
jsi_callback->fd_[0],
ALOOPER_POLL_CALLBACK,
ALOOPER_EVENT_INPUT,
[](int fd, int events,
void *data) {
- auto cb = static_cast(data);
- bool done;
- read(fd, &done,
- sizeof(bool));
-
- v8::Isolate *isolate = cb->isolate_;
- v8::Locker locker(isolate);
- v8::Isolate::Scope isolate_scope(isolate);
- v8::HandleScope handle_scope(isolate);
- v8::Local callback = cb->callback_->Get(isolate);
- v8::Local context = callback->GetCreationContextChecked();
- v8::Context::Scope context_scope(context);
-
- v8::Local args[1] = {v8::Boolean::New(isolate, done)};
-
- // v8::TryCatch tc(isolate);
-
- callback->Call(context, context->Global(), 1,
- args); // ignore JS return value
-
- delete static_cast(data);
- return 0;
- }, jsi_callback);
-
+ auto cb = static_cast(data);
+ bool done;
+ read(fd, &done,
+ sizeof(bool));
+
+ v8::Isolate *isolate = cb->isolate_;
+ v8::Locker locker(isolate);
+ v8::Isolate::Scope isolate_scope(isolate);
+ v8::HandleScope handle_scope(isolate);
+ v8::Local callback = cb->callback_->Get(isolate);
+ v8::Local context = callback->GetCreationContextChecked();
+ v8::Context::Scope context_scope(context);
+
+ v8::Local args[1] = {v8::Boolean::New(isolate, done)};
+
+ // v8::TryCatch tc(isolate);
+
+ callback->Call(context, context->Global(), 1,
+ args); // ignore JS return value
+
+ delete static_cast(data);
+ return 0;
+ }, jsi_callback);
+
ALooper_wake(jsi_callback->looper_);
-
-
+
+
std::thread thread(
- [jsi_callback, &buf](rust::Box asset) {
-
- auto done = canvas_native_image_asset_load_from_raw(
- *asset, buf);
-
- write(jsi_callback->fd_[1],
- &done,
- sizeof(bool));
-
- }, std::move(asset));
-
+ [jsi_callback, &buf](ImageAsset * asset) {
+
+
+ auto done = canvas_native_image_asset_load_from_raw(asset, buf);
+
+ canvas_native_u8_buffer_destroy(buf);
+
+ write(jsi_callback->fd_[1],
+ &done,
+ sizeof(bool));
+
+ }, std::move(asset));
+
thread.detach();
+
+#endif
+
+
+
+
+
+#ifdef __APPLE__
+
+ auto current_queue = new NSOperationQueueWrapper(true);
+
+ auto queue = new NSOperationQueueWrapper(false);
+
+ auto task = [&jsi_callback, ¤t_queue, &queue, &asset, &path, &buf]() {
+
+ auto done = canvas_native_image_asset_load_from_raw(asset, buf);
+
+ canvas_native_u8_buffer_destroy(buf);
+
+ delete asset;
+
+ auto main_task = [&jsi_callback, ¤t_queue, &queue, &url, &done]() {
+
+
+ v8::Isolate *isolate = jsi_callback->isolate_;
+ v8::Locker locker(isolate);
+ v8::Isolate::Scope isolate_scope(isolate);
+ v8::HandleScope handle_scope(isolate);
+ v8::Local callback = jsi_callback->callback_->Get(isolate);
+ v8::Local context = callback->GetCreationContextChecked();
+ v8::Context::Scope context_scope(context);
+
+ v8::Local args[1] = {v8::Boolean::New(isolate, done)};
+
+ // v8::TryCatch tc(isolate);
+
+ callback->Call(context, context->Global(), 1,
+ args); // ignore JS return value
+
+
+ delete jsi_callback;
+ delete queue;
+ delete current_queue;
+
+
+ };
+
+ };
+#endif
+
}
void ImageAssetImpl::SaveSync(const v8::FunctionCallbackInfo &args) {
@@ -470,15 +615,15 @@ void ImageAssetImpl::SaveSync(const v8::FunctionCallbackInfo &args) {
args.GetReturnValue().Set(false);
return;
}
-
+
auto isolate = args.GetIsolate();
auto context = isolate->GetCurrentContext();
auto path = ConvertFromV8String(isolate, args[0]);
auto format = (uint32_t) args[1]->NumberValue(context).ToChecked();
auto done = canvas_native_image_asset_save_path(
- ptr->GetImageAsset(),
- rust::Str(path.c_str()), format);
-
+ ptr->GetImageAsset(),
+ rust::Str(path.c_str()), format);
+
args.GetReturnValue().Set(done);
}
@@ -492,77 +637,132 @@ void ImageAssetImpl::SaveCb(const v8::FunctionCallbackInfo &args) {
if (args.Length() < 2) {
return;
}
-
-
+
+
auto path = ConvertFromV8String(isolate, args[0]);
-
+
auto format = (uint32_t) args[1]->NumberValue(context).ToChecked();
-
+
auto asset = canvas_native_image_asset_shared_clone(
- ptr->GetImageAsset());
-
+ ptr->GetImageAsset());
+
auto callback = args[1].As();
-
+
auto jsi_callback = new JSICallback(isolate, callback);
-
+
+
+#ifdef __ANDROID__
+
ALooper_addFd(jsi_callback->looper_,
jsi_callback->fd_[0],
ALOOPER_POLL_CALLBACK,
ALOOPER_EVENT_INPUT,
[](int fd, int events,
void *data) {
- auto cb = static_cast(data);
- bool done;
- read(fd, &done,
- sizeof(bool));
-
- v8::Isolate *isolate = cb->isolate_;
- v8::Locker locker(isolate);
- v8::Isolate::Scope isolate_scope(isolate);
- v8::HandleScope handle_scope(isolate);
- v8::Local callback = cb->callback_->Get(isolate);
- v8::Local context = callback->GetCreationContextChecked();
- v8::Context::Scope context_scope(context);
-
- v8::Local args[1] = {v8::Boolean::New(isolate, done)};
-
- // v8::TryCatch tc(isolate);
-
- callback->Call(context, context->Global(), 1,
- args); // ignore JS return value
-
- delete static_cast(data);
- return 0;
- }, jsi_callback);
-
+ auto cb = static_cast(data);
+ bool done;
+ read(fd, &done,
+ sizeof(bool));
+
+ v8::Isolate *isolate = cb->isolate_;
+ v8::Locker locker(isolate);
+ v8::Isolate::Scope isolate_scope(isolate);
+ v8::HandleScope handle_scope(isolate);
+ v8::Local callback = cb->callback_->Get(isolate);
+ v8::Local context = callback->GetCreationContextChecked();
+ v8::Context::Scope context_scope(context);
+
+ v8::Local args[1] = {v8::Boolean::New(isolate, done)};
+
+ // v8::TryCatch tc(isolate);
+
+ callback->Call(context, context->Global(), 1,
+ args); // ignore JS return value
+
+ delete static_cast(data);
+ return 0;
+ }, jsi_callback);
+
ALooper_wake(jsi_callback->looper_);
-
-
+
+
std::thread thread(
- [jsi_callback](
- const std::string &path,
- std::uint32_t format,
- rust::Box asset) {
-
- auto done = canvas_native_image_asset_save_path(
- *asset,
- rust::Str(
- path.c_str()),
- format);
-
-
- write(jsi_callback->fd_[1],
- &done,
- sizeof(bool));
-
- }, std::move(path), format,
- std::move(asset));
-
-
+ [jsi_callback](
+ const std::string &path,
+ std::uint32_t format,
+ ImageAsset * asset) {
+
+ auto done = canvas_native_image_asset_save_path(
+ *asset,
+ path.c_str(),
+ format);
+
+
+ write(jsi_callback->fd_[1],
+ &done,
+ sizeof(bool));
+
+ }, std::move(path), format,
+ std::move(asset));
+
+
thread.detach();
+
+#endif
+
+
+#ifdef __APPLE__
+
+ auto current_queue = new NSOperationQueueWrapper(true);
+
+ auto queue = new NSOperationQueueWrapper(false);
+
+ auto task = [&jsi_callback, ¤t_queue, &queue, &asset, &path, &format]() {
+
+ auto done = canvas_native_image_asset_save_path(
+ asset,
+ path.c_str()
+ format);
+
+ delete asset;
+
+ auto main_task = [&jsi_callback, ¤t_queue, &queue, &url, &done]() {
+
+
+ v8::Isolate *isolate = jsi_callback->isolate_;
+ v8::Locker locker(isolate);
+ v8::Isolate::Scope isolate_scope(isolate);
+ v8::HandleScope handle_scope(isolate);
+ v8::Local callback = jsi_callback->callback_->Get(isolate);
+ v8::Local context = callback->GetCreationContextChecked();
+ v8::Context::Scope context_scope(context);
+
+ v8::Local args[1] = {v8::Boolean::New(isolate, done)};
+
+ // v8::TryCatch tc(isolate);
+
+ callback->Call(context, context->Global(), 1,
+ args); // ignore JS return value
+
+
+ delete jsi_callback;
+ delete queue;
+ delete current_queue;
+
+
+ };
+
+ };
+#endif
+
+
}
ImageAsset &ImageAssetImpl::GetImageAsset() {
return *this->asset_;
}
+ImageAsset &ImageAssetImpl::GetImageAsset(): const {
+ return *this->asset_;
+}
+
diff --git a/packages/canvas/platforms/ios/src/cpp/ImageAssetImpl.h b/packages/canvas/platforms/ios/src/cpp/ImageAssetImpl.h
index dd5cb5cf3..f8eca050d 100644
--- a/packages/canvas/platforms/ios/src/cpp/ImageAssetImpl.h
+++ b/packages/canvas/platforms/ios/src/cpp/ImageAssetImpl.h
@@ -4,20 +4,19 @@
#pragma once
-#include "rust/cxx.h"
-#include "canvas-cxx/src/lib.rs.h"
#include
#include
#include
#include "Helpers.h"
-
-using namespace org::nativescript::canvas;
+#include "Common.h"
class ImageAssetImpl{
public:
- ImageAssetImpl(rust::Box asset);
+ ImageAssetImpl(ImageAsset* asset);
+
+ ~ImageAssetImpl();
- ImageAsset &GetImageAsset();
+ ImageAsset* GetImageAsset();
static void Init(v8::Local canvasModule, v8::Isolate *isolate);
@@ -56,5 +55,5 @@ class ImageAssetImpl{
private:
- rust::Box asset_;
+ ImageAsset* asset_;
};
diff --git a/packages/canvas/platforms/ios/src/cpp/ImageBitmapImpl.cpp b/packages/canvas/platforms/ios/src/cpp/ImageBitmapImpl.cpp
index 695ee457f..7f8352d1d 100644
--- a/packages/canvas/platforms/ios/src/cpp/ImageBitmapImpl.cpp
+++ b/packages/canvas/platforms/ios/src/cpp/ImageBitmapImpl.cpp
@@ -4,11 +4,14 @@
#include "ImageBitmapImpl.h"
#include "ImageAssetImpl.h"
-#include "rust/cxx.h"
#include "Caches.h"
-ImageBitmapImpl::ImageBitmapImpl(rust::Box asset)
- : bitmap_(std::move(asset)) {}
+ImageBitmapImpl::ImageBitmapImpl(ImageAsset* asset)
+ : bitmap_(asset) {}
+
+ImageBitmapImpl::~ImageBitmapImpl(){
+ canvas_native_image_asset_destroy(bitmap_);
+}
void ImageBitmapImpl::Init(v8::Local canvasModule, v8::Isolate *isolate) {
@@ -118,11 +121,11 @@ ImageBitmapImpl::HandleOptions(v8::Isolate *isolate, const v8::Local
auto premultiplyAlpha = ConvertFromV8String(isolate, premultiplyAlphaValue);
if (premultiplyAlpha == "premultiply") {
- ret.premultiplyAlpha = ImageBitmapPremultiplyAlpha::Premultiply;
+ ret.premultiplyAlpha = ImageBitmapPremultiplyAlphaPremultiply;
}
if (premultiplyAlpha == "none") {
- ret.premultiplyAlpha = ImageBitmapPremultiplyAlpha::None;
+ ret.premultiplyAlpha = ImageBitmapPremultiplyAlphaNone;
}
}
@@ -134,7 +137,7 @@ ImageBitmapImpl::HandleOptions(v8::Isolate *isolate, const v8::Local
auto colorSpaceConversion = ConvertFromV8String(isolate, colorSpaceConversionValue);
if (colorSpaceConversion == "none") {
- ret.colorSpaceConversion = ImageBitmapColorSpaceConversion::None;
+ ret.colorSpaceConversion = ImageBitmapColorSpaceConversionNone;
}
}
@@ -147,15 +150,15 @@ ImageBitmapImpl::HandleOptions(v8::Isolate *isolate, const v8::Local
auto resizeQuality = ConvertFromV8String(isolate, resizeQualityValue);
if (resizeQuality == "medium") {
- ret.resizeQuality = ImageBitmapResizeQuality::Medium;
+ ret.resizeQuality = ImageBitmapResizeQualityMedium;
}
if (resizeQuality == "high") {
- ret.resizeQuality = ImageBitmapResizeQuality::High;
+ ret.resizeQuality = ImageBitmapResizeQualityHigh;
}
if (resizeQuality == "pixelated") {
- ret.resizeQuality = ImageBitmapResizeQuality::Pixelated;
+ ret.resizeQuality = ImageBitmapResizeQualityPixelated;
}
}
@@ -181,6 +184,6 @@ ImageBitmapImpl::HandleOptions(v8::Isolate *isolate, const v8::Local
return ret;
}
-ImageAsset &ImageBitmapImpl::GetImageAsset() {
- return *this->bitmap_;
+ImageAsset* ImageBitmapImpl::GetImageAsset() {
+ return this->bitmap_;
}
diff --git a/packages/canvas/platforms/ios/src/cpp/ImageBitmapImpl.h b/packages/canvas/platforms/ios/src/cpp/ImageBitmapImpl.h
index aa2784fa0..16d383be9 100644
--- a/packages/canvas/platforms/ios/src/cpp/ImageBitmapImpl.h
+++ b/packages/canvas/platforms/ios/src/cpp/ImageBitmapImpl.h
@@ -4,11 +4,8 @@
#pragma once
-#include "rust/cxx.h"
-#include "canvas-cxx/src/lib.rs.h"
#include "Helpers.h"
#include
-using namespace org::nativescript::canvas;
struct Options {
bool flipY = false;
@@ -22,11 +19,12 @@ struct Options {
class ImageBitmapImpl {
public:
- ImageBitmapImpl(rust::Box asset);
+ ImageBitmapImpl(ImageAsset* asset);
+ ~ImageBitmapImpl();
static Options HandleOptions(v8::Isolate *isolate, const v8::Local &options);
- ImageAsset &GetImageAsset();
+ ImageAsset* GetImageAsset();
static void Init(v8::Local canvasModule, v8::Isolate *isolate);
@@ -43,6 +41,6 @@ class ImageBitmapImpl {
static void Close(const v8::FunctionCallbackInfo &args);
private:
- rust::Box bitmap_;
+ ImageAsset* bitmap_;
bool closed_ = false;
};
diff --git a/packages/canvas/platforms/ios/src/cpp/OneByteStringResource.cpp b/packages/canvas/platforms/ios/src/cpp/OneByteStringResource.cpp
index e28df6245..b616975c2 100644
--- a/packages/canvas/platforms/ios/src/cpp/OneByteStringResource.cpp
+++ b/packages/canvas/platforms/ios/src/cpp/OneByteStringResource.cpp
@@ -4,16 +4,20 @@
#include "OneByteStringResource.h"
-OneByteStringResource::OneByteStringResource(rust::String string) : string_(std::move(string)) {
+OneByteStringResource::OneByteStringResource(char* string) : string_(string),length_(strlen(string)) {
}
+OneByteStringResource::~OneByteStringResource() {
+ canvas_native_string_destroy(this->string_);
+}
+
const char *OneByteStringResource::data() const {
- return this->string_.data();
+ return this->string_;
}
size_t OneByteStringResource::length() const {
- return this->string_.size();
+ return this->length_;
}
diff --git a/packages/canvas/platforms/ios/src/cpp/OneByteStringResource.h b/packages/canvas/platforms/ios/src/cpp/OneByteStringResource.h
index cb02fe006..af30c6577 100644
--- a/packages/canvas/platforms/ios/src/cpp/OneByteStringResource.h
+++ b/packages/canvas/platforms/ios/src/cpp/OneByteStringResource.h
@@ -3,18 +3,19 @@
//
#pragma once
-#include "rust/cxx.h"
#include "Common.h"
-#include "canvas-cxx/src/lib.rs.h"
class OneByteStringResource : public v8::String::ExternalOneByteStringResource {
public:
- OneByteStringResource(rust::String string);
+ OneByteStringResource(char* string);
+
+ ~OneByteStringResource();
const char* data() const override;
size_t length() const override;
private:
- rust::String string_;
+ const char* string_;
+ size_t length_;
};
diff --git a/packages/canvas/platforms/ios/src/cpp/RafImpl.cpp b/packages/canvas/platforms/ios/src/cpp/RafImpl.cpp
index df7e263d5..d8ed75f76 100644
--- a/packages/canvas/platforms/ios/src/cpp/RafImpl.cpp
+++ b/packages/canvas/platforms/ios/src/cpp/RafImpl.cpp
@@ -3,8 +3,6 @@
//
#include "RafImpl.h"
-#include "rust/cxx.h"
-#include "canvas-cxx/src/lib.rs.h"
-RafImpl::RafImpl(OnRafCallback *rafCallback, intptr_t callback, rust::Box raf) : rafCallback_(
- rafCallback), callback_(callback), raf_(std::move(raf)) {}
+RafImpl::RafImpl(OnRafCallback *rafCallback, intptr_t callback, Raf* raf) : rafCallback_(
+ rafCallback), callback_(callback), raf_(raf) {}
diff --git a/packages/canvas/platforms/ios/src/cpp/RafImpl.h b/packages/canvas/platforms/ios/src/cpp/RafImpl.h
index d765bfcf2..1d65f4636 100644
--- a/packages/canvas/platforms/ios/src/cpp/RafImpl.h
+++ b/packages/canvas/platforms/ios/src/cpp/RafImpl.h
@@ -5,23 +5,25 @@
#pragma once
#pragma process_pending_includes
-#include "rust/cxx.h"
-#include "canvas-cxx/src/lib.rs.h"
#include
#include "OnRafCallback.h"
-
-using namespace org::nativescript::canvas;
+#include "Common.h"
class RafImpl {
public:
- RafImpl(OnRafCallback *rafCallback, intptr_t callback, rust::Box raf);
+ RafImpl(OnRafCallback *rafCallback, intptr_t callback, Raf* raf);
+
+ ~RafImpl(){
+ canvas_native_raf_destroy(this->GetRaf());
+ this->raf_ = nullptr;
+ }
- Raf &GetRaf() {
- return *this->raf_;
+ Raf *GetRaf() {
+ return this->raf_;
}
private:
OnRafCallback *rafCallback_;
intptr_t callback_;
- rust::Box raf_;
+ Raf* raf_;
};
diff --git a/packages/canvas/platforms/ios/src/cpp/TextDecoderImpl.cpp b/packages/canvas/platforms/ios/src/cpp/TextDecoderImpl.cpp
index 6df347397..cc0c70483 100644
--- a/packages/canvas/platforms/ios/src/cpp/TextDecoderImpl.cpp
+++ b/packages/canvas/platforms/ios/src/cpp/TextDecoderImpl.cpp
@@ -7,7 +7,7 @@
#include "Helpers.h"
#include "OneByteStringResource.h"
-TextDecoderImpl::TextDecoderImpl(rust::Box decoder) : decoder_(std::move(decoder)) {}
+TextDecoderImpl::TextDecoderImpl(TextDecoder* decoder) : decoder_(decoder) {}
void TextDecoderImpl::Init(const v8::Local &canvasModule, v8::Isolate *isolate) {
v8::Locker locker(isolate);
@@ -29,8 +29,8 @@ TextDecoderImpl *TextDecoderImpl::GetPointer(v8::Local object) {
return static_cast(ptr);
}
-TextDecoder &TextDecoderImpl::GetTextDecoder() {
- return *this->decoder_;
+TextDecoder* TextDecoderImpl::GetTextDecoder() {
+ return this->decoder_;
}
v8::Local TextDecoderImpl::GetCtor(v8::Isolate *isolate) {
@@ -74,12 +74,11 @@ void TextDecoderImpl::Ctor(const v8::FunctionCallbackInfo &args) {
if (count == 1) {
encoding = ConvertFromV8String(isolate, value);
}
- auto encoder = canvas_native_text_decoder_create(
- rust::Str(encoding.c_str()));
+ auto encoder = canvas_native_text_decoder_create(encoding.c_str());
auto ret = args.This();
- auto decoder = new TextDecoderImpl(std::move(encoder));
+ auto decoder = new TextDecoderImpl(encoder);
auto ext = v8::External::New(isolate, decoder);
@@ -96,7 +95,7 @@ TextDecoderImpl::Encoding(v8::Local name,
if (ptr != nullptr) {
auto isolate = info.GetIsolate();
auto encoding = canvas_native_text_decoder_get_encoding(ptr->GetTextDecoder());
- info.GetReturnValue().Set(ConvertToV8String(isolate, encoding.c_str()));
+ info.GetReturnValue().Set(ConvertToV8String(isolate, encoding));
return;
}
info.GetReturnValue().SetEmptyString();
@@ -130,14 +129,13 @@ void TextDecoderImpl::Decode(const v8::FunctionCallbackInfo &args) {
auto data = static_cast(buffer->GetBackingStore()->Data());
auto size = buffer->ByteLength();
- rust::Slice slice{
- data,
- size};
+ auto slice = canvas_native_u8_buffer_create_with_reference(data, size);
auto decoded = canvas_native_text_decoder_decode(
ptr->GetTextDecoder(),
slice);
+ canvas_u8_buffer_destroy(slice);
//args.GetReturnValue().Set(ConvertToV8String(isolate, decoded.c_str()));
- auto returnValue = new OneByteStringResource(std::move(decoded));
+ auto returnValue = new OneByteStringResource((char *)decoded);
auto ret = v8::String::NewExternalOneByte(isolate, returnValue);
args.GetReturnValue().Set(ret.ToLocalChecked());
@@ -152,17 +150,16 @@ void TextDecoderImpl::Decode(const v8::FunctionCallbackInfo &args) {
auto store = buffer->Buffer()->GetBackingStore();
auto buffer_data = static_cast(store->Data()) + buffer->ByteOffset();
auto len = buffer->Length();
-
- rust::Slice data{
- buffer_data,
- len};
+ auto data = canvas_native_u8_buffer_create_with_reference(buffer_data, len);
auto decoded = canvas_native_text_decoder_decode(
ptr->GetTextDecoder(),
data);
+
+ canvas_u8_buffer_destroy(data);
// args.GetReturnValue().Set(ConvertToV8String(isolate, decoded.c_str()));
- auto returnValue = new OneByteStringResource(std::move(decoded));
+ auto returnValue = new OneByteStringResource((char*) decoded);
auto ret = v8::String::NewExternalOneByte(isolate, returnValue);
args.GetReturnValue().Set(ret.ToLocalChecked());
return;
diff --git a/packages/canvas/platforms/ios/src/cpp/TextDecoderImpl.h b/packages/canvas/platforms/ios/src/cpp/TextDecoderImpl.h
index 9b07caae6..5476399be 100644
--- a/packages/canvas/platforms/ios/src/cpp/TextDecoderImpl.h
+++ b/packages/canvas/platforms/ios/src/cpp/TextDecoderImpl.h
@@ -3,19 +3,19 @@
//
#pragma once
-
-#include "rust/cxx.h"
-#include "canvas-cxx/src/lib.rs.h"
#include
#include "Common.h"
-using namespace org::nativescript::canvas;
-
class TextDecoderImpl {
public:
- TextDecoderImpl(rust::Box decoder);
+ TextDecoderImpl(TextDecoder* decoder);
+
+ ~TextDecoderImpl(){
+ canvas_native_text_decoder_destroy(this->GetTextDecoder());
+ this->decoder_ = nullptr;
+ }
- TextDecoder &GetTextDecoder();
+ TextDecoder* GetTextDecoder();
static void Init(const v8::Local& canvasModule, v8::Isolate *isolate);
@@ -30,5 +30,5 @@ class TextDecoderImpl {
static void Encoding(v8::Local name, const v8::PropertyCallbackInfo &info);
private:
- rust::Box decoder_;
+ TextDecoder* decoder_;
};
diff --git a/packages/canvas/platforms/ios/src/cpp/TextEncoderImpl.cpp b/packages/canvas/platforms/ios/src/cpp/TextEncoderImpl.cpp
index 6c4ff018c..383dd00a4 100644
--- a/packages/canvas/platforms/ios/src/cpp/TextEncoderImpl.cpp
+++ b/packages/canvas/platforms/ios/src/cpp/TextEncoderImpl.cpp
@@ -6,7 +6,7 @@
#include "Caches.h"
#include "Helpers.h"
-TextEncoderImpl::TextEncoderImpl(rust::Box encoder) : encoder_(std::move(encoder)) {}
+TextEncoderImpl::TextEncoderImpl(TextEncoder* encoder) : encoder_(encoder) {}
void TextEncoderImpl::Init(const v8::Local& canvasModule, v8::Isolate *isolate) {
v8::Locker locker(isolate);
@@ -72,8 +72,7 @@ void TextEncoderImpl::Ctor(const v8::FunctionCallbackInfo &args) {
if (count == 1) {
encoding = ConvertFromV8String(isolate, value);
}
- auto encoder = canvas_native_text_encoder_create(
- rust::Str(encoding.c_str()));
+ auto encoder = canvas_native_text_encoder_create(encoding.c_str());
auto ret = args.This();
@@ -111,22 +110,21 @@ void TextEncoderImpl::Encode(const v8::FunctionCallbackInfo &args) {
auto text = args[0];
- auto encoded = canvas_native_text_encoder_encode(
- ptr->GetTextEncoder(),
- rust::Str(ConvertFromV8String(isolate, text).c_str()));
-
- auto data = new VecBuffer(std::move(encoded));
-
+ auto encoded = canvas_native_text_encoder_encode(ptr->GetTextEncoder(), ConvertFromV8String(isolate, text).c_str());
+
+ auto data = canvas_u8_buffer_get_bytes(encoded);
+
+ auto length = canvas_u8_buffer_get_length(encoded);
auto length = data->size();
- auto store = v8::ArrayBuffer::NewBackingStore(data->data(), length,
+ auto store = v8::ArrayBuffer::NewBackingStore(data, length,
[](void *data, size_t length,
void *deleter_data) {
if (deleter_data != nullptr) {
- delete (VecBuffer *) deleter_data;
+ delete (U8Buffer *) encoded;
}
},
- data);
+ encoded);
auto buf = v8::ArrayBuffer::New(isolate, std::move(store));
auto ret = v8::Uint8ClampedArray::New(buf, 0, length);
@@ -135,6 +133,6 @@ void TextEncoderImpl::Encode(const v8::FunctionCallbackInfo &args) {
args.GetReturnValue().Set(ret);
}
-TextEncoder &TextEncoderImpl::GetTextEncoder() {
- return *this->encoder_;
+TextEncoder* TextEncoderImpl::GetTextEncoder() {
+ return this->encoder_;
}
diff --git a/packages/canvas/platforms/ios/src/cpp/TextEncoderImpl.h b/packages/canvas/platforms/ios/src/cpp/TextEncoderImpl.h
index c0f96253f..cfe7247fd 100644
--- a/packages/canvas/platforms/ios/src/cpp/TextEncoderImpl.h
+++ b/packages/canvas/platforms/ios/src/cpp/TextEncoderImpl.h
@@ -4,20 +4,21 @@
#pragma once
-#include "rust/cxx.h"
-#include "canvas-cxx/src/lib.rs.h"
#include "VecMutableBuffer.h"
#include
#include "Common.h"
-using namespace org::nativescript::canvas;
class TextEncoderImpl {
public:
- TextEncoderImpl(rust::Box encoder);
+ TextEncoderImpl(TextEncoder* encoder);
+ ~TextEncoderImpl() {
+ canvas_native_text_encoder_destroy(this->GetTextEncoder());
+ this->encoder_ = nullptr;
+ }
- TextEncoder &GetTextEncoder();
+ TextEncoder* GetTextEncoder();
static void Init(const v8::Local& canvasModule, v8::Isolate *isolate);
@@ -33,5 +34,5 @@ class TextEncoderImpl {
Encoding(v8::Local name, const v8::PropertyCallbackInfo