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 &info); private: - rust::Box encoder_; + TextEncoder* encoder_; }; diff --git a/packages/canvas/platforms/ios/src/cpp/VecMutableBuffer.h b/packages/canvas/platforms/ios/src/cpp/VecMutableBuffer.h deleted file mode 100644 index 097c17884..000000000 --- a/packages/canvas/platforms/ios/src/cpp/VecMutableBuffer.h +++ /dev/null @@ -1,48 +0,0 @@ -// -// Created by Osei Fortune on 28/02/2023. -// - -#ifndef CANVAS_ANDROID_VECMUTABLEBUFFER_H -#define CANVAS_ANDROID_VECMUTABLEBUFFER_H - -#include "rust/cxx.h" -#include "canvas-cxx/src/lib.rs.h" - - -template -struct VecMutableBuffer{ -public: - VecMutableBuffer(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_; - } - - ~VecMutableBuffer() { - this->buf_ = nullptr; - } - -private: - T *buf_; - size_t size_; - size_t buffer_size_; - rust::Vec vec_; -}; - -#endif //CANVAS_ANDROID_VECMUTABLEBUFFER_H diff --git a/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasGradient.cpp b/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasGradient.cpp index 5f55baf0d..cbaffd21a 100644 --- a/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasGradient.cpp +++ b/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasGradient.cpp @@ -6,7 +6,7 @@ #include "Helpers.h" #include "Caches.h" -CanvasGradient::CanvasGradient(rust::Box style) : style_(std::move(style)) {} +CanvasGradient::CanvasGradient(PaintStyle* style) : style_(style) {} void CanvasGradient::Init(v8::Local canvasModule, v8::Isolate *isolate) { v8::Locker locker(isolate); @@ -53,7 +53,6 @@ v8::Local CanvasGradient::GetCtor(v8::Isolate *isolate) { void CanvasGradient::AddColorStop(const v8::FunctionCallbackInfo &args) { CanvasGradient *ptr = GetPointer(args.This()); if (ptr == nullptr) { - args.GetReturnValue().SetUndefined(); return; } @@ -63,13 +62,10 @@ void CanvasGradient::AddColorStop(const v8::FunctionCallbackInfo &arg auto stop = (float) args[0]->NumberValue(context).ToChecked(); auto color = ConvertFromV8String(isolate, args[1]); canvas_native_gradient_add_color_stop( - ptr->GetPaintStyle(), stop, - rust::Str(color.c_str())); - - args.GetReturnValue().SetUndefined(); + ptr->GetPaintStyle(), stop, color.c_str()); } -PaintStyle &CanvasGradient::GetPaintStyle() { - return *this->style_; +PaintStyle *CanvasGradient::GetPaintStyle() { + return this->style_; } diff --git a/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasGradient.h b/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasGradient.h index ec4c7d790..331b5a112 100644 --- a/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +++ b/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasGradient.h @@ -3,20 +3,19 @@ // #pragma once - -#include "rust/cxx.h" -#include "canvas-cxx/src/lib.rs.h" #include #include "Common.h" #include "Helpers.h" - -using namespace ::org::nativescript::canvas; - class CanvasGradient { public: - CanvasGradient(rust::Box style); + CanvasGradient(PaintStyle*style); + + ~CanvasGradient(){ + canvas_native_paint_style_destroy(this->GetPaintStyle()); + this->style_ = nullptr; + } - PaintStyle &GetPaintStyle(); + PaintStyle * GetPaintStyle(); static void Init(v8::Local canvasModule, v8::Isolate *isolate); @@ -38,6 +37,6 @@ class CanvasGradient { static void AddColorStop(const v8::FunctionCallbackInfo &args); private: - rust::Box style_; + PaintStyle* style_; }; diff --git a/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp b/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp index 6494c47bc..ed27ef91e 100644 --- a/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp +++ b/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp @@ -7,7 +7,7 @@ #include "Helpers.h" #include "Caches.h" -CanvasPattern::CanvasPattern(rust::Box style) : style_(std::move(style)) {} +CanvasPattern::CanvasPattern(PaintStyle* style) : style_(style) {} void CanvasPattern::Init(const v8::Local &canvasModule, v8::Isolate *isolate) { v8::Locker locker(isolate); @@ -65,7 +65,6 @@ v8::Local CanvasPattern::GetCtor(v8::Isolate *isolate) { void CanvasPattern::SetTransform(const v8::FunctionCallbackInfo &args) { CanvasPattern *ptr = GetPointer(args.This()); if (ptr == nullptr) { - args.GetReturnValue().SetUndefined(); return; } @@ -84,10 +83,8 @@ void CanvasPattern::SetTransform(const v8::FunctionCallbackInfo &args } } - - args.GetReturnValue().SetUndefined(); } -PaintStyle &CanvasPattern::GetPaintStyle() { - return *this->style_; +PaintStyle* CanvasPattern::GetPaintStyle() { + return this->style_; } diff --git a/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasPattern.h b/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasPattern.h index 816b74907..acdf4088b 100644 --- a/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +++ b/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasPattern.h @@ -3,19 +3,19 @@ // #pragma once - -#include "rust/cxx.h" -#include "canvas-cxx/src/lib.rs.h" #include "MatrixImpl.h" #include -using namespace org::nativescript::canvas; - class CanvasPattern { public: - CanvasPattern(rust::Box style); + CanvasPattern(PaintStyle* style); + + ~CanvasPattern() { + canvas_native_paint_style_destroy(this->GetPaintStyle()); + this->style_ = nullptr; + } - PaintStyle &GetPaintStyle(); + PaintStyle* GetPaintStyle(); static void Init(const v8::Local &canvasModule, v8::Isolate *isolate); @@ -37,6 +37,6 @@ class CanvasPattern { static void SetTransform(const v8::FunctionCallbackInfo &args); private: - rust::Box style_; + PaintStyle* style_; }; diff --git a/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp b/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp index 94f770ffd..ff8d7740b 100644 --- a/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +++ b/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp @@ -7,14 +7,16 @@ #include "OneByteStringResource.h" CanvasRenderingContext2DImpl::CanvasRenderingContext2DImpl( - rust::Box context) : context_( - std::move(context)) { + CanvasRenderingContext2D* context) : context_(context) { auto ctx_ptr = reinterpret_cast(reinterpret_cast(this)); auto raf_callback = new OnRafCallback(ctx_ptr, 0); auto raf_callback_ptr = reinterpret_cast(reinterpret_cast(raf_callback)); - auto raf = canvas_native_raf_create(raf_callback_ptr); - this->SetRaf(std::make_shared(raf_callback, raf_callback_ptr, std::move(raf))); + auto raf = canvas_native_raf_create(raf_callback_ptr, [](intptr_t callback, int64_t ts){ + OnRafCallbackOnFrame(callback, ts); + }); + + this->SetRaf(std::make_shared(raf_callback, raf_callback_ptr, raf)); auto _raf = this->GetRaf(); @@ -208,7 +210,7 @@ void CanvasRenderingContext2DImpl::DrawPoint(const v8::FunctionCallbackInfoNumberValue(context).ToChecked(); auto y = (float) args[1]->NumberValue(context).ToChecked(); - + canvas_native_context_draw_point( ptr->GetContext(), x, y); ptr->UpdateInvalidateState(); @@ -241,7 +243,7 @@ void CanvasRenderingContext2DImpl::DrawPoints(const v8::FunctionCallbackInfo store; + std::vector store; store.reserve(size); size_t next = 0; for (size_t i = 0; i < size; i++) { @@ -261,13 +263,15 @@ void CanvasRenderingContext2DImpl::DrawPoints(const v8::FunctionCallbackInfo buf( - store.data(), - store.size()); - + auto buf = canvas_native_f32_buffer_create_with_reference(store.data(), + store.size()); + canvas_native_context_draw_points( ptr->GetContext(), pointMode, buf); + + canvas_native_f32_buffer_destroy(buf); + ptr->UpdateInvalidateState(); } } @@ -283,8 +287,7 @@ void CanvasRenderingContext2DImpl::DrawPaint(const v8::FunctionCallbackInfoGetContext(), - rust::Str(color)); + ptr->GetContext(), color.c_str()); ptr->UpdateInvalidateState(); } diff --git a/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h b/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h index cd0574dc0..b72ed6491 100644 --- a/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h @@ -5,7 +5,6 @@ #pragma once #pragma process_pending_includes -#include "rust/cxx.h" #include #include #include @@ -13,7 +12,6 @@ #include "RafImpl.h" #include "OnRafCallback.h" -#include "canvas-cxx/src/lib.rs.h" #include "Helpers.h" #include "CanvasGradient.h" @@ -26,11 +24,9 @@ #include "webgl/WebGLRenderingContextBase.h" #include "Helpers.h" -using namespace org::nativescript::canvas; - class CanvasRenderingContext2DImpl { public: - CanvasRenderingContext2DImpl(rust::Box context); + CanvasRenderingContext2DImpl(CanvasRenderingContext2D* context); static void Init(v8::Local canvasModule, v8::Isolate *isolate); @@ -311,10 +307,10 @@ class CanvasRenderingContext2DImpl { RafImpl *GetRaf(); - CanvasRenderingContext2D &GetContext(); + CanvasRenderingContext2D* GetContext(); private: - rust::Box context_; + CanvasRenderingContext2D* context_; int invalidateState_ = static_cast(InvalidateState::NONE); diff --git a/packages/canvas/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h b/packages/canvas/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h index 7ff948586..899e3f674 100644 --- a/packages/canvas/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h @@ -4,16 +4,18 @@ #pragma once -#include "rust/cxx.h" -#include "canvas-cxx/src/lib.rs.h" #include #include "Common.h" -using namespace org::nativescript::canvas; class ImageDataImpl { public: - ImageDataImpl(rust::Box imageData); + ImageDataImpl(ImageData* imageData); + + ~ImageDataImpl(){ + canvas_native_image_data_destroy(this->GetImageData()); + this->imageData_ = nullptr; + } static void Init(v8::Local canvasModule, v8::Isolate *isolate); @@ -32,10 +34,10 @@ class ImageDataImpl { static void GetData(v8::Local name, const v8::PropertyCallbackInfo &info); - ImageData &GetImageData() { - return *this->imageData_; + ImageData* GetImageData() { + return this->imageData_; } private: - rust::Box imageData_; + ImageData* imageData_; }; diff --git a/packages/canvas/platforms/ios/src/cpp/canvas2d/MatrixImpl.cpp b/packages/canvas/platforms/ios/src/cpp/canvas2d/MatrixImpl.cpp index 97d218170..413b914cf 100644 --- a/packages/canvas/platforms/ios/src/cpp/canvas2d/MatrixImpl.cpp +++ b/packages/canvas/platforms/ios/src/cpp/canvas2d/MatrixImpl.cpp @@ -5,7 +5,7 @@ #include "MatrixImpl.h" #include "Caches.h" -MatrixImpl::MatrixImpl(rust::Box matrix) : matrix_(std::move(matrix)) {} +MatrixImpl::MatrixImpl(Matrix* matrix) : matrix_(matrix) {} void MatrixImpl::Init(v8::Local canvasModule, v8::Isolate *isolate) { v8::Locker locker(isolate); @@ -202,18 +202,17 @@ void MatrixImpl::Ctor(const v8::FunctionCallbackInfo &args) { if (size == 6) { auto matrix = canvas_native_matrix_create(); - rust::Vec buf; - buf.reserve(size); + std::array buf{}; for (int i = 0; i < size; i++) { auto item = array->Get(context, i).ToLocalChecked()->NumberValue( context).ToChecked(); - buf.emplace_back((float) item); + buf[i] = (float) item; } - rust::Slice slice(buf.data(), buf.size()); - - canvas_native_matrix_update(*matrix, slice); + auto slice = canvas_native_f32_buffer_mut_create_with_reference(buf.data(), buf.size()); + + canvas_native_matrix_update(matrix, slice); - auto object = new MatrixImpl(std::move(matrix)); + auto object = new MatrixImpl(matrix); auto ext = v8::External::New(isolate, object); @@ -233,7 +232,9 @@ void MatrixImpl::Ctor(const v8::FunctionCallbackInfo &args) { context).ToChecked(); buf[i] = (float) item; } - canvas_native_matrix_update_3d(*matrix, buf); + auto slice = canvas_native_f32_buffer_mut_create_with_reference(buf.data(), buf.size()); + + canvas_native_matrix_update_3d(matrix, slice); auto object = new MatrixImpl(std::move(matrix)); @@ -248,7 +249,7 @@ void MatrixImpl::Ctor(const v8::FunctionCallbackInfo &args) { } } else { auto matrix = canvas_native_matrix_create(); - auto object = new MatrixImpl(std::move(matrix)); + auto object = new MatrixImpl(matrix); auto ext = v8::External::New(isolate, object); diff --git a/packages/canvas/platforms/ios/src/cpp/canvas2d/MatrixImpl.h b/packages/canvas/platforms/ios/src/cpp/canvas2d/MatrixImpl.h index 38c8918f6..c183493ce 100644 --- a/packages/canvas/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/canvas2d/MatrixImpl.h @@ -4,18 +4,18 @@ #pragma once -#include "rust/cxx.h" -#include "canvas-cxx/src/lib.rs.h" #include #include "Helpers.h" -using namespace org::nativescript::canvas; - class MatrixImpl { public: - MatrixImpl(rust::Box matrix); + MatrixImpl(Matrix* matrix); + ~MatrixImpl(){ + canvas_native_matrix_destroy(this->GetMatrix()); + this->matrix_ = nullptr; + } - Matrix &GetMatrix(); + Matrix* GetMatrix(); static void Init(v8::Local canvasModule, v8::Isolate *isolate); @@ -184,5 +184,5 @@ class MatrixImpl { const v8::PropertyCallbackInfo &info); private: - rust::Box matrix_; + Matrix* matrix_; }; diff --git a/packages/canvas/platforms/ios/src/cpp/canvas2d/Path2D.cpp b/packages/canvas/platforms/ios/src/cpp/canvas2d/Path2D.cpp index 9853527c3..1a1813195 100644 --- a/packages/canvas/platforms/ios/src/cpp/canvas2d/Path2D.cpp +++ b/packages/canvas/platforms/ios/src/cpp/canvas2d/Path2D.cpp @@ -7,8 +7,8 @@ #include "Helpers.h" #include "OneByteStringResource.h" -Path2D::Path2D(rust::Box path) - : path_(std::move(path)) {} +Path2D::Path2D(Path* path) + : path_(path) {} void Path2D::Init(v8::Local canvasModule, v8::Isolate *isolate) { @@ -117,8 +117,7 @@ void Path2D::Ctor(const v8::FunctionCallbackInfo &args) { if (count > 0) { if (value->IsString()) { auto d = ConvertFromV8String(isolate, value); - auto path = canvas_native_path_create_with_str( - rust::Str(d.c_str())); + auto path = canvas_native_path_create_with_string(d.c_str()); auto object = new Path2D(std::move(path)); auto ext = v8::External::New(isolate, object); @@ -134,7 +133,7 @@ void Path2D::Ctor(const v8::FunctionCallbackInfo &args) { if (path_to_copy != nullptr) { auto path = canvas_native_path_create_with_path( path_to_copy->GetPath()); - auto object = new Path2D(std::move(path)); + auto object = new Path2D(path); auto ext = v8::External::New(isolate, object); @@ -145,7 +144,7 @@ void Path2D::Ctor(const v8::FunctionCallbackInfo &args) { } } } else { - auto path = new Path2D(std::move(canvas_native_path_create())); + auto path = new Path2D(canvas_native_path_create()); auto ext = v8::External::New(isolate, path); @@ -260,14 +259,11 @@ void Path2D::ClosePath(const v8::FunctionCallbackInfo &args) { } canvas_native_path_close_path(ptr->GetPath()); - - args.GetReturnValue().SetUndefined(); } void Path2D::Ellipse(const v8::FunctionCallbackInfo &args) { Path2D *ptr = GetPointer(args.This()); if (ptr == nullptr) { - args.GetReturnValue().SetUndefined(); return; } @@ -299,7 +295,6 @@ void Path2D::Ellipse(const v8::FunctionCallbackInfo &args) { void Path2D::LineTo(const v8::FunctionCallbackInfo &args) { Path2D *ptr = GetPointer(args.This()); if (ptr == nullptr) { - args.GetReturnValue().SetUndefined(); return; } @@ -318,7 +313,6 @@ void Path2D::LineTo(const v8::FunctionCallbackInfo &args) { void Path2D::MoveTo(const v8::FunctionCallbackInfo &args) { Path2D *ptr = GetPointer(args.This()); if (ptr == nullptr) { - args.GetReturnValue().SetUndefined(); return; } @@ -337,7 +331,6 @@ void Path2D::MoveTo(const v8::FunctionCallbackInfo &args) { void Path2D::QuadraticCurveTo(const v8::FunctionCallbackInfo &args) { Path2D *ptr = GetPointer(args.This()); if (ptr == nullptr) { - args.GetReturnValue().SetUndefined(); return; } @@ -359,7 +352,6 @@ void Path2D::QuadraticCurveTo(const v8::FunctionCallbackInfo &args) { void Path2D::Rect(const v8::FunctionCallbackInfo &args) { Path2D *ptr = GetPointer(args.This()); if (ptr == nullptr) { - args.GetReturnValue().SetUndefined(); return; } @@ -381,7 +373,6 @@ void Path2D::Rect(const v8::FunctionCallbackInfo &args) { void Path2D::RoundRect(const v8::FunctionCallbackInfo &args) { Path2D *ptr = GetPointer(args.This()); if (ptr == nullptr) { - args.GetReturnValue().SetUndefined(); return; } @@ -402,7 +393,7 @@ void Path2D::RoundRect(const v8::FunctionCallbackInfo &args) { auto size = array->Length(); if (size > 1) { - rust::Vec store; + std::vector store; store.reserve(size); for (int i = 0; i < size; i++) { @@ -410,14 +401,15 @@ void Path2D::RoundRect(const v8::FunctionCallbackInfo &args) { context).ToChecked(); } - rust::Slice buf( - store.data(), - store.size()); + auto buf = canvas_native_f32_buffer_create_with_reference(store.data(), + store.size()); canvas_native_path_round_rect( ptr->GetPath(), x, y, width, height, buf); + + canvas_native_f32_buffer_destroy(buf); } } @@ -449,13 +441,12 @@ void Path2D::__toSVG(const v8::FunctionCallbackInfo &args) { // args.GetReturnValue().Set(ConvertToV8String(isolate, d.c_str())); - - auto value = new OneByteStringResource(std::move(d)); + auto value = new OneByteStringResource((char *)d); auto ret = v8::String::NewExternalOneByte(isolate, value); args.GetReturnValue().Set(ret.ToLocalChecked()); } -Path &Path2D::GetPath() { - return *this->path_; +Path* Path2D::GetPath() { + return this->path_; } diff --git a/packages/canvas/platforms/ios/src/cpp/canvas2d/Path2D.h b/packages/canvas/platforms/ios/src/cpp/canvas2d/Path2D.h index aec6d4ec5..8d01f2274 100644 --- a/packages/canvas/platforms/ios/src/cpp/canvas2d/Path2D.h +++ b/packages/canvas/platforms/ios/src/cpp/canvas2d/Path2D.h @@ -4,19 +4,20 @@ #pragma once -#include "rust/cxx.h" -#include "canvas-cxx/src/lib.rs.h" +#include "Common.h" #include "Helpers.h" #include "v8-fast-api-calls.h" #include -using namespace org::nativescript::canvas; - class Path2D { public: - Path2D(rust::Box path); + Path2D(Path* path); + ~Path2D(){ + canvas_native_path_destroy(this->GetPath()); + this->path_ = nullptr; + } - Path &GetPath(); + Path* GetPath(); static void Init(v8::Local canvasModule, v8::Isolate *isolate); @@ -52,5 +53,5 @@ class Path2D { private: - rust::Box path_; + Path* path_; }; diff --git a/packages/canvas/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.cpp b/packages/canvas/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.cpp index b9862579a..a76d04a65 100644 --- a/packages/canvas/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.cpp +++ b/packages/canvas/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.cpp @@ -3,10 +3,9 @@ // #include "TextMetricsImpl.h" -#include "canvas-cxx/src/lib.rs.h" #include "Caches.h" -TextMetricsImpl::TextMetricsImpl(rust::Box metrics) : metrics_(std::move(metrics)) {} +TextMetricsImpl::TextMetricsImpl(TextMetrics* metrics) : metrics_(metrics) {} void TextMetricsImpl::Init(v8::Local canvasModule, v8::Isolate *isolate) { v8::Locker locker(isolate); @@ -249,6 +248,6 @@ void TextMetricsImpl::GetIdeographicBaseline(v8::Local property, (double) canvas_native_text_metrics_get_ideographic_baseline(ptr->GetTextMetrics())); } -TextMetrics &TextMetricsImpl::GetTextMetrics() { - return *this->metrics_; +TextMetrics* TextMetricsImpl::GetTextMetrics() { + return this->metrics_; } diff --git a/packages/canvas/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h b/packages/canvas/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h index b3c9b65f7..c19aa1042 100644 --- a/packages/canvas/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h @@ -4,18 +4,19 @@ #pragma once -#include "../rust/cxx.h" -#include "canvas-cxx/src/lib.rs.h" #include #include "Helpers.h" -using namespace org::nativescript::canvas; - class TextMetricsImpl { public: - TextMetricsImpl(rust::Box metrics); + TextMetricsImpl(TextMetrics* metrics); + + ~TextMetricsImpl(){ + canvas_native_text_metrics_destroy(this->GetTextMetrics()); + this->metrics_ = nullptr; + } - TextMetrics &GetTextMetrics(); + TextMetrics* GetTextMetrics(); static void Init(v8::Local canvasModule, v8::Isolate *isolate); @@ -61,6 +62,6 @@ class TextMetricsImpl { const v8::PropertyCallbackInfo &info); private: - rust::Box metrics_; + TextMetrics* metrics_; }; diff --git a/packages/canvas/platforms/ios/src/cpp/gl.h b/packages/canvas/platforms/ios/src/cpp/gl.h index 9023c2dd6..c94274fa8 100644 --- a/packages/canvas/platforms/ios/src/cpp/gl.h +++ b/packages/canvas/platforms/ios/src/cpp/gl.h @@ -4,14 +4,11 @@ #pragma once -#include "canvas-cxx/src/lib.rs.h" #ifdef __ANDROID__ - #include #include #include "gles3jni.h" - #endif #ifdef __APPLE__ diff --git a/packages/canvas/platforms/ios/src/cpp/gl3stub.c b/packages/canvas/platforms/ios/src/cpp/gl3stub.c index a7e326018..b0eb63bbf 100644 --- a/packages/canvas/platforms/ios/src/cpp/gl3stub.c +++ b/packages/canvas/platforms/ios/src/cpp/gl3stub.c @@ -14,6 +14,8 @@ * limitations under the License. */ +#ifdef __ANDROID__ + #include "gl3stub.h" #include @@ -419,4 +421,5 @@ GL_APICALL void (*GL_APIENTRY glGetInternalformativ)(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, -GLint* params); \ No newline at end of file +GLint* params); +#endif diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.cpp b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.cpp index 03a9002f9..e8ecf48dd 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.cpp +++ b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.cpp @@ -6,8 +6,7 @@ #include "Caches.h" #include "Helpers.h" -WebGLActiveInfoImpl::WebGLActiveInfoImpl(rust::Box info) : info_( - std::move(info)) {} +WebGLActiveInfoImpl::WebGLActiveInfoImpl(WebGLActiveInfo* info) : info_(info) {} WebGLActiveInfoImpl *WebGLActiveInfoImpl::GetPointer(const v8::Local &object) { auto ptr = object->GetInternalField(0).As()->Value(); @@ -87,7 +86,7 @@ WebGLActiveInfoImpl::GetType(v8::Local name, } -WebGLActiveInfo &WebGLActiveInfoImpl::GetWebGLActiveInfo() { - return *this->info_; +WebGLActiveInfo* WebGLActiveInfoImpl::GetWebGLActiveInfo() { + return this->info_; } diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h index 0d269ae56..406a3ba13 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h @@ -3,20 +3,15 @@ // #pragma once - -#include "../rust/cxx.h" -#include "canvas-cxx/src/lib.rs.h" #include "Common.h" #include "Helpers.h" #include -using namespace org::nativescript::canvas; - class WebGLActiveInfoImpl { public: - WebGLActiveInfoImpl(rust::Box info); + WebGLActiveInfoImpl(WebGLActiveInfo* info); - WebGLActiveInfo &GetWebGLActiveInfo(); + WebGLActiveInfo* GetWebGLActiveInfo(); static WebGLActiveInfoImpl *GetPointer(const v8::Local &object); @@ -43,6 +38,6 @@ class WebGLActiveInfoImpl { GetType(v8::Local name, const v8::PropertyCallbackInfo &info); private: - rust::Box info_; + WebGLActiveInfo* info_; }; diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLBuffer.h b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLBuffer.h index e6b602bc3..6077f4364 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLBuffer.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLBuffer.h @@ -4,8 +4,6 @@ #pragma once -#include "../rust/cxx.h" -#include "canvas-cxx/src/lib.rs.h" #include "Common.h" #include "Caches.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h index 3469de237..0bdc97145 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h @@ -4,8 +4,6 @@ #pragma once -#include "../rust/cxx.h" -#include "canvas-cxx/src/lib.rs.h" #include "Helpers.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLProgram.h b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLProgram.h index a4938e445..36279b435 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLProgram.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLProgram.h @@ -4,8 +4,6 @@ #pragma -#include "../rust/cxx.h" -#include "canvas-cxx/src/lib.rs.h" #include "Common.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h index 9a03a27b8..aa29749fb 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h @@ -4,8 +4,6 @@ #pragma once -#include "../rust/cxx.h" -#include "canvas-cxx/src/lib.rs.h" #include "Helpers.h" class WebGLRenderbuffer { diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp index bc2d757e1..c2e825c2b 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +++ b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp @@ -5,15 +5,15 @@ #include "WebGLRenderingContext.h" #include "OneByteStringResource.h" -WebGLRenderingContext::WebGLRenderingContext(rust::Box state) +WebGLRenderingContext::WebGLRenderingContext(WebGLState* state) : WebGLRenderingContextBase( std::move(state), WebGLRenderingVersion::V1) { } -WebGLRenderingContext::WebGLRenderingContext(rust::Box state, +WebGLRenderingContext::WebGLRenderingContext(WebGLState* state, WebGLRenderingVersion version) - : WebGLRenderingContextBase(std::move(state), version) { + : WebGLRenderingContextBase(state, version) { } @@ -52,7 +52,7 @@ WebGLRenderingContext *WebGLRenderingContext::GetPointer(const v8::Local WebGLRenderingContext::GetParameterInternal(v8::Isolate *isolate, uint32_t pnameValue, - rust::Box result) { + WebGLResult* result) { auto context = isolate->GetCurrentContext(); v8::EscapableHandleScope scope(isolate); @@ -113,7 +113,7 @@ v8::Local WebGLRenderingContext::GetParameterInternal(v8::Isolate *is case GL_TEXTURE_BINDING_2D: case GL_TEXTURE_BINDING_CUBE_MAP: case GL_UNPACK_ALIGNMENT: { - auto value = canvas_native_webgl_result_get_i32(*result); + auto value = canvas_native_webgl_result_get_i32(result); if ((pnameValue == GL_CURRENT_PROGRAM || pnameValue == GL_ARRAY_BUFFER_BINDING || pnameValue == GL_ELEMENT_ARRAY_BUFFER_BINDING || pnameValue == GL_TEXTURE_BINDING_2D || diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h index 742a73e34..971f7b635 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h @@ -6,9 +6,7 @@ #pragma process_pending_includes #include -#include "../rust/cxx.h" -#include "canvas-cxx/src/lib.rs.h" -#include "VecMutableBuffer.h" +#include "Common.h" #include "WebGLRenderingContextBase.h" @@ -58,14 +56,12 @@ #include "extensions/OES_fbo_render_mipmap.h" #include "gl.h" -using namespace org::nativescript::canvas; - class WebGLRenderingContext : public WebGLRenderingContextBase { public: - WebGLRenderingContext(rust::Box state); + WebGLRenderingContext(WebGLState* state); - WebGLRenderingContext(rust::Box state, WebGLRenderingVersion version); + WebGLRenderingContext(WebGLState* state, WebGLRenderingVersion version); static v8::Local GetCtor(v8::Isolate *isolate); @@ -94,7 +90,7 @@ class WebGLRenderingContext : public WebGLRenderingContextBase { v8::Local GetParameterInternal(v8::Isolate *isolate, uint32_t pnameValue, - rust::Box result); + WebGLResult* result); static void GetDrawingBufferWidth(v8::Local name, const v8::PropertyCallbackInfo &info); diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.cpp b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.cpp index a23a4136f..844affcdb 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.cpp +++ b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.cpp @@ -4,9 +4,9 @@ #include "WebGLRenderingContextBase.h" -WebGLRenderingContextBase::WebGLRenderingContextBase(rust::Box state, +WebGLRenderingContextBase::WebGLRenderingContextBase(WebGLState* state, WebGLRenderingVersion version) - : state_(std::move(state)), version_(version) { + : state_(state), version_(version) { auto ctx_ptr = reinterpret_cast(reinterpret_cast(this)); @@ -60,16 +60,16 @@ void WebGLRenderingContextBase::UpdateInvalidateState() { } } auto state = this->GetInvalidateState(); - this->SetInvalidateState(state | (int) InvalidateState::PENDING); + this->SetInvalidateState(state | (int) InvalidateState::InvalidateStatePending); } void WebGLRenderingContextBase::Flush() { - auto state = this->GetInvalidateState() & (int) InvalidateState::PENDING; - if (state == (int) InvalidateState::PENDING) { - this->SetInvalidateState((int) InvalidateState::INVALIDATING); + auto state = this->GetInvalidateState() & (int) InvalidateState::InvalidateStatePending; + if (state == (int) InvalidateState::InvalidateStatePending) { + this->SetInvalidateState((int) InvalidateState::InvalidateStateInvalidating); canvas_native_webgl_make_current(this->GetState()); canvas_native_webgl_swap_buffers(this->GetState()); - this->SetInvalidateState((int) InvalidateState::NONE); + this->SetInvalidateState((int) InvalidateState::InvalidateStateNone); } } @@ -80,8 +80,8 @@ void WebGLRenderingContextBase::Flush(intptr_t context) { } } -WebGLState &WebGLRenderingContextBase::GetState() { - return *this->state_; +WebGLState* WebGLRenderingContextBase::GetState() { + return this->state_; } void WebGLRenderingContextBase::SetRaf(std::shared_ptr raf) { @@ -115,4 +115,8 @@ WebGLRenderingContextBase::~WebGLRenderingContextBase() { canvas_native_raf_stop( _raf->GetRaf()); } + canvas_native_raf_destroy(_raf->GetRaf()); + this->raf_ = nullptr; + canvas_native_webgl_state_destroy(this->GetState()); + this->state_ = nullptr; } diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h index 6e9d4e053..208b9d14d 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h @@ -5,25 +5,23 @@ #pragma once #pragma process_pending_includes -#include "../rust/cxx.h" #include #include #include -#include "canvas-cxx/src/lib.rs.h" #include "Helpers.h" #include "RafImpl.h" #include "OnRafCallback.h" +#include "Common.h" enum class WebGLRenderingVersion : uint8_t { V1, V2 -};; -using namespace org::nativescript::canvas; +}; class WebGLRenderingContextBase { public: - WebGLRenderingContextBase(rust::Box state, WebGLRenderingVersion version); + WebGLRenderingContextBase(WebGLState* state, WebGLRenderingVersion version); static WebGLRenderingContextBase *GetPointer(const v8::Local &object) { auto ptr = object->GetInternalField(0).As()->Value(); @@ -47,7 +45,7 @@ class WebGLRenderingContextBase { static void Flush(intptr_t context); - WebGLState &GetState(); + WebGLState* GetState(); void SetRaf(std::shared_ptr raf); @@ -60,11 +58,11 @@ class WebGLRenderingContextBase { void StopRaf(); private: - rust::Box state_; + WebGLState* state_; WebGLRenderingVersion version_; - int invalidateState_ = static_cast(InvalidateState::NONE); + int invalidateState_ = static_cast(InvalidateState::InvalidateStateNone); std::shared_ptr raf_; }; diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLShader.h b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLShader.h index 5ad531aff..9c5cca4b2 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLShader.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLShader.h @@ -4,8 +4,6 @@ #pragma once -#include "../rust/cxx.h" -#include "canvas-cxx/src/lib.rs.h" #include "Helpers.h" class WebGLShader { diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.cpp b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.cpp index 97b425aed..581d81756 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.cpp +++ b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.cpp @@ -5,8 +5,7 @@ #include "WebGLShaderPrecisionFormatImpl.h" WebGLShaderPrecisionFormatImpl::WebGLShaderPrecisionFormatImpl( - rust::Box shader) : shader_( - std::move(shader)) {} + WebGLShaderPrecisionFormat* shader) : shader_(shader) {} void WebGLShaderPrecisionFormatImpl::GetRangeMin(v8::Local property, diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h index 4fde1eeed..3de0bab2a 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h @@ -4,18 +4,20 @@ #pragma once -#include "../rust/cxx.h" -#include "canvas-cxx/src/lib.rs.h" #include #include "Helpers.h" #include "Caches.h" #include "Common.h" -using namespace org::nativescript::canvas; class WebGLShaderPrecisionFormatImpl { public: - WebGLShaderPrecisionFormatImpl(rust::Box shader); + WebGLShaderPrecisionFormatImpl(WebGLShaderPrecisionFormat* shader); + + ~WebGLShaderPrecisionFormatImpl() { + canvas_native_webgl_shader_precision_format_destroy(this->GetShaderPrecisionFormat()); + this->shader_ = nullptr; + } static v8::Local GetCtor(v8::Isolate *isolate) { auto cache = Caches::Get(isolate); @@ -73,9 +75,9 @@ class WebGLShaderPrecisionFormatImpl { static void GetPrecision(v8::Local property, const v8::PropertyCallbackInfo &info); - WebGLShaderPrecisionFormat &GetShaderPrecisionFormat(); + WebGLShaderPrecisionFormat* GetShaderPrecisionFormat(); private: - rust::Box shader_; + WebGLShaderPrecisionFormat* shader_; }; diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLTexture.h b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLTexture.h index f62f336b6..3b3efa0d1 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLTexture.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLTexture.h @@ -4,8 +4,6 @@ #pragma once -#include "../rust/cxx.h" -#include "canvas-cxx/src/lib.rs.h" #include "Helpers.h" class WebGLTexture { diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h index 1f57686df..b4ad928ca 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h @@ -4,8 +4,6 @@ #pragma once -#include "../rust/cxx.h" -#include "canvas-cxx/src/lib.rs.h" #include "Helpers.h" #include "Common.h" #include "Caches.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.cpp b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.cpp index 3f7e92345..50c8dbee9 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.cpp +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.cpp @@ -5,9 +5,8 @@ #include "ANGLE_instanced_arraysImpl.h" #include "Caches.h" -ANGLE_instanced_arraysImpl::ANGLE_instanced_arraysImpl(rust::Box arrays) - : arrays_( - std::move(arrays)) {} +ANGLE_instanced_arraysImpl::ANGLE_instanced_arraysImpl(ANGLE_instanced_arrays * arrays) + : arrays_(arrays) {} ANGLE_instanced_arraysImpl * ANGLE_instanced_arraysImpl::GetPointer(const v8::Local &object) { @@ -122,6 +121,6 @@ v8::Local ANGLE_instanced_arraysImpl::GetCtor(v8::Isolate return ctorTmpl; } -ANGLE_instanced_arrays &ANGLE_instanced_arraysImpl::GetArrays() { - return *this->arrays_; +ANGLE_instanced_arrays* ANGLE_instanced_arraysImpl::GetArrays() { + return this->arrays_; } diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h index f9e8a2b78..3961deadd 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h @@ -13,9 +13,9 @@ using namespace org::nativescript::canvas; class ANGLE_instanced_arraysImpl { public: - ANGLE_instanced_arraysImpl(rust::Box arrays); + ANGLE_instanced_arraysImpl(ANGLE_instanced_arrays* arrays); - ANGLE_instanced_arrays &GetArrays(); + ANGLE_instanced_arrays* GetArrays(); static ANGLE_instanced_arraysImpl *GetPointer(const v8::Local &object); @@ -40,6 +40,6 @@ class ANGLE_instanced_arraysImpl { static void VertexAttribDivisorANGLE(const v8::FunctionCallbackInfo &args); private: - rust::Box arrays_; + ANGLE_instanced_arrays* arrays_; }; diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.cpp b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.cpp index a1729b810..24594847a 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.cpp +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.cpp @@ -6,8 +6,7 @@ #include "Caches.h" EXT_disjoint_timer_queryImpl::EXT_disjoint_timer_queryImpl( - rust::Box query) : query_( - std::move(query)) {} + EXT_disjoint_timer_query* query) : query_(query) {} v8::Local EXT_disjoint_timer_queryImpl::GetCtor(v8::Isolate *isolate) { @@ -313,6 +312,6 @@ void EXT_disjoint_timer_queryImpl::GetQueryParameterExt( } -EXT_disjoint_timer_query &EXT_disjoint_timer_queryImpl::GetQuery() { - return *this->query_; +EXT_disjoint_timer_query* EXT_disjoint_timer_queryImpl::GetQuery() { + return this->query_; } diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h index a026a528c..61bdfe814 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h @@ -4,20 +4,21 @@ #pragma once -#include "rust/cxx.h" -#include "canvas-cxx/src/lib.rs.h" #include "Helpers.h" #include "Common.h" #include "webgl2/WebGLQuery.h" #include -using namespace org::nativescript::canvas; - class EXT_disjoint_timer_queryImpl { public: - EXT_disjoint_timer_queryImpl(rust::Box query); + EXT_disjoint_timer_queryImpl(EXT_disjoint_timer_query* query); + + ~EXT_disjoint_timer_queryImpl(){ + canvas_native_webgl_EXT_disjoint_timer_query_destroy(this->GetQuery()); + this->query_ = nullptr; + } - EXT_disjoint_timer_query &GetQuery(); + EXT_disjoint_timer_query* GetQuery(); static v8::Local GetCtor(v8::Isolate *isolate); @@ -57,5 +58,5 @@ class EXT_disjoint_timer_queryImpl { private: - rust::Box query_; + EXT_disjoint_timer_query* query_; }; diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h index 98decba43..4b677ec34 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h @@ -4,7 +4,6 @@ #pragma once -#include "rust/cxx.h" #include "gl.h" #include #include "Helpers.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h index 36fe95656..e180d5e1e 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h @@ -4,7 +4,6 @@ #pragma once -#include "rust/cxx.h" #include "gl.h" #include #include "Helpers.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h index 69f107dc7..5e93dafcf 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h @@ -4,7 +4,6 @@ #pragma once -#include "rust/cxx.h" #include "gl.h" #include #include "Helpers.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h index 012eda19c..edd33ea98 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h @@ -4,7 +4,6 @@ #pragma once -#include "rust/cxx.h" class OES_fbo_render_mipmapImpl { diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h index db5e928af..0ee0b9da3 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h @@ -4,7 +4,6 @@ #pragma once -#include "rust/cxx.h" #include "gl.h" #include #include "Caches.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h index d350d16ce..d7f52f8cf 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h @@ -4,7 +4,6 @@ #pragma once -#include "rust/cxx.h" #include "Common.h" #include "Helpers.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h index 9e3e912ce..aad49143b 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h @@ -4,7 +4,6 @@ #pragma once -#include "rust/cxx.h" #include "Helpers.h" #include "Common.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h index 0cc24e883..69fedc3a0 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h @@ -4,7 +4,6 @@ #pragma once -#include "rust/cxx.h" #include "gl.h" #include #include "Helpers.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h index aff546251..6b7be7b90 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h @@ -4,7 +4,6 @@ #pragma once -#include "rust/cxx.h" #include "Helpers.h" #include "Common.h" #include "Caches.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.cpp b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.cpp index d9ebbc281..9675413fb 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.cpp +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.cpp @@ -5,9 +5,8 @@ #include "OES_vertex_array_objectImpl.h" -OES_vertex_array_objectImpl::OES_vertex_array_objectImpl(rust::Box object) - : object_( - std::move(object)) { +OES_vertex_array_objectImpl::OES_vertex_array_objectImpl(OES_vertex_array_object* object) + : object_(object) { } diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h index 890c4ac67..408e41e19 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h @@ -15,7 +15,11 @@ using namespace org::nativescript::canvas; class OES_vertex_array_objectImpl { public: - OES_vertex_array_objectImpl(rust::Box object); + OES_vertex_array_objectImpl(OES_vertex_array_object* object); + ~OES_vertex_array_objectImpl(){ + canvas_native_webgl_OES_vertex_array_object_destroy(this->GetVertexArrayObject()); + this->object_ = nullptr; + } static v8::Local GetCtor(v8::Isolate *isolate) { auto cache = Caches::Get(isolate); @@ -78,10 +82,10 @@ class OES_vertex_array_objectImpl { static void BindVertexArrayOES(const v8::FunctionCallbackInfo &args); - OES_vertex_array_object &GetVertexArrayObject() { - return *this->object_; + OES_vertex_array_object * GetVertexArrayObject() { + return this->object_; } private: - rust::Box object_; + OES_vertex_array_object* object_; }; diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h index 4c8133755..95ecf5e56 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h @@ -4,7 +4,6 @@ #define once -#include "rust/cxx.h" #include "gl.h" #include #include "Helpers.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h index a48c27c30..250ec923d 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h @@ -4,7 +4,6 @@ #pragma once -#include "rust/cxx.h" #include "gl.h" #include #include "Helpers.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h index a8867f5b8..9b7712dea 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h @@ -4,7 +4,6 @@ #pragma once -#include "rust/cxx.h" #include "gl.h" #include #include "Common.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h index 987edbd3f..deed82927 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h @@ -4,7 +4,6 @@ #pragma once -#include "rust/cxx.h" #include "gl.h" #include #include "Helpers.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h index de9f5208d..903a917e0 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h @@ -4,7 +4,6 @@ #pragma once -#include "rust/cxx.h" #include "gl.h" #include #include "Helpers.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h index d3410fa4e..dadd3a0ad 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h @@ -4,7 +4,6 @@ #pragma once -#include "rust/cxx.h" #include "gl.h" #include #include "Helpers.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h index fc17121fe..bf2c8c946 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h @@ -4,7 +4,6 @@ #pragma once -#include "rust/cxx.h" #include "gl.h" #include #include "Caches.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h index e30225d82..b498f36b2 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h @@ -4,7 +4,6 @@ #pragma -#include "rust/cxx.h" #include "gl.h" #include #include "Helpers.h" diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.cpp b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.cpp index 2dbc1e0d3..4417e9d82 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.cpp +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.cpp @@ -4,8 +4,7 @@ #include "WEBGL_draw_buffersImpl.h" -WEBGL_draw_buffersImpl::WEBGL_draw_buffersImpl(rust::Box buffers) : buffers_( - std::move(buffers)) { +WEBGL_draw_buffersImpl::WEBGL_draw_buffersImpl(WEBGL_draw_buffers* buffers) : buffers_(buffers) { } @@ -22,7 +21,7 @@ void WEBGL_draw_buffersImpl::DrawBuffersWEBGL( if (value->IsArray()) { auto buffers = value.As(); auto len = buffers->Length(); - rust::Vec buf; + std::vector buf; buf.reserve(len); for (int j = 0; j < len; ++j) { auto item = buffers->Get(context, j).ToLocalChecked(); diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h index 39f7ea12b..0c89266f1 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h @@ -4,20 +4,18 @@ #pragma once -#include "canvas-cxx/src/lib.rs.h" - -#include "rust/cxx.h" #include "gl.h" #include #include "Common.h" #include "Caches.h" #include "Helpers.h" -using namespace org::nativescript::canvas; - class WEBGL_draw_buffersImpl { public: - WEBGL_draw_buffersImpl(rust::Box buffers); + WEBGL_draw_buffersImpl(WEBGL_draw_buffers* buffers); + ~WEBGL_draw_buffersImpl() { + // todo + } static v8::Local GetCtor(v8::Isolate *isolate) { auto cache = Caches::Get(isolate); @@ -136,10 +134,10 @@ class WEBGL_draw_buffersImpl { static void DrawBuffersWEBGL(const v8::FunctionCallbackInfo &args); - WEBGL_draw_buffers &GetDrawBuffers() { - return *this->buffers_; + WEBGL_draw_buffers* GetDrawBuffers() { + return this->buffers_; } private: - rust::Box buffers_; + WEBGL_draw_buffers* buffers_; }; diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.cpp b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.cpp index 705a57f22..be39df0f5 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.cpp +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.cpp @@ -5,8 +5,7 @@ #include "WEBGL_lose_contextImpl.h" -WEBGL_lose_contextImpl::WEBGL_lose_contextImpl(rust::Box context) : context_( - std::move(context)) {} +WEBGL_lose_contextImpl::WEBGL_lose_contextImpl(WEBGL_lose_context* context) : context_(context)) {} void WEBGL_lose_contextImpl::LoseContext( diff --git a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h index 5243e865f..7c5a5d93b 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h @@ -4,19 +4,20 @@ #pragma once -#include "rust/cxx.h" #include "gl.h" -#include "canvas-cxx/src/lib.rs.h" #include #include "Helpers.h" #include "Common.h" #include "Caches.h" -using namespace org::nativescript::canvas; class WEBGL_lose_contextImpl { public: - WEBGL_lose_contextImpl(rust::Box context); + WEBGL_lose_contextImpl(WEBGL_lose_context* context); + ~WEBGL_lose_contextImpl() { + canvas_native_webgl_WEBGL_lose_context_destroy(this->GetContext()); + this->context_ = nullptr; + } static v8::Local GetCtor(v8::Isolate *isolate) { auto cache = Caches::Get(isolate); @@ -69,11 +70,11 @@ class WEBGL_lose_contextImpl { static void RestoreContext(const v8::FunctionCallbackInfo &args); - WEBGL_lose_context &GetContext() { - return *this->context_; + WEBGL_lose_context* GetContext() { + return this->context_; } private: - rust::Box context_; + WEBGL_lose_context* context_; }; diff --git a/packages/canvas/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp b/packages/canvas/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp index 9323ef41e..98497d78a 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp +++ b/packages/canvas/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp @@ -4,14 +4,14 @@ #include "WebGL2RenderingContext.h" -WebGL2RenderingContext::WebGL2RenderingContext(rust::Box state) : WebGLRenderingContext( - std::move(state), WebGLRenderingVersion::V2) { +WebGL2RenderingContext::WebGL2RenderingContext(WebGLState* state) : WebGLRenderingContext( + state, WebGLRenderingVersion::V2) { } -WebGL2RenderingContext::WebGL2RenderingContext(rust::Box state, +WebGL2RenderingContext::WebGL2RenderingContext(WebGLState* state, WebGLRenderingVersion version) - : WebGLRenderingContext(std::move(state), version) { + : WebGLRenderingContext(state, version) { } diff --git a/packages/canvas/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h b/packages/canvas/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h index 7d95da1e9..92ce73ebb 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h @@ -6,12 +6,9 @@ #pragma process_pending_includes #include -#include "rust/cxx.h" -#include "canvas2d/CanvasRenderingContext2DImpl.h" +#include "CanvasRenderingContext2DImpl.h" #include "RafImpl.h" - -#include "canvas-cxx/src/lib.rs.h" #include "VecMutableBuffer.h" #include #include "Helpers.h" @@ -25,14 +22,12 @@ #include "gl.h" -using namespace org::nativescript::canvas; - class WebGL2RenderingContext : public WebGLRenderingContext { public: - WebGL2RenderingContext(rust::Box state); + WebGL2RenderingContext(WebGLState* state); - WebGL2RenderingContext(rust::Box state, WebGLRenderingVersion version); + WebGL2RenderingContext(WebGLState* state, WebGLRenderingVersion version); static v8::Local GetCtor(v8::Isolate *isolate); diff --git a/packages/canvas/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h b/packages/canvas/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h index 603429476..183f349f8 100644 --- a/packages/canvas/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +++ b/packages/canvas/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h @@ -3,17 +3,12 @@ // #pragma once - -#include "rust/cxx.h" -#include "canvas-cxx/src/lib.rs.h" #include "Common.h" #include "Caches.h" -using namespace org::nativescript::canvas; - class WebGLSyncImpl { public: - WebGLSyncImpl(rust::Box sync) : sync_(std::move(sync)) {} + WebGLSyncImpl(WebGLSync* sync) : sync_(sync) {} static v8::Local GetCtor(v8::Isolate *isolate) { auto cache = Caches::Get(isolate); @@ -53,10 +48,10 @@ class WebGLSyncImpl { return static_cast(ptr); } - WebGLSync &GetSync() { - return *this->sync_; + WebGLSync * GetSync() { + return this->sync_; } private: - rust::Box sync_; + WebGLSync* sync_; }; diff --git a/packages/canvas/src-native/canvas-android/canvas/CMakeLists.txt b/packages/canvas/src-native/canvas-android/canvas/CMakeLists.txt index 406b2c0f2..c2f3f9a9f 100644 --- a/packages/canvas/src-native/canvas-android/canvas/CMakeLists.txt +++ b/packages/canvas/src-native/canvas-android/canvas/CMakeLists.txt @@ -34,23 +34,12 @@ get_filename_component(PROJECT_NATIVE_ROOT_DIR ${PROJECT_ROOT_DIR} DIRECTORY) set(PROJECT_NATIVE_ROOT_DIR ${PROJECT_NATIVE_ROOT_DIR}/canvas-native) - set(CARGO_MANIFEST ${PROJECT_NATIVE_ROOT_DIR}/Cargo.toml) set(CARGO_TARGET_DIR ${PROJECT_NATIVE_ROOT_DIR}/target) set(CURRENT_TARGET_DIR ${CARGO_TARGET_DIR}/${RUST_BUILD_TARGET}) - -set(CANVAS_ANDROID_SOURCE_FILE - ${PROJECT_NATIVE_ROOT_DIR}/canvas-cxx/src/lib.rs - ${PROJECT_NATIVE_ROOT_DIR}/canvas-core/src/lib.rs - ${PROJECT_NATIVE_ROOT_DIR}/canvas-core/src/gl/android.rs - ${PROJECT_NATIVE_ROOT_DIR}/canvas-android/src/lib.rs - ) -set(CANVAS_ANDROID_BRIDGE_CPP ${CARGO_TARGET_DIR}/cxxbridge/canvas-cxx/src/lib.rs.cc) - set(COMMON_CMAKE_ARGUMENTS "-std=c++17 -pthread -Werror -Wno-unused-result -mstackrealign -fexceptions -fno-builtin-stpcpy -DV8_31BIT_SMIS_ON_64BIT_ARCH") - if (CMAKE_BUILD_TYPE STREQUAL "Debug") set(RUST_BUILD_TYPE) set(CANVAS_ANDROID_LIB ${CURRENT_TARGET_DIR}/debug) @@ -85,8 +74,6 @@ include_directories( PUBLIC - ${CARGO_TARGET_DIR}/cxxbridge - ${PROJECT_SOURCE_DIR}/src/main/cpp/include/libc++ ${PROJECT_SOURCE_DIR}/src/main/cpp/include ../../../platforms/ios/src/cpp @@ -96,11 +83,11 @@ set(CMAKE_CXX_FLAGS ${COMMON_CMAKE_ARGUMENTS}) # Add a custom command that builds the rust crate and generates C++ bridge code add_custom_command( - OUTPUT ${CANVAS_ANDROID_BRIDGE_CPP} ${CANVAS_ANDROID_LIB} + OUTPUT "" ${CANVAS_ANDROID_LIB} # COMMAND cargo +nightly build -Z build-std='std,panic_abort' -Z build-std-features='panic_immediate_abort' --manifest-path ${CARGO_MANIFEST} --target ${RUST_BUILD_TARGET} ${RUST_BUILD_TYPE} -p canvas-android COMMAND cargo +nightly build -Z build-std='std,panic_abort' --manifest-path ${CARGO_MANIFEST} --target ${RUST_BUILD_TARGET} ${RUST_BUILD_TYPE} -p canvas-android # COMMAND cargo build --manifest-path ${CARGO_MANIFEST} --target ${RUST_BUILD_TARGET} ${RUST_BUILD_TYPE} -p canvas-android - DEPENDS ${CANVAS_ANDROID_SOURCE_FILE} +# DEPENDS ${CANVAS_ANDROID_SOURCE_FILE} USES_TERMINAL ) @@ -112,7 +99,6 @@ add_library( ${GL3STUB_SRC} - ${CPP_DIR}/rust/cxx.cc ${CPP_DIR}/Caches.cpp ${CPP_DIR}/OneByteStringResource.cpp @@ -160,8 +146,6 @@ add_library( ${CPP_DIR}/CanvasJSIModule.cpp ${CPP_DIR}/JSIRuntime.cpp - - ${CANVAS_ANDROID_BRIDGE_CPP} ) @@ -173,22 +157,6 @@ set_target_properties( LINK_FLAGS -Wl,--allow-multiple-definition ) - -MESSAGE("# General cmake Info") -MESSAGE("# PROJECT_SOURCE_DIR: " ${PROJECT_SOURCE_DIR}) -MESSAGE("# CMAKE_VERSION: " ${CMAKE_VERSION}) -MESSAGE("# CMAKE_C_COMPILER_ID: " ${CMAKE_C_COMPILER_ID}) -MESSAGE("# CMAKE_CXX_COMPILER_ID: " ${CMAKE_CXX_COMPILER_ID}) -MESSAGE("# CMAKE_C_FLAGS: " ${CMAKE_C_FLAGS}) -MESSAGE("# CMAKE_CXX_FLAGS: " ${CMAKE_CXX_FLAGS}) - -MESSAGE("# CARGO_MANIFEST: " ${CARGO_MANIFEST}) -MESSAGE("# CARGO_TARGET_DIR: " ${CARGO_TARGET_DIR}) -MESSAGE("# CURRENT_TARGET_DIR: " ${CURRENT_TARGET_DIR}) -MESSAGE("# CANVAS_ANDROID_SOURCE_FILE: " ${CANVAS_ANDROID_SOURCE_FILE}) -MESSAGE("# CANVAS_ANDROID_BRIDGE_CPP: " ${CANVAS_ANDROID_BRIDGE_CPP}) -MESSAGE("# ANDROID_NDK_ROOT: " ${ANDROID_NDK_ROOT}) - find_library(system-log log) find_library(system-z z) find_library(egl EGL) @@ -223,10 +191,10 @@ else () endif () -add_custom_command(TARGET canvasnativev8 - POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy - ${CANVAS_ANDROID_LIB} - ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libcanvasandroid.so - ) +#add_custom_command(TARGET canvasnativev8 +# POST_BUILD +# COMMAND ${CMAKE_COMMAND} -E copy +# ${CANVAS_ANDROID_LIB} +# ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libcanvasandroid.so +# ) diff --git a/packages/canvas/src-native/canvas-ios/CanvasNative.xcodeproj/project.pbxproj b/packages/canvas/src-native/canvas-ios/CanvasNative.xcodeproj/project.pbxproj index 4dc34bd0f..36c445aa2 100644 --- a/packages/canvas/src-native/canvas-ios/CanvasNative.xcodeproj/project.pbxproj +++ b/packages/canvas/src-native/canvas-ios/CanvasNative.xcodeproj/project.pbxproj @@ -79,8 +79,6 @@ F1A87C74255D00BA00394387 /* NSCCanvas.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = NSCCanvas.xib; sourceTree = ""; }; F1D1AE252ADAAEAA005C140B /* canvas_ios.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = canvas_ios.h; path = CanvasNative/include/canvas_ios.h; sourceTree = ""; }; F1DE2E4E2612F7CA0000D48F /* Utils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Utils.swift; sourceTree = ""; }; - F1FF57C2271E6BF0001CBF6D /* libcanvasnative.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libcanvasnative.a; path = "CanvasNative/libs/arm64-iphoneos/libcanvasnative.a"; sourceTree = ""; }; - F1FF57C4271E6C01001CBF6D /* libcanvasnative.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libcanvasnative.a; path = CanvasNative/libs/iphonesimulator/libcanvasnative.a; sourceTree = ""; }; F1FF6A3425248CFE001DAE0D /* NSCCanvasListener.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = NSCCanvasListener.swift; path = CanvasNative/Source/NSCCanvasListener.swift; sourceTree = ""; }; F1FF6A4025248CFE001DAE0D /* NSCCanvas.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = NSCCanvas.swift; path = CanvasNative/Source/NSCCanvas.swift; sourceTree = ""; }; F1FF6A4A25248CFE001DAE0D /* GLUtils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = GLUtils.swift; path = CanvasNative/Source/GLUtils.swift; sourceTree = ""; }; @@ -180,8 +178,6 @@ F134FE5729CE18DF0051057B /* GLKit.framework */, F134FE5829CE18DF0051057B /* OpenGLES.framework */, F134FE4F29CCD5480051057B /* libresolv.tbd */, - F1FF57C4271E6C01001CBF6D /* libcanvasnative.a */, - F1FF57C2271E6BF0001CBF6D /* libcanvasnative.a */, ); name = Frameworks; sourceTree = ""; @@ -526,7 +522,10 @@ "GLES_SILENCE_DEPRECATION=1", "CI_SILENCE_GL_DEPRECATION=1", ); - HEADER_SEARCH_PATHS = "\"$(SRCROOT)/../canvas-native/target\""; + HEADER_SEARCH_PATHS = ( + "\"$(SRCROOT)/../canvas-native/target\"", + "\"$(SRCROOT)/CanvasNative/include\"", + ); INFOPLIST_FILE = CanvasNative/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 11.0; @@ -539,7 +538,6 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - LIBRARY_SEARCH_PATHS = ""; ONLY_ACTIVE_ARCH = YES; "OTHER_LDFLAGS[sdk=iphoneos*][arch=arm64]" = ( "$(inherited)", @@ -551,7 +549,6 @@ "-framework", OpenGLES, "-lc++", - "-Wl,-U,_cxxbridge1$OnRafCallbackOnFrame", ); "OTHER_LDFLAGS[sdk=iphonesimulator*][arch=arm64]" = ( "$(inherited)", @@ -563,7 +560,6 @@ "-framework", OpenGLES, "-lc++", - "-Wl,-U,_cxxbridge1$OnRafCallbackOnFrame", ); "OTHER_LDFLAGS[sdk=iphonesimulator*][arch=x86_64]" = ( "$(inherited)", @@ -575,7 +571,6 @@ "-framework", OpenGLES, "-lc++", - "-Wl,-U,_cxxbridge1$OnRafCallbackOnFrame", ); OTHER_SWIFT_FLAGS = "-Xcc -Wno-error=non-modular-include-in-framework-module"; PRODUCT_BUNDLE_IDENTIFIER = com.github.triniwiz.CanvasNative; @@ -610,7 +605,10 @@ "GLES_SILENCE_DEPRECATION=1", "CI_SILENCE_GL_DEPRECATION=1", ); - HEADER_SEARCH_PATHS = "\"$(SRCROOT)/../canvas-native/target\""; + HEADER_SEARCH_PATHS = ( + "\"$(SRCROOT)/../canvas-native/target\"", + "\"$(SRCROOT)/CanvasNative/include\"", + ); INFOPLIST_FILE = CanvasNative/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 11.0; @@ -623,8 +621,6 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - LIBRARY_SEARCH_PATHS = ""; - "LIBRARY_SEARCH_PATHS[arch=*]" = ""; "OTHER_LDFLAGS[sdk=iphoneos*][arch=arm64]" = ( "$(inherited)", "-L\"$(SRCROOT)/../canvas-native/target/aarch64-apple-ios/release\"", @@ -635,7 +631,6 @@ "-framework", OpenGLES, "-lc++", - "-Wl,-U,_cxxbridge1$OnRafCallbackOnFrame", ); "OTHER_LDFLAGS[sdk=iphonesimulator*][arch=arm64]" = ( "$(inherited)", @@ -647,7 +642,6 @@ "-framework", OpenGLES, "-lc++", - "-Wl,-U,_cxxbridge1$OnRafCallbackOnFrame", ); "OTHER_LDFLAGS[sdk=iphonesimulator*][arch=x86_64]" = ( "$(inherited)", @@ -659,7 +653,6 @@ "-framework", OpenGLES, "-lc++", - "-Wl,-U,_cxxbridge1$OnRafCallbackOnFrame", ); OTHER_SWIFT_FLAGS = "-Xcc -Wno-error=non-modular-include-in-framework-module"; PRODUCT_BUNDLE_IDENTIFIER = com.github.triniwiz.CanvasNative; diff --git a/packages/canvas/src-native/canvas-ios/CanvasNative.xcodeproj/project.xcworkspace/xcuserdata/triniwiz.xcuserdatad/UserInterfaceState.xcuserstate b/packages/canvas/src-native/canvas-ios/CanvasNative.xcodeproj/project.xcworkspace/xcuserdata/triniwiz.xcuserdatad/UserInterfaceState.xcuserstate index 887f4481b..1f5074291 100644 Binary files a/packages/canvas/src-native/canvas-ios/CanvasNative.xcodeproj/project.xcworkspace/xcuserdata/triniwiz.xcuserdatad/UserInterfaceState.xcuserstate and b/packages/canvas/src-native/canvas-ios/CanvasNative.xcodeproj/project.xcworkspace/xcuserdata/triniwiz.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/packages/canvas/src-native/canvas-ios/CanvasNative/include/canvas_ios.h b/packages/canvas/src-native/canvas-ios/CanvasNative/include/canvas_ios.h index f2c63f8af..5cafc1060 100644 --- a/packages/canvas/src-native/canvas-ios/CanvasNative/include/canvas_ios.h +++ b/packages/canvas/src-native/canvas-ios/CanvasNative/include/canvas_ios.h @@ -1,5 +1,5 @@ -#ifndef CBINDGEN_BINDINGS_H -#define CBINDGEN_BINDINGS_H +#ifndef CANVAS_IOS_H +#define CANVAS_IOS_H /* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */ @@ -139,4 +139,4 @@ bool canvas_native_context_draw_image_with_bytes(int64_t context, float d_width, float d_height); -#endif /* CBINDGEN_BINDINGS_H */ +#endif /* CANVAS_IOS_H */ diff --git a/packages/canvas/src-native/canvas-ios/CanvasNative/include/canvas_native.h b/packages/canvas/src-native/canvas-ios/CanvasNative/include/canvas_native.h index 580d9f24b..3fc2610ac 100644 --- a/packages/canvas/src-native/canvas-ios/CanvasNative/include/canvas_native.h +++ b/packages/canvas/src-native/canvas-ios/CanvasNative/include/canvas_native.h @@ -1,5 +1,5 @@ -#ifndef CBINDGEN_BINDINGS_H -#define CBINDGEN_BINDINGS_H +#ifndef CANVAS_C_H +#define CANVAS_C_H /* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */ @@ -8,6 +8,12 @@ #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, @@ -26,6 +32,12 @@ typedef enum ImageBitmapResizeQuality { ImageBitmapResizeQualityPixelated, } ImageBitmapResizeQuality; +typedef enum InvalidateState { + InvalidateStateNone, + InvalidateStatePending, + InvalidateStateInvalidating, +} InvalidateState; + typedef enum PaintStyleType { PaintStyleTypeNone, PaintStyleTypeColor, @@ -68,10 +80,20 @@ 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; @@ -80,8 +102,22 @@ 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; @@ -112,12 +148,30 @@ 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; @@ -168,13 +222,37 @@ typedef void (*AChoreographer_frameCallback)(long frameTimeNanos, void *data); 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 @@ -451,6 +529,12 @@ struct PaintStyle *canvas_native_context_create_radial_gradient(struct CanvasRen 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, @@ -1039,6 +1123,68 @@ 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); @@ -1478,6 +1624,33 @@ void canvas_native_webgl_pixel_storei(uint32_t pname, int32_t param, struct WebG 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, @@ -1531,6 +1704,17 @@ void canvas_native_webgl_tex_image2d_image_none(int32_t target, 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, @@ -1914,6 +2098,13 @@ struct WebGLResult *canvas_native_webgl2_get_active_uniforms(uint32_t program, 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); @@ -2222,6 +2413,46 @@ 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 @@ -2271,4 +2502,16 @@ extern void AChoreographer_postFrameCallbackDelayed64(struct AChoreographer *cho uint32_t delayMillis); #endif -#endif /* CBINDGEN_BINDINGS_H */ +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/src-native/canvas-ios/dist/CanvasNative.xcframework/Info.plist b/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/Info.plist new file mode 100644 index 000000000..803c127dd --- /dev/null +++ b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative b/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative new file mode 100755 index 000000000..c9fe87c40 Binary files /dev/null and b/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative differ diff --git a/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h b/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h new file mode 100644 index 000000000..c8446d582 --- /dev/null +++ b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h b/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h new file mode 100644 index 000000000..b414de9c6 --- /dev/null +++ b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h b/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h new file mode 100644 index 000000000..5cafc1060 --- /dev/null +++ b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h b/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h new file mode 100644 index 000000000..3fc2610ac --- /dev/null +++ b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist b/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist new file mode 100644 index 000000000..d32b2e086 Binary files /dev/null and b/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist differ diff --git a/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo differ diff --git a/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc differ diff --git a/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/module.modulemap b/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/module.modulemap new file mode 100644 index 000000000..0d2a8ed0a --- /dev/null +++ b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/NSCCanvas.nib b/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/NSCCanvas.nib new file mode 100644 index 000000000..1cb86796b Binary files /dev/null and b/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/NSCCanvas.nib differ diff --git a/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Info.plist b/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Info.plist new file mode 100644 index 000000000..509a66359 --- /dev/null +++ b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative differ diff --git a/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative differ diff --git a/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h b/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h new file mode 100644 index 000000000..b414de9c6 --- /dev/null +++ b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist differ diff --git a/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo differ diff --git a/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc differ diff --git a/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ diff --git a/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/module.modulemap b/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/module.modulemap new file mode 100644 index 000000000..0d2a8ed0a --- /dev/null +++ b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/NSCCanvas.nib b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/NSCCanvas.nib differ diff --git a/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources b/packages/canvas/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources new file mode 100644 index 000000000..39333bcb1 --- /dev/null +++ b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Info.plist b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative b/packages/canvas/src-native/canvas-ios/dist/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/src-native/canvas-ios/dist/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative differ diff --git a/packages/canvas/src-native/canvas-ios/pre-build.sh b/packages/canvas/src-native/canvas-ios/pre-build.sh index b72b3a6e4..acccc0362 100755 --- a/packages/canvas/src-native/canvas-ios/pre-build.sh +++ b/packages/canvas/src-native/canvas-ios/pre-build.sh @@ -83,8 +83,8 @@ export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src" export DYLD_LIBRARY_PATH="$(rustc --print sysroot)/lib:$DYLD_LIBRARY_PATH:$DYLD_FALLBACK_LIBRARY_PATH" export RUST_BUILD_TARGET="$RUST_BUILD_TARGET" -cbindgen --config "$CWD/canvas-ios/cbindgen.toml" "$CWD/canvas-c/src/lib.rs" -l c >"$SRCROOT/CanvasNative/include/canvas_native.h" +cbindgen --config "$CWD/canvas-c/cbindgen.toml" "$CWD/canvas-c/src/lib.rs" -l c >"$SRCROOT/CanvasNative/include/canvas_native.h" cbindgen --config "$CWD/canvas-ios/cbindgen.toml" "$CWD/canvas-ios/src/lib.rs" -l c >"$SRCROOT/CanvasNative/include/canvas_ios.h" -cargo +nightly build -Z build-std='std,panic_abort' --manifest-path Cargo.toml --target $RUST_BUILD_TARGET $RUST_BUILD_TYPE -p canvas-ios +cargo +nightly build -Z build-std='std,panic_abort' -Z build-std-features=panic_immediate_abort --manifest-path Cargo.toml --target $RUST_BUILD_TARGET $RUST_BUILD_TYPE -p canvas-ios popd diff --git a/packages/canvas/src-native/canvas-native/canvas-android/CMakeLists.txt b/packages/canvas/src-native/canvas-native/canvas-android/CMakeLists.txt index af405c791..6909dbc0b 100644 --- a/packages/canvas/src-native/canvas-native/canvas-android/CMakeLists.txt +++ b/packages/canvas/src-native/canvas-native/canvas-android/CMakeLists.txt @@ -1,5 +1,5 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug") - set(CARGO_CMD cargo build --target ${RUST_BUILD_TARGET} --package canvas-android) +/ set(CARGO_CMD cargo build --target ${RUST_BUILD_TARGET} --package canvas-android) set(TARGET_DIR ${RUST_BUILD_TARGET}/debug) else () set(CARGO_CMD cargo build --release --target ${RUST_BUILD_TARGET} --package canvas-android) @@ -21,15 +21,15 @@ set(CANVAS_CORE_LIB ${PROJECT_NATIVE_ROOT_DIR}/target/${TARGET_DIR}/libcanvasand set(CXX_BRIDGE_PREFIX "") -include_directories( - ${PROJECT_NATIVE_ROOT_DIR}/target/${RUST_BUILD_TARGET}/cxxbridge -) +#include_directories( +# ${PROJECT_NATIVE_ROOT_DIR}/target/${RUST_BUILD_TARGET}/cxxbridge +#) -add_custom_command( - OUTPUT "${PROJECT_NATIVE_ROOT_DIR}/target/${RUST_BUILD_TARGET}/cxxbridge/canvas-cxx/src/lib.rs.cc" - COMMAND CARGO_TARGET_DIR=${CMAKE_CURRENT_BINARY_DIR} RUSTFLAGS= "${RUST_FLAGS}" ${CARGO_CMD} - WORKING_DIRECTORY ${PROJECT_NATIVE_ROOT_DIR}/canvas-native -) +#add_custom_command( +# OUTPUT "${PROJECT_NATIVE_ROOT_DIR}/target/${RUST_BUILD_TARGET}/cxxbridge/canvas-cxx/src/lib.rs.cc" +# COMMAND CARGO_TARGET_DIR=${CMAKE_CURRENT_BINARY_DIR} RUSTFLAGS= "${RUST_FLAGS}" ${CARGO_CMD} +# WORKING_DIRECTORY ${PROJECT_NATIVE_ROOT_DIR}/canvas-native +#) #add_custom_command( # OUTPUT ${BLOBSTORE_BRIDGE_CPP} ${BLOBSTORE_LIB} diff --git a/packages/canvas/src-native/canvas-native/canvas-android/Cargo.toml b/packages/canvas/src-native/canvas-native/canvas-android/Cargo.toml index dba40e248..c6649a8c5 100644 --- a/packages/canvas/src-native/canvas-native/canvas-android/Cargo.toml +++ b/packages/canvas/src-native/canvas-native/canvas-android/Cargo.toml @@ -17,7 +17,7 @@ bindgen = "0.64.0" canvas-core = { path = "../canvas-core", features = ["2d"] } canvas-2d = { path = "../canvas-2d", features = ["gl"] } canvas-webgl = { path = "../canvas-webgl" } -canvas-cxx = { path = "../canvas-cxx", features = ["2d", "webgl"] } +canvas-c = { path = "../canvas-c", features = ["2d", "webgl"] } gl-bindings = { path = "../gl-bindings" } raw-window-handle = "0.5.2" ureq = "2.6.2" diff --git a/packages/canvas/src-native/canvas-native/canvas-android/src/lib.rs b/packages/canvas/src-native/canvas-native/canvas-android/src/lib.rs index be6dc673d..c5f8143f6 100644 --- a/packages/canvas/src-native/canvas-native/canvas-android/src/lib.rs +++ b/packages/canvas/src-native/canvas-native/canvas-android/src/lib.rs @@ -5,18 +5,15 @@ extern crate core; #[macro_use] extern crate log; -use std::ffi::{CStr, CString}; -use std::os::raw::{c_char, c_int, c_void}; -use std::pin::Pin; +use std::os::raw::c_void; +use ::jni::JavaVM; use ::jni::signature::JavaType; use ::jni::sys::jint; -use ::jni::JavaVM; use android_logger::Config; -use log::LevelFilter; use once_cell::sync::OnceCell; -use crate::utils::gl::st::{SurfaceTexture, SURFACE_TEXTURE}; +use crate::utils::gl::st::{SURFACE_TEXTURE, SurfaceTexture}; mod jni_compat; pub mod utils; @@ -45,7 +42,7 @@ pub extern "system" fn JNI_OnLoad(vm: JavaVM, _reserved: *const c_void) -> jint let ret = sdk_int.unwrap().i().unwrap(); - canvas_cxx::API_LEVEL.get_or_init(|| ret); + canvas_c::API_LEVEL.get_or_init(|| ret); ret }); diff --git a/packages/canvas/src-native/canvas-native/canvas-c/cbindgen.toml b/packages/canvas/src-native/canvas-native/canvas-c/cbindgen.toml index 89abd243f..c948741ed 100644 --- a/packages/canvas/src-native/canvas-native/canvas-c/cbindgen.toml +++ b/packages/canvas/src-native/canvas-native/canvas-c/cbindgen.toml @@ -1,7 +1,13 @@ autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */" language = "C" namespace = "ffi" -include_guard = "CBINDGEN_BINDINGS_H" +include_guard = "CANVAS_C_H" + +[parse.expand] +features = ["2d", "webgl"] + +[export] +include = ["GLConstants", "InvalidateState"] [defines] "target_os = ios" = "TARGET_OS_IOS" diff --git a/packages/canvas/src-native/canvas-native/canvas-c/src/buffers.rs b/packages/canvas/src-native/canvas-native/canvas-c/src/buffers.rs index 8fd89f73d..0b21aafd0 100644 --- a/packages/canvas/src-native/canvas-native/canvas-c/src/buffers.rs +++ b/packages/canvas/src-native/canvas-native/canvas-c/src/buffers.rs @@ -1,119 +1,379 @@ use bytes::{Bytes, BytesMut}; -pub struct U8BufferMut(BytesMut); - +#[derive(Clone)] +enum U8BufferMutInner { + BytesMut(BytesMut), + Vec(Vec), + Reference(*mut u8, usize), +} +pub struct U8BufferMut(U8BufferMutInner); impl Default for U8BufferMut { fn default() -> Self { - Self(BytesMut::default()) + Self(U8BufferMutInner::BytesMut(BytesMut::default())) } } - impl<'a> From<&'a mut [u8]> for U8BufferMut { fn from(value: &mut [u8]) -> Self { let mut bytes = BytesMut::with_capacity(value.len()); bytes.extend_from_slice(value); - U8BufferMut(bytes) + U8BufferMut(U8BufferMutInner::BytesMut(bytes)) } } +impl From> for U8BufferMut { + fn from(value: Vec) -> Self { + U8BufferMut(U8BufferMutInner::Vec(value)) + } +} + +impl U8BufferMut { + pub fn new_with_vec(value: Vec) -> Self { + Self(U8BufferMutInner::Vec(value)) + } + + pub fn new_with_reference(value: *mut u8, size: usize) -> Self { + Self(U8BufferMutInner::Reference(value, size)) + } + pub fn get_buffer(&mut self) -> &mut [u8] { + match &mut self.0 { + U8BufferMutInner::BytesMut(value) => value.as_mut(), + U8BufferMutInner::Vec(value) => value.as_mut_slice(), + U8BufferMutInner::Reference(value, size) => unsafe { + std::slice::from_raw_parts_mut(*value, *size) + }, + } + } + + pub fn length(&self) -> usize { + match &self.0 { + U8BufferMutInner::BytesMut(value) => value.len(), + U8BufferMutInner::Vec(value) => value.len(), + U8BufferMutInner::Reference(_, size) => *size, + } + } +} + +#[derive(Clone)] +enum U8BufferInner { + Bytes(Bytes), + Vec(Vec), + Reference(*const u8, usize), +} + #[derive(Clone)] -pub struct U8Buffer(Bytes); +pub struct U8Buffer(U8BufferInner); impl U8Buffer { + pub fn new_with_vec(value: Vec) -> Self { + Self(U8BufferInner::Vec(value)) + } + + pub fn new_with_reference(value: *const u8, size: usize) -> Self { + Self(U8BufferInner::Reference(value, size)) + } + pub fn get_buffer(&self) -> &[u8] { - self.0.as_ref() + match &self.0 { + U8BufferInner::Bytes(value) => value, + U8BufferInner::Vec(value) => value.as_slice(), + U8BufferInner::Reference(value, size) => unsafe { + std::slice::from_raw_parts(*value, *size) + }, + } + } + + pub fn length(&self) -> usize { + match &self.0 { + U8BufferInner::Bytes(value) => value.len(), + U8BufferInner::Vec(value) => value.len(), + U8BufferInner::Reference(_, size) => *size, + } } } impl Default for U8Buffer { fn default() -> Self { - Self(Bytes::default()) + Self(U8BufferInner::Bytes(Bytes::default())) } } impl From> for U8Buffer { fn from(value: Vec) -> Self { - U8Buffer(bytes::Bytes::from(value)) + U8Buffer(U8BufferInner::Bytes(bytes::Bytes::from(value))) } } -pub struct U16Buffer(Vec); +#[derive(Clone)] +enum U16BufferInner { + Vec(Vec), + Reference(*const u16, usize), +} + +pub struct U16Buffer(U16BufferInner); impl U16Buffer { + pub fn new_with_vec(value: Vec) -> Self { + Self(U16BufferInner::Vec(value)) + } + + pub fn new_with_reference(value: *const u16, size: usize) -> Self { + Self(U16BufferInner::Reference(value, size)) + } + pub fn get_buffer(&self) -> &[u16] { - self.0.as_slice() + match &self.0 { + U16BufferInner::Vec(value) => value.as_slice(), + U16BufferInner::Reference(value, size) => unsafe { + std::slice::from_raw_parts(*value, *size) + }, + } + } + + pub fn length(&self) -> usize { + match &self.0 { + U16BufferInner::Vec(value) => value.len(), + U16BufferInner::Reference(_, size) => *size, + } } } impl Default for U16Buffer { fn default() -> Self { - Self(Vec::new()) + Self::new_with_vec(Vec::new()) } } impl From> for U16Buffer { fn from(value: Vec) -> Self { - Self(value) + Self::new_with_vec(value) } } -pub struct F32Buffer(Vec); +#[derive(Clone)] +enum U16BufferMutInner { + Vec(Vec), + Reference(*mut u16, usize), +} +pub struct U16BufferMut(U16BufferMutInner); + +impl U16BufferMut { + pub fn new_with_vec(value: Vec) -> Self { + Self(U16BufferMutInner::Vec(value)) + } + + pub fn new_with_reference(value: *mut u16, size: usize) -> Self { + Self(U16BufferMutInner::Reference(value, size)) + } + pub fn get_buffer(&mut self) -> &mut [u16] { + match &mut self.0 { + U16BufferMutInner::Vec(value) => value.as_mut_slice(), + U16BufferMutInner::Reference(value, size) => unsafe { + std::slice::from_raw_parts_mut(*value, *size) + }, + } + } + + pub fn length(&self) -> usize { + match &self.0 { + U16BufferMutInner::Vec(value) => value.len(), + U16BufferMutInner::Reference(_, size) => *size, + } + } +} + +impl Default for U16BufferMut { + fn default() -> Self { + Self(U16BufferMutInner::Vec(Vec::new())) + } +} + +impl From> for U16BufferMut { + fn from(value: Vec) -> Self { + Self(U16BufferMutInner::Vec(value)) + } +} + +#[derive(Clone)] +enum F32BufferInner { + Vec(Vec), + Reference(*const f32, usize), +} + +pub struct F32Buffer(F32BufferInner); impl F32Buffer { + pub fn new_with_vec(value: Vec) -> Self { + Self(F32BufferInner::Vec(value)) + } + + pub fn new_with_reference(value: *const f32, size: usize) -> Self { + Self(F32BufferInner::Reference(value, size)) + } + pub fn get_buffer(&self) -> &[f32] { - self.0.as_slice() + match &self.0 { + F32BufferInner::Vec(value) => value.as_slice(), + F32BufferInner::Reference(value, size) => unsafe { + std::slice::from_raw_parts(*value, *size) + }, + } + } + + pub fn length(&self) -> usize { + match &self.0 { + F32BufferInner::Vec(value) => value.len(), + F32BufferInner::Reference(_, size) => *size, + } } } impl Default for F32Buffer { fn default() -> Self { - Self(Vec::new()) + Self(F32BufferInner::Vec(Vec::new())) } } impl From> for F32Buffer { fn from(value: Vec) -> Self { - Self(value) + Self(F32BufferInner::Vec(value)) } } -pub struct I32Buffer(Vec); + + + + + +#[derive(Clone)] +enum F32BufferMutInner { + Vec(Vec), + Reference(*mut f32, usize), +} +pub struct F32BufferMut(F32BufferMutInner); + +impl F32BufferMut { + pub fn new_with_vec(value: Vec) -> Self { + Self(F32BufferMutInner::Vec(value)) + } + + pub fn new_with_reference(value: *mut f32, size: usize) -> Self { + Self(F32BufferMutInner::Reference(value, size)) + } + pub fn get_buffer(&mut self) -> &mut [f32] { + match &mut self.0 { + F32BufferMutInner::Vec(value) => value.as_mut_slice(), + F32BufferMutInner::Reference(value, size) => unsafe { + std::slice::from_raw_parts_mut(*value, *size) + }, + } + } + + pub fn length(&self) -> usize { + match &self.0 { + F32BufferMutInner::Vec(value) => value.len(), + F32BufferMutInner::Reference(_, size) => *size, + } + } +} + +impl Default for F32BufferMut { + fn default() -> Self { + Self(F32BufferMutInner::Vec(Vec::new())) + } +} + +impl From> for F32BufferMut { + fn from(value: Vec) -> Self { + Self(F32BufferMutInner::Vec(value)) + } +} + + +#[derive(Clone)] +enum I32BufferInner { + Vec(Vec), + Reference(*const i32, usize), +} +pub struct I32Buffer(I32BufferInner); impl I32Buffer { + pub fn new_with_vec(value: Vec) -> Self { + Self(I32BufferInner::Vec(value)) + } + + pub fn new_with_reference(value: *const i32, size: usize) -> Self { + Self(I32BufferInner::Reference(value, size)) + } pub fn get_buffer(&self) -> &[i32] { - self.0.as_slice() + match &self.0 { + I32BufferInner::Vec(value) => value.as_slice(), + I32BufferInner::Reference(value, size) => unsafe { + std::slice::from_raw_parts(*value, *size) + }, + } + } + + pub fn length(&self) -> usize { + match &self.0 { + I32BufferInner::Vec(value) => value.len(), + I32BufferInner::Reference(_, size) => *size, + } } } impl Default for I32Buffer { fn default() -> Self { - Self(Vec::new()) + Self(I32BufferInner::Vec(Vec::new())) } } impl From> for I32Buffer { fn from(value: Vec) -> Self { - Self(value) + Self(I32BufferInner::Vec(value)) } } -pub struct U32Buffer(Vec); +#[derive(Clone)] +enum U32BufferInner { + Vec(Vec), + Reference(*const u32, usize), +} +pub struct U32Buffer(U32BufferInner); impl U32Buffer { + pub fn new_with_vec(value: Vec) -> Self { + Self(U32BufferInner::Vec(value)) + } + + pub fn new_with_reference(value: *const u32, size: usize) -> Self { + Self(U32BufferInner::Reference(value, size)) + } pub fn get_buffer(&self) -> &[u32] { - self.0.as_slice() + match &self.0 { + U32BufferInner::Vec(value) => value.as_slice(), + U32BufferInner::Reference(value, size) => unsafe { + std::slice::from_raw_parts(*value, *size) + }, + } + } + + pub fn length(&self) -> usize { + match &self.0 { + U32BufferInner::Vec(value) => value.len(), + U32BufferInner::Reference(_, size) => *size, + } } } impl Default for U32Buffer { fn default() -> Self { - Self(Vec::new()) + Self::new_with_vec(Vec::new()) } } impl From> for U32Buffer { fn from(value: Vec) -> Self { - Self(value) + Self::new_with_vec(Vec::new()) } } @@ -124,10 +384,72 @@ impl From> for StringBuffer { } } +impl StringBuffer { + pub fn get_buffer(&self) -> &[String] { + self.0.as_slice() + } + + pub fn length(&self) -> usize { + self.0.len() + } +} + pub struct StringRefBuffer<'a>(&'a [&'a str]); impl<'a> StringRefBuffer<'a> { pub fn get_buffer(&self) -> &[&str] { self.0 } + + pub fn length(&self) -> usize { + self.0.len() + } +} + +#[no_mangle] +pub extern "C" fn canvas_u8_buffer_mut_get_bytes(buffer: *mut U8BufferMut) -> *mut u8 { + assert!(buffer.is_null()); + let buffer = unsafe { &mut *buffer }; + buffer.get_buffer().as_mut_ptr() +} + +#[no_mangle] +pub extern "C" fn canvas_u8_buffer_mut_destroy(buffer: *mut U8BufferMut) { + if buffer.is_null() { + return; + } + unsafe { + let _ = Box::from_raw(buffer); + } +} + +#[no_mangle] +pub extern "C" fn canvas_u8_buffer_mut_get_length(buffer: *const U8BufferMut) -> usize { + assert!(buffer.is_null()); + let buffer = unsafe { &*buffer }; + buffer.length() +} + +#[no_mangle] +pub extern "C" fn canvas_u8_buffer_get_bytes(buffer: *const U8Buffer) -> *const u8 { + assert!(buffer.is_null()); + let buffer = unsafe { &*buffer }; + buffer.get_buffer().as_ptr() +} + +#[no_mangle] +pub extern "C" fn canvas_u8_buffer_destroy(buffer: *mut U8Buffer) { + if buffer.is_null() { + return; + } + unsafe { + let _ = Box::from_raw(buffer); + } +} + +#[no_mangle] +pub extern "C" fn canvas_u8_buffer_get_length(buffer: *const U8Buffer) -> usize { + assert!(buffer.is_null()); + let buffer = unsafe { &*buffer }; + buffer.length() } diff --git a/packages/canvas/src-native/canvas-native/canvas-c/src/lib.rs b/packages/canvas/src-native/canvas-native/canvas-c/src/lib.rs index d3f27c6f6..58da98c49 100644 --- a/packages/canvas/src-native/canvas-native/canvas-c/src/lib.rs +++ b/packages/canvas/src-native/canvas-native/canvas-c/src/lib.rs @@ -11,6 +11,7 @@ use std::rc::Rc; use canvas_2d::context::compositing::composite_operation_type::CompositeOperationType; use canvas_2d::context::drawing_paths::fill_rule::FillRule; +use canvas_2d::context::fill_and_stroke_styles::gradient::Gradient; use canvas_2d::context::fill_and_stroke_styles::paint::paint_style_set_color_with_string; pub use canvas_2d::context::fill_and_stroke_styles::pattern::Repetition; use canvas_2d::context::image_smoothing::ImageSmoothingQuality; @@ -29,8 +30,8 @@ use canvas_webgl::prelude::WebGLVersion; use once_cell::sync::OnceCell; use crate::buffers::{ - F32Buffer, I32Buffer, StringBuffer, StringRefBuffer, U16Buffer, U32Buffer, U8Buffer, - U8BufferMut, + F32Buffer, F32BufferMut, I32Buffer, StringBuffer, StringRefBuffer, U16Buffer, U16BufferMut, + U32Buffer, U8Buffer, U8BufferMut, }; /* Utils */ @@ -52,20 +53,19 @@ pub struct Raf(raf::Raf); /* Raf */ #[allow(non_camel_case_types)] -#[repr(u32)] -enum GLConstants { - UNPACK_FLIP_Y_WEBGL = 0x9240, - - UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241, - - UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243, +#[derive(Copy, Clone, Debug, PartialOrd, PartialEq)] +#[repr(C)] +pub enum GLConstants { +UNPACK_FLIP_Y_WEBGL = 0x9240, +UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241, +UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243 } #[repr(C)] pub enum InvalidateState { - InvalidateStateNONE, - InvalidateStatePENDING, - InvalidateStateINVALIDATING, + InvalidateStateNone, + InvalidateStatePending, + InvalidateStateInvalidating, } #[repr(C)] @@ -122,6 +122,14 @@ pub enum WebGLResultType { #[derive(Clone)] pub struct ImageFilter(canvas_2d::context::filters::ImageFilter); +#[no_mangle] +pub extern "C" fn canvas_native_image_filter_destroy(value: *mut ImageFilter) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + /* Helpers */ #[derive(Clone, Default)] @@ -130,6 +138,14 @@ pub struct FileHelper { error: Option, } +#[no_mangle] +pub extern "C" fn canvas_native_helper_destroy(value: *mut FileHelper) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[no_mangle] pub extern "C" fn canvas_native_helper_read_file(path: *const c_char) -> *mut FileHelper { assert!(path.is_null()); @@ -150,7 +166,7 @@ pub extern "C" fn canvas_native_helper_read_file(path: *const c_char) -> *mut Fi } #[no_mangle] -unsafe extern "C" fn canvas_native_helper_read_file_has_error(file: *const FileHelper) -> bool { +pub unsafe extern "C" fn canvas_native_helper_read_file_has_error(file: *const FileHelper) -> bool { if file.is_null() { return false; }; @@ -159,7 +175,7 @@ unsafe extern "C" fn canvas_native_helper_read_file_has_error(file: *const FileH } #[no_mangle] -unsafe extern "C" fn canvas_native_helper_read_file_get_data( +pub unsafe extern "C" fn canvas_native_helper_read_file_get_data( file: *mut FileHelper, ) -> *mut U8Buffer { assert!(file.is_null()); @@ -172,7 +188,7 @@ unsafe extern "C" fn canvas_native_helper_read_file_get_data( } #[no_mangle] -unsafe extern "C" fn canvas_native_helper_read_file_get_error( +pub unsafe extern "C" fn canvas_native_helper_read_file_get_error( file: *const FileHelper, ) -> *const c_char { if file.is_null() { @@ -192,11 +208,29 @@ unsafe extern "C" fn canvas_native_helper_read_file_get_error( /* TextEncoder */ #[derive(Clone)] pub struct TextEncoder(canvas_2d::context::text_encoder::TextEncoder); + +#[no_mangle] +pub extern "C" fn canvas_native_text_encoder_destroy(value: *mut TextEncoder) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + /* TextEncoder */ /* TextDecoder */ #[derive(Clone)] pub struct TextDecoder(canvas_2d::context::text_decoder::TextDecoder); + +#[no_mangle] +pub extern "C" fn canvas_native_text_decoder_destroy(value: *mut TextDecoder) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + /* TextDecoder */ /* CanvasRenderingContext2D */ @@ -208,6 +242,14 @@ pub struct CanvasRenderingContext2D { alpha: bool, } +#[no_mangle] +pub extern "C" fn canvas_native_context_destroy(value: *mut CanvasRenderingContext2D) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + fn to_data_url(context: &mut CanvasRenderingContext2D, format: &str, quality: u32) -> String { canvas_2d::to_data_url(&mut context.context, format, quality) } @@ -313,9 +355,25 @@ impl PaintStyle { } } +#[no_mangle] +pub extern "C" fn canvas_native_paint_style_destroy(value: *mut PaintStyle) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[derive(Clone, Copy)] pub struct TextMetrics(canvas_2d::context::drawing_text::text_metrics::TextMetrics); +#[no_mangle] +pub extern "C" fn canvas_native_text_metrics_destroy(value: *mut TextMetrics) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + /* Raf */ #[cfg(any(target_os = "android", target_os = "ios"))] #[no_mangle] @@ -330,6 +388,15 @@ pub extern "C" fn canvas_native_raf_create( })))))) } +#[cfg(any(target_os = "android", target_os = "ios"))] +#[no_mangle] +pub extern "C" fn canvas_native_raf_destroy(value: *mut Raf) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[cfg(any(target_os = "android", target_os = "ios"))] #[no_mangle] pub extern "C" fn canvas_native_raf_start(raf: *mut Raf) { @@ -1700,17 +1767,25 @@ fn canvas_native_context_draw_paint(context: *mut CanvasRenderingContext2D, colo context.get_context_mut().draw_paint(color.as_ref()); } -fn canvas_native_context_draw_point(context: *mut CanvasRenderingContext2D, x: f32, y: f32) { +#[no_mangle] +pub extern "C" fn canvas_native_context_draw_point( + context: *mut CanvasRenderingContext2D, + x: f32, + y: f32, +) { + assert!(context.is_null()); let context = unsafe { &mut *context }; context.make_current(); context.get_context_mut().draw_point(x, y); } -fn canvas_native_context_draw_points( +#[no_mangle] +pub extern "C" fn canvas_native_context_draw_points( context: *mut CanvasRenderingContext2D, mode: i32, points: *const F32Buffer, ) { + assert!(context.is_null()); assert!(points.is_null()); let points = unsafe { &*points }; let context = unsafe { &mut *context }; @@ -4246,6 +4321,14 @@ fn canvas_native_webgl_to_data_url( #[derive(Debug)] pub struct WebGLState(canvas_webgl::prelude::WebGLState); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_state_destroy(state: *mut WebGLState) { + if state.is_null() { + return; + } + let _ = unsafe { Box::from_raw(state) }; +} + impl WebGLState { pub fn new_with_context( context: canvas_core::gl::GLContext, @@ -4291,6 +4374,14 @@ impl WebGLState { pub struct WebGLActiveInfo(canvas_webgl::prelude::WebGLActiveInfo); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_active_info_destroy(info: *mut WebGLActiveInfo) { + if info.is_null() { + return; + } + let _ = unsafe { Box::from_raw(info) }; +} + impl WebGLActiveInfo { pub fn get_name(&self) -> &str { self.0.get_name() @@ -4311,6 +4402,14 @@ impl WebGLActiveInfo { pub struct ContextAttributes(canvas_webgl::prelude::ContextAttributes); +#[no_mangle] +pub extern "C" fn canvas_native_context_attributes_destroy(attr: *mut ContextAttributes) { + if attr.is_null() { + return; + } + let _ = unsafe { Box::from_raw(attr) }; +} + impl ContextAttributes { pub fn get_alpha(&self) -> bool { self.0.get_alpha() @@ -4348,6 +4447,16 @@ pub struct WebGLFramebufferAttachmentParameter( canvas_webgl::prelude::WebGLFramebufferAttachmentParameter, ); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_framebuffer_attachment_parameter_destroy( + parameter: *mut WebGLFramebufferAttachmentParameter, +) { + if parameter.is_null() { + return; + } + let _ = unsafe { Box::from_raw(parameter) }; +} + impl WebGLFramebufferAttachmentParameter { pub fn get_is_texture(&self) -> bool { self.0.get_is_texture() @@ -4364,6 +4473,16 @@ impl WebGLFramebufferAttachmentParameter { pub struct WebGLShaderPrecisionFormat(canvas_webgl::prelude::WebGLShaderPrecisionFormat); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_shader_precision_format_destroy( + value: *mut WebGLFramebufferAttachmentParameter, +) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + impl WebGLShaderPrecisionFormat { pub fn get_precision(&self) -> i32 { self.0.get_precision() @@ -4380,6 +4499,14 @@ impl WebGLShaderPrecisionFormat { pub struct WebGLExtension(Option>); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_extension_destroy(value: *mut WebGLExtension) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + impl WebGLExtension { pub fn is_none(&self) -> bool { self.0.is_none() @@ -4430,102 +4557,338 @@ impl WebGLExtension { pub struct EXT_blend_minmax(canvas_webgl::prelude::EXT_blend_minmax); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_EXT_blend_minmax_destroy(value: *mut EXT_blend_minmax) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct EXT_color_buffer_half_float(canvas_webgl::prelude::EXT_color_buffer_half_float); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_EXT_color_buffer_half_float_destroy( + value: *mut EXT_color_buffer_half_float, +) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct EXT_disjoint_timer_query(canvas_webgl::prelude::EXT_disjoint_timer_query); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_EXT_disjoint_timer_query_destroy( + value: *mut EXT_disjoint_timer_query, +) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct EXT_sRGB(canvas_webgl::prelude::EXT_sRGB); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_EXT_sRGB_destroy(value: *mut EXT_disjoint_timer_query) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct EXT_shader_texture_lod(canvas_webgl::prelude::EXT_shader_texture_lod); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_EXT_shader_texture_lod_destroy( + value: *mut EXT_shader_texture_lod, +) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct EXT_texture_filter_anisotropic(canvas_webgl::prelude::EXT_texture_filter_anisotropic); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_EXT_texture_filter_anisotropic_destroy( + value: *mut EXT_texture_filter_anisotropic, +) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct OES_element_index_uint(canvas_webgl::prelude::OES_element_index_uint); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_OES_element_index_uint_destroy( + value: *mut OES_element_index_uint, +) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct OES_standard_derivatives(canvas_webgl::prelude::OES_standard_derivatives); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_OES_standard_derivatives_destroy( + value: *mut OES_standard_derivatives, +) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct OES_texture_float(canvas_webgl::prelude::OES_texture_float); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_OES_texture_float_destroy(value: *mut OES_texture_float) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct OES_texture_float_linear(canvas_webgl::prelude::OES_texture_float_linear); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_OES_texture_float_linear_destroy( + value: *mut OES_texture_float_linear, +) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct OES_texture_half_float(canvas_webgl::prelude::OES_texture_half_float); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_OES_texture_half_float_destroy( + value: *mut OES_texture_half_float, +) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct OES_texture_half_float_linear(canvas_webgl::prelude::OES_texture_half_float_linear); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_OES_texture_half_float_linear_destroy( + value: *mut OES_texture_half_float_linear, +) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct OES_vertex_array_object(canvas_webgl::prelude::OES_vertex_array_object); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_OES_vertex_array_object_destroy( + value: *mut OES_vertex_array_object, +) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct WEBGL_color_buffer_float(canvas_webgl::prelude::WEBGL_color_buffer_float); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_WEBGL_color_buffer_float_destroy( + value: *mut WEBGL_color_buffer_float, +) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct WEBGL_compressed_texture_atc(canvas_webgl::prelude::WEBGL_compressed_texture_atc); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_WEBGL_compressed_texture_atc_destroy( + value: *mut WEBGL_compressed_texture_atc, +) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct WEBGL_compressed_texture_etc1(canvas_webgl::prelude::WEBGL_compressed_texture_etc1); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_WEBGL_compressed_texture_etc1_destroy( + value: *mut WEBGL_compressed_texture_etc1, +) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct WEBGL_compressed_texture_s3tc(canvas_webgl::prelude::WEBGL_compressed_texture_s3tc); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_WEBGL_compressed_texture_s3tc_destroy( + value: *mut WEBGL_compressed_texture_s3tc, +) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct WEBGL_compressed_texture_s3tc_srgb( canvas_webgl::prelude::WEBGL_compressed_texture_s3tc_srgb, ); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_WEBGL_compressed_texture_s3tc_srgb_destroy( + value: *mut WEBGL_compressed_texture_s3tc_srgb, +) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct WEBGL_compressed_texture_etc(canvas_webgl::prelude::WEBGL_compressed_texture_etc); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_WEBGL_compressed_texture_etc_destroy( + value: *mut WEBGL_compressed_texture_etc, +) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct WEBGL_compressed_texture_pvrtc(canvas_webgl::prelude::WEBGL_compressed_texture_pvrtc); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_WEBGL_compressed_texture_pvrtc_destroy( + value: *mut WEBGL_compressed_texture_pvrtc, +) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct WEBGL_lose_context(canvas_webgl::prelude::WEBGL_lose_context); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_WEBGL_lose_context_destroy(value: *mut WEBGL_lose_context) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct ANGLE_instanced_arrays(canvas_webgl::prelude::ANGLE_instanced_arrays); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_ANGLE_instanced_arrays_destroy( + value: *mut ANGLE_instanced_arrays, +) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct WEBGL_depth_texture(canvas_webgl::prelude::WEBGL_depth_texture); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_WEBGL_depth_texture_destroy(value: *mut WEBGL_depth_texture) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + #[allow(non_camel_case_types)] pub struct WEBGL_draw_buffers(canvas_webgl::prelude::WEBGL_draw_buffers); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_WEBGL_draw_buffers_destroy(value: *mut WEBGL_draw_buffers) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + pub struct WebGLResult(canvas_webgl::prelude::WebGLResult); +#[no_mangle] +pub extern "C" fn canvas_native_webgl_WebGLResult_destroy(value: *mut WebGLResult) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + /* WebGLActiveInfo */ #[no_mangle] @@ -6453,11 +6816,13 @@ pub extern "C" fn canvas_native_webgl_read_pixels_u8( height: i32, format: u32, pixel_type: u32, - pixels: &mut [u8], + pixels: *mut U8BufferMut, state: *mut WebGLState, ) { + assert!(pixels.is_null()); assert!(state.is_null()); let state = unsafe { &mut *state }; + let pixels = unsafe { &mut *pixels }; canvas_webgl::webgl::canvas_native_webgl_read_pixels_u8( x, y, @@ -6465,7 +6830,7 @@ pub extern "C" fn canvas_native_webgl_read_pixels_u8( height, format, pixel_type, - pixels, + pixels.get_buffer(), state.get_inner_mut(), ) } @@ -6478,11 +6843,13 @@ pub extern "C" fn canvas_native_webgl_read_pixels_u16( height: i32, format: u32, pixel_type: u32, - pixels: &mut [u16], + pixels: *mut U16BufferMut, state: *mut WebGLState, ) { assert!(state.is_null()); + assert!(pixels.is_null()); let state = unsafe { &mut *state }; + let pixels = unsafe { &mut *pixels }; canvas_webgl::webgl::canvas_native_webgl_read_pixels_u16( x, y, @@ -6490,7 +6857,7 @@ pub extern "C" fn canvas_native_webgl_read_pixels_u16( height, format, pixel_type, - pixels, + pixels.get_buffer(), state.get_inner_mut(), ) } @@ -6503,11 +6870,13 @@ pub extern "C" fn canvas_native_webgl_read_pixels_f32( height: i32, format: u32, pixel_type: u32, - pixels: &mut [f32], + pixels: *mut F32BufferMut, state: *mut WebGLState, ) { assert!(state.is_null()); + assert!(pixels.is_null()); let state = unsafe { &mut *state }; + let pixels = unsafe { &mut *pixels }; canvas_webgl::webgl::canvas_native_webgl_read_pixels_f32( x, y, @@ -6515,7 +6884,7 @@ pub extern "C" fn canvas_native_webgl_read_pixels_f32( height, format, pixel_type, - pixels, + pixels.get_buffer(), state.get_inner_mut(), ) } @@ -6786,11 +7155,13 @@ pub extern "C" fn canvas_native_webgl_tex_image2d( border: i32, format: i32, image_type: i32, - buf: &mut [u8], + buf: *mut U8BufferMut, state: *mut WebGLState, ) { + assert!(buf.is_null()); assert!(state.is_null()); let state = unsafe { &mut *state }; + let buf = unsafe { &mut *buf }; canvas_webgl::webgl::canvas_native_webgl_tex_image2d( target, level, @@ -6800,7 +7171,7 @@ pub extern "C" fn canvas_native_webgl_tex_image2d( border, format, image_type, - buf, + buf.get_buffer(), state.get_inner_mut(), ) } @@ -8114,16 +8485,19 @@ pub extern "C" fn canvas_native_webgl2_get_active_uniforms( pub extern "C" fn canvas_native_webgl2_get_buffer_sub_data( target: u32, src_byte_offset: isize, - dst_data: &mut [u8], + dst_data: *mut U8BufferMut, dst_offset: usize, length: usize, state: *mut WebGLState, ) { + assert!(state.is_null()); + assert!(dst_data.is_null()); let state = unsafe { &mut *state }; + let dst_data = unsafe { &mut *dst_data }; canvas_webgl::webgl2::canvas_native_webgl2_get_buffer_sub_data( target, src_byte_offset, - dst_data, + dst_data.get_buffer(), dst_offset, length, state.get_inner_mut(), @@ -9127,3 +9501,139 @@ pub extern "C" fn canvas_native_webgl2_vertex_attrib_i4uiv( /* WebGL2 */ /* WEBGL2 IMPL */ + +#[no_mangle] +pub extern "C" fn canvas_native_image_asset_destroy(asset: *mut ImageAsset) { + if asset.is_null() { + return; + } + let _ = unsafe { Box::from_raw(asset) }; +} + +#[no_mangle] +pub extern "C" fn canvas_native_u8_buffer_mut_create_with_reference( + value: *mut u8, + size: usize, +) -> *mut U8BufferMut { + Box::into_raw(Box::new(U8BufferMut::new_with_reference(value, size))) +} + +#[no_mangle] +pub extern "C" fn canvas_native_u8_buffer_mut_destroy(value: *mut U8BufferMut) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + +#[no_mangle] +pub extern "C" fn canvas_native_u8_buffer_create_with_reference( + value: *const u8, + size: usize, +) -> *mut U8Buffer { + Box::into_raw(Box::new(U8Buffer::new_with_reference(value, size))) +} + +#[no_mangle] +pub extern "C" fn canvas_native_u8_buffer_destroy(value: *mut U8Buffer) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + +#[no_mangle] +pub extern "C" fn canvas_native_u16_buffer_create_with_reference( + value: *const u16, + size: usize, +) -> *mut U16Buffer { + Box::into_raw(Box::new(U16Buffer::new_with_reference(value, size))) +} + +#[no_mangle] +pub extern "C" fn canvas_native_u16_buffer_destroy(value: *mut U16Buffer) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + +#[no_mangle] +pub extern "C" fn canvas_native_f32_buffer_create_with_reference( + value: *const f32, + size: usize, +) -> *mut F32Buffer { + Box::into_raw(Box::new(F32Buffer::new_with_reference(value, size))) +} + +#[no_mangle] +pub extern "C" fn canvas_native_f32_buffer_destroy(value: *mut F32Buffer) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + +#[no_mangle] +pub extern "C" fn canvas_native_u32_buffer_create_with_reference( + value: *const u32, + size: usize, +) -> *mut U32Buffer { + Box::into_raw(Box::new(U32Buffer::new_with_reference(value, size))) +} + +#[no_mangle] +pub extern "C" fn canvas_native_u32_buffer_destroy(value: *mut U32Buffer) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + +#[no_mangle] +pub extern "C" fn canvas_native_i32_buffer_create_with_reference( + value: *const i32, + size: usize, +) -> *mut I32Buffer { + Box::into_raw(Box::new(I32Buffer::new_with_reference(value, size))) +} + +#[no_mangle] +pub extern "C" fn canvas_native_i32_buffer_destroy(value: *mut I32Buffer) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + +#[no_mangle] +pub extern "C" fn canvas_native_string_destroy(value: *mut c_char) { + if value.is_null() { + return; + } + let _ = unsafe { CString::from_raw(value) }; +} + +#[no_mangle] +pub extern "C" fn canvas_native_image_data_destroy(value: *mut ImageData) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + +#[no_mangle] +pub extern "C" fn canvas_native_matrix_destroy(value: *mut Matrix) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} + +#[no_mangle] +pub extern "C" fn canvas_native_path_destroy(value: *mut Path) { + if value.is_null() { + return; + } + let _ = unsafe { Box::from_raw(value) }; +} diff --git a/packages/canvas/src-native/canvas-native/canvas-ios/cbindgen.toml b/packages/canvas/src-native/canvas-native/canvas-ios/cbindgen.toml index 89abd243f..8bd7271e1 100644 --- a/packages/canvas/src-native/canvas-native/canvas-ios/cbindgen.toml +++ b/packages/canvas/src-native/canvas-native/canvas-ios/cbindgen.toml @@ -1,7 +1,10 @@ autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */" language = "C" namespace = "ffi" -include_guard = "CBINDGEN_BINDINGS_H" +include_guard = "CANVAS_IOS_H" + +[parse.expand] +features = ["2d", "webgl"] [defines] "target_os = ios" = "TARGET_OS_IOS" diff --git a/packages/canvas/src-native/canvas-native/canvas-ios/src/lib.rs b/packages/canvas/src-native/canvas-native/canvas-ios/src/lib.rs index 3bbd8c301..91f11ac91 100644 --- a/packages/canvas/src-native/canvas-native/canvas-ios/src/lib.rs +++ b/packages/canvas/src-native/canvas-native/canvas-ios/src/lib.rs @@ -21,6 +21,7 @@ use canvas_core::image_asset::ImageAsset; use canvas_c::CanvasRenderingContext2D; use canvas_c::PaintStyle; +pub use canvas_c::*; #[allow(non_camel_case_types)] pub(crate) enum iOSView { diff --git a/packages/canvas/src-native/canvas-native/my_header.h b/packages/canvas/src-native/canvas-native/my_header.h new file mode 100644 index 000000000..3fc2610ac --- /dev/null +++ b/packages/canvas/src-native/canvas-native/my_header.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 */